aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm64/crypto/aes-ce-ccm-glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/crypto/aes-ce-ccm-glue.c b/arch/arm64/crypto/aes-ce-ccm-glue.c
index d4f35685363b..cc5515dac74a 100644
--- a/arch/arm64/crypto/aes-ce-ccm-glue.c
+++ b/arch/arm64/crypto/aes-ce-ccm-glue.c
@@ -167,7 +167,7 @@ static int ccm_encrypt(struct aead_request *req)
167 /* preserve the original iv for the final round */ 167 /* preserve the original iv for the final round */
168 memcpy(buf, req->iv, AES_BLOCK_SIZE); 168 memcpy(buf, req->iv, AES_BLOCK_SIZE);
169 169
170 err = skcipher_walk_aead(&walk, req, true); 170 err = skcipher_walk_aead_encrypt(&walk, req, true);
171 171
172 while (walk.nbytes) { 172 while (walk.nbytes) {
173 u32 tail = walk.nbytes % AES_BLOCK_SIZE; 173 u32 tail = walk.nbytes % AES_BLOCK_SIZE;
@@ -219,7 +219,7 @@ static int ccm_decrypt(struct aead_request *req)
219 /* preserve the original iv for the final round */ 219 /* preserve the original iv for the final round */
220 memcpy(buf, req->iv, AES_BLOCK_SIZE); 220 memcpy(buf, req->iv, AES_BLOCK_SIZE);
221 221
222 err = skcipher_walk_aead(&walk, req, true); 222 err = skcipher_walk_aead_decrypt(&walk, req, true);
223 223
224 while (walk.nbytes) { 224 while (walk.nbytes) {
225 u32 tail = walk.nbytes % AES_BLOCK_SIZE; 225 u32 tail = walk.nbytes % AES_BLOCK_SIZE;