summaryrefslogtreecommitdiff
path: root/src/lib/libc
diff options
context:
space:
mode:
authortb <>2024-10-17 14:34:06 +0000
committertb <>2024-10-17 14:34:06 +0000
commita2ef0e2df9a19f862265cd5c206555caba13070f (patch)
tree25130d18dbeb457738024eeceb2d57abb7cf62e9 /src/lib/libc
parent978d3a277baeb25c75e71e4d12342c47d1764205 (diff)
downloadopenbsd-a2ef0e2df9a19f862265cd5c206555caba13070f.tar.gz
openbsd-a2ef0e2df9a19f862265cd5c206555caba13070f.tar.bz2
openbsd-a2ef0e2df9a19f862265cd5c206555caba13070f.zip
Split ec_asn1_parameters2group() into digestible pieces
This becomes a simple wrapper function that currently does three checks: 1. ensure the fieldID is for a prime field 2. check that the purported prime is of reasonable size, extract and set curve coefficients and point conversion form 3. extract and set generator, order, cofactor and seed. Sanity checks such as the Hasse bound are dealt with in the EC_GROUP API, so need not be repeated here. They will become redundant once we enforce that the parameters represent a builtin curve anyway. ok jsing
Diffstat (limited to 'src/lib/libc')
0 files changed, 0 insertions, 0 deletions