summaryrefslogtreecommitdiff
path: root/src/lib/libssl/man/SSL_set1_param.3
diff options
context:
space:
mode:
authortb <>2024-11-08 22:03:29 +0000
committertb <>2024-11-08 22:03:29 +0000
commit6b42101493f1f270e3e232e576ceb26a05cede5f (patch)
tree1f231b14e5b71cd9d8f6a4e9080686d27596eb99 /src/lib/libssl/man/SSL_set1_param.3
parent87e01b19e22b5aa813af998b149eb34fd96de895 (diff)
downloadopenbsd-6b42101493f1f270e3e232e576ceb26a05cede5f.tar.gz
openbsd-6b42101493f1f270e3e232e576ceb26a05cede5f.tar.bz2
openbsd-6b42101493f1f270e3e232e576ceb26a05cede5f.zip
Sweep over EC_KEY_copy()
This is a special snowflake. Its logic is such that it only overwrites things on the target that are available in the source. So if the source has no group (yes, that's possible), the destination's group will remain. Even better: if you copy a public key over what was previously a private key, the private scalar will remain. That's almost never going to result in a valid key. If you copy from a larger group to a smaller group the private scalar will most likely be out of range [1, order). Use dup functions instead of reimplementing badly and add a snarky comment courtesy of beck to one of those silly const annotations (there's a small addendum by me). ok beck jsing
Diffstat (limited to 'src/lib/libssl/man/SSL_set1_param.3')
0 files changed, 0 insertions, 0 deletions