diff options
author | Eric Biggers <ebiggers@google.com> | 2018-11-16 17:26:29 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-11-20 14:26:56 +0800 |
commit | 7c607458caed98e02431e6296ff8bf782ead2292 (patch) | |
tree | d900fde8b78c1b72d1b5b45e96176bf73d3d15d7 /crypto/testmgr.c | |
parent | 389131cef4cf34d648b6760b947070312269e0d5 (diff) | |
download | linux-crypto-7c607458caed98e02431e6296ff8bf782ead2292.tar.gz linux-crypto-7c607458caed98e02431e6296ff8bf782ead2292.zip |
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 6ff60c37..665911c2 100644 --- a/crypto/testmgr.c +++ b/crypto/testmgr.c @@ -3312,6 +3312,12 @@ static const struct alg_test_desc alg_test_descs[] = { } } }, { + .alg = "nhpoly1305", + .test = alg_test_hash, + .suite = { + .hash = __VECS(nhpoly1305_tv_template) + } + }, { .alg = "ofb(aes)", .test = alg_test_skcipher, .fips_allowed = 1, |