diff options
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 6d5b746637be..7620bfce92f2 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -1201,7 +1201,7 @@ static int test_cprng(struct crypto_rng *tfm, struct cprng_testvec *template, | |||
1201 | unsigned int tcount) | 1201 | unsigned int tcount) |
1202 | { | 1202 | { |
1203 | const char *algo = crypto_tfm_alg_driver_name(crypto_rng_tfm(tfm)); | 1203 | const char *algo = crypto_tfm_alg_driver_name(crypto_rng_tfm(tfm)); |
1204 | int err, i, j, seedsize; | 1204 | int err = 0, i, j, seedsize; |
1205 | u8 *seed; | 1205 | u8 *seed; |
1206 | char result[32]; | 1206 | char result[32]; |
1207 | 1207 | ||
@@ -1943,6 +1943,15 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
1943 | } | 1943 | } |
1944 | } | 1944 | } |
1945 | }, { | 1945 | }, { |
1946 | .alg = "ghash", | ||
1947 | .test = alg_test_hash, | ||
1948 | .suite = { | ||
1949 | .hash = { | ||
1950 | .vecs = ghash_tv_template, | ||
1951 | .count = GHASH_TEST_VECTORS | ||
1952 | } | ||
1953 | } | ||
1954 | }, { | ||
1946 | .alg = "hmac(md5)", | 1955 | .alg = "hmac(md5)", |
1947 | .test = alg_test_hash, | 1956 | .test = alg_test_hash, |
1948 | .suite = { | 1957 | .suite = { |