Skip to contentSkip to conversation

crypto: blowfish-x86_64: fix ctr blocksize to 1

PATCH Applied Jussi Kivilinna 2 participants 4 messages Oct 10, 2011 – Oct 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto: blowfish-x86_64: fix ctr blocksize to 1

---
 arch/x86/crypto/blowfish_glue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/crypto/blowfish_glue.c +1 -1
index 40911ab..dd3964a 100644
@@ -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,
maintainer
#1 lore raw
Quoted 1 line · Jussi Kivilinna

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
maintainer
#2 lore raw
Quoted 4 lines · Herbert Xu
Quoted 1 line · Jussi Kivilinna

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