]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm64/crypto/aes-ce-ccm-glue.c
Merge remote-tracking branch 'mkp-scsi/4.10/scsi-fixes' into fixes
[karo-tx-linux.git] / arch / arm64 / crypto / aes-ce-ccm-glue.c
index d4f35685363b20e90c5a6365fad79c343e4ab06a..cc5515dac74a6d80deef3767d4d21bb70a0b76e8 100644 (file)
@@ -167,7 +167,7 @@ static int ccm_encrypt(struct aead_request *req)
        /* preserve the original iv for the final round */
        memcpy(buf, req->iv, AES_BLOCK_SIZE);
 
-       err = skcipher_walk_aead(&walk, req, true);
+       err = skcipher_walk_aead_encrypt(&walk, req, true);
 
        while (walk.nbytes) {
                u32 tail = walk.nbytes % AES_BLOCK_SIZE;
@@ -219,7 +219,7 @@ static int ccm_decrypt(struct aead_request *req)
        /* preserve the original iv for the final round */
        memcpy(buf, req->iv, AES_BLOCK_SIZE);
 
-       err = skcipher_walk_aead(&walk, req, true);
+       err = skcipher_walk_aead_decrypt(&walk, req, true);
 
        while (walk.nbytes) {
                u32 tail = walk.nbytes % AES_BLOCK_SIZE;