[gnutls-devel] GnuTLS | Enable RIPEMD160 and PBES1-DES-SHA1 for compatibility (!1824)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Mar 26 16:15:39 CET 2024
Daiki Ueno commented on a discussion on lib/x509/privkey_pkcs8_pbes1.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1824#note_1832259132
> + uint8_t tmp[20];
> unsigned i;
>
> if (key_size > sizeof(tmp))
> abort();
>
> for (i = 0; i < iter_count; i++) {
> - md5_init(&ctx);
> + gnutls_hash_hd_t hd;
> + int ret;
> +
> + ret = gnutls_hash_init(&hd, dig);
> + if (ret < 0)
> + return gnutls_assert_val(ret);
> +
> if (i == 0) {
Good idea, done.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1824#note_1832259132
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/20240326/628e56bc/attachment.html>
More information about the Gnutls-devel
mailing list