]> git.baikalelectronics.ru Git - kernel.git/commitdiff
crypto: nx - remove stale comment referring to the blkcipher walk API
authorArd Biesheuvel <ardb@kernel.org>
Sat, 9 Nov 2019 17:09:52 +0000 (18:09 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:49 +0000 (09:02 +0800)
These drivers do not use either the deprecated blkcipher or the current
skcipher walk API, so this comment must refer to a previous state of the
driver that no longer exists. So drop the comments.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/nx/nx-aes-ccm.c
drivers/crypto/nx/nx-aes-gcm.c

index 84fed736ed2e32ab91e4f1a121abf4d8382a6e27..4c9362eebefd252a45416aa1cbe01fef43da621b 100644 (file)
@@ -525,11 +525,6 @@ static int ccm_aes_nx_decrypt(struct aead_request *req)
        return ccm_nx_decrypt(req, req->iv, req->assoclen);
 }
 
-/* tell the block cipher walk routines that this is a stream cipher by
- * setting cra_blocksize to 1. Even using blkcipher_walk_virt_block
- * during encrypt/decrypt doesn't solve this problem, because it calls
- * blkcipher_walk_done under the covers, which doesn't use walk->blocksize,
- * but instead uses this tfm->blocksize. */
 struct aead_alg nx_ccm_aes_alg = {
        .base = {
                .cra_name        = "ccm(aes)",
index 898220e159d3a8ee521d670ddaa103d8926df2be..19c6ed5baea41378837c828628e61bf2b20f8420 100644 (file)
@@ -467,11 +467,6 @@ static int gcm4106_aes_nx_decrypt(struct aead_request *req)
        return gcm_aes_nx_crypt(req, 0, req->assoclen - 8);
 }
 
-/* tell the block cipher walk routines that this is a stream cipher by
- * setting cra_blocksize to 1. Even using blkcipher_walk_virt_block
- * during encrypt/decrypt doesn't solve this problem, because it calls
- * blkcipher_walk_done under the covers, which doesn't use walk->blocksize,
- * but instead uses this tfm->blocksize. */
 struct aead_alg nx_gcm_aes_alg = {
        .base = {
                .cra_name        = "gcm(aes)",