Complete x509parse_public_key_ec()

Warning: due to a bug in oid_descriptor_from_buf(), keys associated to some
curves (secp224r1, secp384r1, secp521r1) are incorrectly rejected,
since their namedCurve OID contains a nul byte.
This commit is contained in:
Manuel Pégourié-Gonnard 2013-07-01 19:45:45 +02:00
parent f838eeda09
commit 73c0cda346
3 changed files with 95 additions and 22 deletions

Binary file not shown.

View file

@ -1,4 +1,4 @@
-----BEGIN PUBLIC KEY-----
ME4wEAYHKoZIzj0CAQYFK4EEACEDOgAEb3GKqedAJ2/1CRdhjIRhQO+4erL49GlI
QrBg7frKWrc6ZrnjgXgdHt68Tux/2IyRuff+lvGn32s=
MEkwEwYHKoZIzj0CAQYIKoZIzj0DAQEDMgAEvHl9s65/COw9SWtPtBGz9iClWKUB
4CItCM/g3Irsixp78kvpKVHMW6G+uyR0kJrg
-----END PUBLIC KEY-----