Files
openssl/test/recipes/30-test_evp_pkey_provided/EC.pub.txt
Viktor Dukhovni e57f7941af Expose and report EC curve field degrees
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)
2026-01-15 17:10:12 +01:00

10 lines
315 B
Plaintext

Public-Key: (256 bit field, 128 bit security level)
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