summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_ameth.c
diff options
context:
space:
mode:
authortb <>2024-10-28 17:58:18 +0000
committertb <>2024-10-28 17:58:18 +0000
commit0bd57c6657dcc22878debfe15918c1d2a351a425 (patch)
tree33191fc6eb349b18050329da7a2600a843958277 /src/lib/libcrypto/dsa/dsa_ameth.c
parent14337ede20ff409ce7a9e79f939bd3f1d8909e01 (diff)
downloadopenbsd-0bd57c6657dcc22878debfe15918c1d2a351a425.tar.gz
openbsd-0bd57c6657dcc22878debfe15918c1d2a351a425.tar.bz2
openbsd-0bd57c6657dcc22878debfe15918c1d2a351a425.zip
d2i_ECPrivateKey: split parameter setting into a helper
In order to decode a private key, the group must be known in some way. Typically, the group is encoded in the EC domain parameters, preferably as a named curve (this is mandatory in PKIX per RFC 5480). However, the group could be absent because the domain parameters are OPTIONAL in the ECPrivateKey SEQUENCE. In that case the code falls back to the group that may already be set on the EC_KEY. Now there is no way to tell whether that group is the right one... In any case. Split this thing out of the body of d2i_ECPrivateKey() to make that function a bit less of an eyesore. ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_ameth.c')
0 files changed, 0 insertions, 0 deletions