Skip to content

Commit 809abae

Browse files
ardbiesheuvelherbertx
authored andcommitted
crypto: nx - remove stale comment referring to the blkcipher walk API
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>
1 parent 8160ee7 commit 809abae

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

‎drivers/crypto/nx/nx-aes-ccm.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,11 +525,6 @@ static int ccm_aes_nx_decrypt(struct aead_request *req)
525525
return ccm_nx_decrypt(req, req->iv, req->assoclen);
526526
}
527527

528-
/* tell the block cipher walk routines that this is a stream cipher by
529-
* setting cra_blocksize to 1. Even using blkcipher_walk_virt_block
530-
* during encrypt/decrypt doesn't solve this problem, because it calls
531-
* blkcipher_walk_done under the covers, which doesn't use walk->blocksize,
532-
* but instead uses this tfm->blocksize. */
533528
struct aead_alg nx_ccm_aes_alg = {
534529
.base = {
535530
.cra_name = "ccm(aes)",

‎drivers/crypto/nx/nx-aes-gcm.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,11 +467,6 @@ static int gcm4106_aes_nx_decrypt(struct aead_request *req)
467467
return gcm_aes_nx_crypt(req, 0, req->assoclen - 8);
468468
}
469469

470-
/* tell the block cipher walk routines that this is a stream cipher by
471-
* setting cra_blocksize to 1. Even using blkcipher_walk_virt_block
472-
* during encrypt/decrypt doesn't solve this problem, because it calls
473-
* blkcipher_walk_done under the covers, which doesn't use walk->blocksize,
474-
* but instead uses this tfm->blocksize. */
475470
struct aead_alg nx_gcm_aes_alg = {
476471
.base = {
477472
.cra_name = "gcm(aes)",

0 commit comments

Comments
 (0)