[gnutls-devel] GnuTLS | Optimize FIPS power-on self-tests (!1907)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Dec 19 08:18:14 CET 2024




Stephan Mueller commented on a discussion on lib/fips.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1907#note_2266898192

 >  	}
 >  
 >  	/* PK */
 > -	if (_gnutls_config_is_rsa_pkcs1_encrypt_allowed()) {
 > -		ret = gnutls_pk_self_test(0, GNUTLS_PK_RSA);
 > -		if (ret < 0) {
 > -			return gnutls_assert_val(GNUTLS_E_SELF_TEST_ERROR);
 > -		}
 > +	ret = gnutls_pk_self_test(0, GNUTLS_PK_RSA_PSS);

It is perfectly legitimate to use a "deterministic" RNG as part of the self test to perform a KAT. You can also use a hard-coded "random" value instead.

However, what I would like to ask is, now that the enc/dec is dropped, is the enc/dec being covered via OAEP?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1907#note_2266898192
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/20241219/cff20332/attachment-0001.html>


More information about the Gnutls-devel mailing list