diff options
author | Eric Biggers <ebiggers@google.com> | 2018-11-16 20:26:29 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-11-20 01:26:56 -0500 |
commit | 26609a21a9460145e37d90947ad957b358a05288 (patch) | |
tree | 9f45456ea58fde4464ea71910acf0faf55214555 /crypto/testmgr.c | |
parent | 1b6fd3d5d18bbc1b1abf3b0cbc4b95a9a63d407b (diff) |
crypto: nhpoly1305 - add NHPoly1305 support
Add a generic implementation of NHPoly1305, an ε-almost-∆-universal hash
function used in the Adiantum encryption mode.
CONFIG_NHPOLY1305 is not selectable by itself since there won't be any
real reason to enable it without also enabling Adiantum support.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.c')
-rw-r--r-- | crypto/testmgr.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 6ff60c3745f1..665911c24786 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c | |||
@@ -3312,6 +3312,12 @@ static const struct alg_test_desc alg_test_descs[] = { | |||
3312 | } | 3312 | } |
3313 | } | 3313 | } |
3314 | }, { | 3314 | }, { |
3315 | .alg = "nhpoly1305", | ||
3316 | .test = alg_test_hash, | ||
3317 | .suite = { | ||
3318 | .hash = __VECS(nhpoly1305_tv_template) | ||
3319 | } | ||
3320 | }, { | ||
3315 | .alg = "ofb(aes)", | 3321 | .alg = "ofb(aes)", |
3316 | .test = alg_test_skcipher, | 3322 | .test = alg_test_skcipher, |
3317 | .fips_allowed = 1, | 3323 | .fips_allowed = 1, |