[gnutls-devel] GnuTLS | Handle private keys with lowercase hex digits in DEK-Info (!1655)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Oct 27 10:56:00 CEST 2022




Zoltán Fridrich commented on a discussion on lib/x509/privkey_openssl.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1655#note_1150786854

>  			x = (*c) - '0';
>  		else if (*c >= 'A' && *c <= 'F')
>  			x = (*c) - 'A' + 10;
> +		else if (*c >= 'a' && *c <= 'f')

I prefer the `gnutls_hex_decode` approach

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1655#note_1150786854
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/20221027/b8efee9a/attachment.html>


More information about the Gnutls-devel mailing list