Skip to content

Commit a890388

Browse files
committed
crypto: atmel-{aes, tdes}: Set OFB's blocksize to 1
Set cra_blocksize to 1 to indicate OFB is a stream cipher. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
1 parent 7fbe85a commit a890388

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/crypto/atmel-aes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ static struct skcipher_alg aes_algs[] = {
13051305
{
13061306
.base.cra_name = "ofb(aes)",
13071307
.base.cra_driver_name = "atmel-ofb-aes",
1308-
.base.cra_blocksize = AES_BLOCK_SIZE,
1308+
.base.cra_blocksize = 1,
13091309
.base.cra_ctxsize = sizeof(struct atmel_aes_ctx),
13101310

13111311
.init = atmel_aes_init_tfm,

drivers/crypto/atmel-tdes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ static struct skcipher_alg tdes_algs[] = {
993993
{
994994
.base.cra_name = "ofb(des)",
995995
.base.cra_driver_name = "atmel-ofb-des",
996-
.base.cra_blocksize = DES_BLOCK_SIZE,
996+
.base.cra_blocksize = 1,
997997
.base.cra_alignmask = 0x7,
998998

999999
.min_keysize = DES_KEY_SIZE,

0 commit comments

Comments
 (0)