]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
crypto: atmel-aes - correct block size of cfb8 mode
authorLeilei Zhao <leilei.zhao@atmel.com>
Tue, 22 Apr 2014 07:23:23 +0000 (15:23 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Apr 2014 10:21:19 +0000 (18:21 +0800)
The block size of aes cfb8 mode shoule be 8 bit.

Signed-off-by: Leilei Zhao <leilei.zhao@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c

index d7c9e317423cb2910e808571584ef3c4cd0bd84e..12628a75fbccebdc7a28cc7dd682ea60f1921f67 100644 (file)
@@ -1069,7 +1069,7 @@ static struct crypto_alg aes_algs[] = {
        .cra_driver_name        = "atmel-cfb8-aes",
        .cra_priority           = 100,
        .cra_flags              = CRYPTO_ALG_TYPE_ABLKCIPHER | CRYPTO_ALG_ASYNC,
-       .cra_blocksize          = CFB64_BLOCK_SIZE,
+       .cra_blocksize          = CFB8_BLOCK_SIZE,
        .cra_ctxsize            = sizeof(struct atmel_aes_ctx),
        .cra_alignmask          = 0x0,
        .cra_type               = &crypto_ablkcipher_type,