layerscape: add patches-5.4
[openwrt/staging/wigyori.git] / target / linux / layerscape / patches-5.4 / 804-crypto-0002-crypto-tcrypt-include-rsa-test.patch
1 From c579c23d57c0ef7c832cf0844c86c7be42c197d3 Mon Sep 17 00:00:00 2001
2 From: Radu Alexe <radu.alexe@nxp.com>
3 Date: Thu, 13 Apr 2017 09:36:32 +0300
4 Subject: [PATCH] crypto: tcrypt - include rsa test
5
6 Signed-off-by: Radu Alexe <radu.alexe@nxp.com>
7 Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
8 ---
9 crypto/tcrypt.c | 9 ++++++---
10 1 file changed, 6 insertions(+), 3 deletions(-)
11
12 --- a/crypto/tcrypt.c
13 +++ b/crypto/tcrypt.c
14 @@ -71,9 +71,8 @@ static char *check[] = {
15 "cast6", "arc4", "michael_mic", "deflate", "crc32c", "tea", "xtea",
16 "khazad", "wp512", "wp384", "wp256", "tnepres", "xeta", "fcrypt",
17 "camellia", "seed", "salsa20", "rmd128", "rmd160", "rmd256", "rmd320",
18 - "lzo", "lzo-rle", "cts", "sha3-224", "sha3-256", "sha3-384",
19 - "sha3-512", "streebog256", "streebog512",
20 - NULL
21 + "lzo", "lzo-rle", "cts", "zlib", "sha3-224", "sha3-256", "sha3-384",
22 + "sha3-512", "streebog256", "streebog512", "rsa", NULL
23 };
24
25 static u32 block_sizes[] = { 16, 64, 256, 1024, 1472, 8192, 0 };
26 @@ -1983,6 +1982,10 @@ static int do_test(const char *alg, u32
27 ret += tcrypt_test("hmac(streebog512)");
28 break;
29
30 + case 117:
31 + ret += tcrypt_test("rsa");
32 + break;
33 +
34 case 150:
35 ret += tcrypt_test("ansi_cprng");
36 break;