[gnutls-devel] GnuTLS | Draft: Work on issue #1475 (!1812)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sun Feb 18 08:35:54 CET 2024




Hoang Long commented on a discussion: https://gitlab.com/gnutls/gnutls/-/merge_requests/1812#note_1778088253

I think I've tried that before, but I keep getting errors in DER parsing, and I'm not sure why.

`
gnutls_datum_t ecpoint;

const char *ecpoint_hex_string = "3059301306072a8648ce3d020106082a8648ce3d0301070342000462d5bd3372af75fe85a040715d0f502428e07046868b0bfdfa61d731afe44f26ac333a93a9e70a81cd5a95b5bf8d13990eb741c8c38872b4a07d275a014e30cf";

gen_data(ecpoint_hex_string, &ecpoint);

gnutls_pubkey_t pubkey;

ret = gnutls_pubkey_init(&pubkey);

ret = gnutls_pubkey_import(pubkey,&ecpoint, GNUTLS_X509_FMT_DER);`

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1812#note_1778088253
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/20240218/0f54ab93/attachment.html>


More information about the Gnutls-devel mailing list