OSDN Git Service

crypto: tcrypt - add block size of 1472 to skcipher template
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 4 Dec 2018 13:13:31 +0000 (14:13 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 13 Dec 2018 10:24:40 +0000 (18:24 +0800)
In order to have better coverage of algorithms operating on block
sizes that are in the ballpark of a VPN  packet, add 1472 to the
block_sizes array.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index 0590a92..e7fb87e 100644 (file)
@@ -81,7 +81,7 @@ static char *check[] = {
        NULL
 };
 
-static u32 block_sizes[] = { 16, 64, 256, 1024, 8192, 0 };
+static u32 block_sizes[] = { 16, 64, 256, 1024, 1472, 8192, 0 };
 static u32 aead_sizes[] = { 16, 64, 256, 512, 1024, 2048, 4096, 8192, 0 };
 
 #define XBUFSIZE 8