summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2024-11-06 09:10:55 +0000
committertb <>2024-11-06 09:10:55 +0000
commit44fecf844216dcfcdd6c992dab1bb1842114b795 (patch)
tree4398c3c3220f5a8a97630560d202f2eab8d3704c /src/lib/libc
parent89ed341527c32f26bc41fe456d57031ba8887e57 (diff)
downloadopenbsd-44fecf844216dcfcdd6c992dab1bb1842114b795.tar.gz
openbsd-44fecf844216dcfcdd6c992dab1bb1842114b795.tar.bz2
openbsd-44fecf844216dcfcdd6c992dab1bb1842114b795.zip
Clean up EC_GROUP_copy()
Switch from artistic free reinterpretations of public API in the same file to calling the real thing if possible. This means that we need to copy the group's coefficients first instead of last, so that we can call EC_GROUP_set_generator() to set - yes - all three of generator, order, and cofactor of the group. However, we may not have a generator yet since for some reason it is an optional field and some code relies on that. In that case simply copy over order and cofactor and punt on sanity checking for now (since this API never did that anyway). Finally set the seed using EC_GROUP_set_seed() instead of using a custom reimplementation. ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions