mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
crypto: testmgr - Add ChaCha20-Poly1305 test vectors from RFC7539
Signed-off-by: Martin Willi <martin@strongswan.org> Acked-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
71ebc4d1b2
commit
af2b76b53a
2 changed files with 284 additions and 0 deletions
|
@ -3386,6 +3386,21 @@ static const struct alg_test_desc alg_test_descs[] = {
|
|||
},
|
||||
}
|
||||
}
|
||||
}, {
|
||||
.alg = "rfc7539(chacha20,poly1305)",
|
||||
.test = alg_test_aead,
|
||||
.suite = {
|
||||
.aead = {
|
||||
.enc = {
|
||||
.vecs = rfc7539_enc_tv_template,
|
||||
.count = RFC7539_ENC_TEST_VECTORS
|
||||
},
|
||||
.dec = {
|
||||
.vecs = rfc7539_dec_tv_template,
|
||||
.count = RFC7539_DEC_TEST_VECTORS
|
||||
},
|
||||
}
|
||||
}
|
||||
}, {
|
||||
.alg = "rmd128",
|
||||
.test = alg_test_hash,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue