[gnutls-devel] GnuTLS | Increase length limit of PKCS#12 passwords (#1349)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Mar 30 17:38:49 CEST 2022



Daiki Ueno created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1349



The library limits the length of PKCS#12 password to be less than [256](https://gitlab.com/gnutls/gnutls/-/blob/9860846b66e4c698c60a3b343dcb3ba49c77e096/lib/x509/pkcs12_encr.c#L30) bytes. Since passwords get encoded in UCS2, the limit for ASCII passwords is halved to 128 characters, which is not uncommon to exceed these days.

Let's increase the limit to, say 4096 characters (8192 bytes).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1349
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/20220330/8bb818db/attachment.html>


More information about the Gnutls-devel mailing list