[gnutls-devel] GnuTLS | gnutls_pubkey_encrypt_data throws encryption error when passing an input with same size as the key. (#1402)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Sep 11 09:20:53 CEST 2022




Daiki Ueno commented:


I would say the behavior is expected, while it might be under documented. RSA encryption exposed from GnuTLS is RSAES-PKCS1-v1_5, which requires that the maximum plaintext length is key length minus 11 bytes (see the step 1 at https://www.rfc-editor.org/rfc/rfc8017#section-7.2.1).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1402#note_1095895895
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/20220911/faa91ed5/attachment.html>


More information about the Gnutls-devel mailing list