[gnutls-devel] GnuTLS | nettle/rnd-fips: add FIPS 140-2 continuous RNG test (!1034)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Jun 25 14:57:46 CEST 2019




Nikos Mavrogiannopoulos started a new discussion on lib/nettle/rnd-fips.c: https://gitlab.com/gnutls/gnutls/merge_requests/1034#note_185146402

> +			return gnutls_assert_val(GNUTLS_E_RANDOM_FAILED);
> +		}
> +		memcpy(fctx->hash, hash, sizeof(hash));
> +		memcpy(buffer, block, MIN(length - total, sizeof(block)));
> +		total += sizeof(block);
> +		buffer += sizeof(block);
> +	}
> +	zeroize_key(block, sizeof(block));
> +
> +	return 0;
> +}
> +
>  #define PSTRING "gnutls-rng"
>  #define PSTRING_SIZE (sizeof(PSTRING)-1)
> -static int drbg_init(struct drbg_aes_ctx *ctx)
> +static int drbg_init(struct drbg_aes_ctx *ctx,

why not pass the fips context here, and do internally the call to get entropy?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1034#note_185146402
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20190625/f9323558/attachment.html>


More information about the Gnutls-devel mailing list