Skip to content

Commit da7b850

Browse files
Cyrille Pitchenherbertx
authored andcommitted
crypto: atmel-aes - fix atmel-ctr-aes driver for RFC 3686
crypto_rfc3686_alloc() in crypto/ctr.c expects to be used with a stream cipher (alg->cra_blocksize == 1). Signed-off-by: Cyrille Pitchen <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent e37a7e5 commit da7b850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/crypto/atmel-aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ static struct crypto_alg aes_algs[] = {
10751075
.cra_driver_name = "atmel-ctr-aes",
10761076
.cra_priority = ATMEL_AES_PRIORITY,
10771077
.cra_flags = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC,
1078-
.cra_blocksize = AES_BLOCK_SIZE,
1078+
.cra_blocksize = 1,
10791079
.cra_ctxsize = sizeof(struct atmel_aes_ctx),
10801080
.cra_alignmask = 0xf,
10811081
.cra_type = &crypto_ablkcipher_type,

0 commit comments

Comments
 (0)