Re: [PATCH] crypto: testmgr: add test vectors for skein

From: Eric Biggers
Date: Wed Jun 20 2018 - 13:56:48 EST


Hi Juan,

On Wed, Jun 20, 2018 at 07:57:14PM +0900, Juan Manuel Torres Palma wrote:
> Adds test vectors specified in skein v1.3
> specification. The main code is still in staging
> directory, but this is required to eventually be
> moved to the crypto directory.
>
> Signed-off-by: Juan Manuel Torres Palma <j.m.torrespalma@xxxxxxxxx>
> ---
> crypto/testmgr.c | 21 ++++++
> crypto/testmgr.h | 203 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 224 insertions(+)
>
> diff --git a/crypto/testmgr.c b/crypto/testmgr.c
> index 11e45352fd0b..9fa08cbc8852 100644
> --- a/crypto/testmgr.c
> +++ b/crypto/testmgr.c
> @@ -3453,6 +3453,27 @@ static const struct alg_test_desc alg_test_descs[] = {
> .suite = {
> .hash = __VECS(sha512_tv_template)
> }
> + }, {
> + .alg = "skein1024",
> + .test = alg_test_hash,
> + .fips_allowed = 1,

Are you sure Skein should be on the "FIPS allowed" list? I'm not particularly
familiar with FIPS, but my understanding is that the fips_allowed flag is only
supposed to be set on specific "approved" algorithms. So if you're unsure, it
shouldn't be set.

Eric