summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_prn.c
diff options
context:
space:
mode:
authortb <>2024-10-28 18:03:34 +0000
committertb <>2024-10-28 18:03:34 +0000
commitd5d0119ed0fce70c04b0e4f6e89e9f2a1e6b0137 (patch)
treebe4bf7fc72a8ab8178be601377e9690d8b2641d4 /src/lib/libcrypto/dsa/dsa_prn.c
parent7fe8b6a60797c33d896cb1e34f152c4a7c2ac1a7 (diff)
downloadopenbsd-d5d0119ed0fce70c04b0e4f6e89e9f2a1e6b0137.tar.gz
openbsd-d5d0119ed0fce70c04b0e4f6e89e9f2a1e6b0137.tar.bz2
openbsd-d5d0119ed0fce70c04b0e4f6e89e9f2a1e6b0137.zip
d2i_ECPrivateKey: split public key setting into a helper
If the public key is not part of the ECPrivateKey, it needs to be computed. Rather than doing this ad hoc inline, use the function from the ameth that already does this. If it is present, decode it after checking that its unused bits octet is zero. Again use the dedicated setter API to honor an eventual EC_KEY_METHOD. There remains a gross bit reading the point point conversion form out of the first octet of the bit string. This will go away in a later commit. ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_prn.c')
0 files changed, 0 insertions, 0 deletions