[gnutls-devel] GnuTLS | Support RSA-OAEP (!1805)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Sat Mar 2 09:47:33 CET 2024
Daiki Ueno commented on a discussion on lib/nettle/pk.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1805#note_1797972817
> + plaintext->data = gnutls_malloc(length);
> + if (plaintext->data == NULL) {
> + ret = gnutls_assert_val(GNUTLS_E_MEMORY_ERROR);
> + goto cleanup;
> + }
> +
> + if (_gnutls_get_lib_state() == LIB_STATE_SELFTEST)
> + random_func = rnd_nonce_func_fallback;
> + else
> + random_func = rnd_nonce_func;
> + ret = _rsa_decrypt_tr(&pub, &priv, NULL, random_func, &length,
> + plaintext->data, ciphertext->data);
> + plaintext->size = length;
> +
> + if (ret == 0 || HAVE_LIB_ERROR()) {
> + ret = gnutls_assert_val(GNUTLS_E_DECRYPTION_FAILED);
Fixed.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1805#note_1797972817
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/20240302/400e52e4/attachment.html>
More information about the Gnutls-devel
mailing list