crypto: blowfish-x86_64: fix ctr blocksize to 1
Subsystems (2)
PATCH 1/1 crypto: blowfish-x86_64: fix ctr blocksize to 1
Signed-off-by Jussi Kivilinna <[email protected]>
--- arch/x86/crypto/blowfish_glue.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/crypto/blowfish_glue.c +1 -1
@@ -423,7 +423,7 @@ static struct crypto_alg blk_ctr_alg = { .cra_driver_name = "ctr-blowfish-asm", .cra_priority = 300, .cra_flags = CRYPTO_ALG_TYPE_BLKCIPHER, - .cra_blocksize = BF_BLOCK_SIZE, + .cra_blocksize = 1, .cra_ctxsize = sizeof(struct bf_ctx), .cra_alignmask = 0, .cra_type = &crypto_blkcipher_type,
Herbert Xu
maintainerQuoted 1 line · Jussi Kivilinna
Signed-off-by Jussi Kivilinna <[email protected]>
What is the rationale for this? Blowfish is not a stream cipher.
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Herbert Xu
maintainerQuoted 4 lines · Herbert Xu
Quoted 1 line · Jussi Kivilinna
Signed-off-by Jussi Kivilinna <[email protected]>What is the rationale for this? Blowfish is not a stream cipher.
Scratch that, I missed the bit about ctr.
Thanks,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Quoted 1 line · Jussi Kivilinna
Signed-off-by Jussi Kivilinna <[email protected]>
Applied.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt