mirror of
https://github.com/openssl/openssl.git
synced 2026-01-18 17:11:31 +01:00
Expose the EC field degree as a gettable parameter for both provided and legacy EC keys. In the latter case, drop a spurious assertion, since even in debug builds an application may try to get an unknown parameter, and this should return an error rather than abort. In the EC `TEXT` encoding format, instead of reporting the bit count of the group order, report the field degree (which matches the size number in the curve's name when present) and also the symmetric-equivalent security-bits (adjusted down the the standard numbers (80, 112, 128, 192, 256). Along the way, add a missing getter method for the EC_GROUP security bits. Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> Reviewed-by: Saša Nedvědický <sashan@openssl.org> MergeDate: Thu Jan 15 16:10:26 2026 (Merged from https://github.com/openssl/openssl/pull/29539)
13 lines
427 B
Plaintext
13 lines
427 B
Plaintext
Private-Key: (256 bit field, 128 bit security level)
|
|
priv:
|
|
33:d0:43:83:a9:89:56:03:d2:d7:fe:6b:01:6f:e4:59:
|
|
cc:0d:9a:24:6c:86:1b:2e:dc:4b:4d:35:43:e1:1b:ad
|
|
pub:
|
|
04:1b:93:67:55:1c:55:9f:63:d1:22:a4:d8:d1:0a:60:
|
|
6d:02:a5:77:57:c8:a3:47:73:3a:6a:08:28:39:bd:c9:
|
|
d2:80:ec:e9:a7:08:29:71:2f:c9:56:82:ee:9a:85:0f:
|
|
6d:7f:59:5f:8c:d1:96:0b:df:29:3e:49:07:88:3f:9a:
|
|
29
|
|
ASN1 OID: prime256v1
|
|
NIST CURVE: P-256
|