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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Jun 27 15:35:43 CEST 2019




Daiki Ueno commented on a discussion on lib/nettle/rnd-fips.c: https://gitlab.com/gnutls/gnutls/merge_requests/1034#note_186108308

>  	return 0;
>  }
>  
> +static int get_entropy(struct fips_ctx *fctx, uint8_t *buffer, size_t length)

Given fctx is thread local, the function should be thread safe. However, it raises another question: if multiple threads are simultaneously retrieve entropy through this function, that would invalidate the continuous check. Maybe we need to add a global storage and control access using a lock.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1034#note_186108308
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/20190627/c1de5d31/attachment-0001.html>


More information about the Gnutls-devel mailing list