summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strlcpy.c
diff options
context:
space:
mode:
authortb <>2024-10-17 14:34:06 +0000
committertb <>2024-10-17 14:34:06 +0000
commit35a06d0886554040024eb4df10d65120ef0ac4f6 (patch)
tree25130d18dbeb457738024eeceb2d57abb7cf62e9 /src/lib/libc/string/strlcpy.c
parent9b41a36f226fead819f4a72e5bf97ff0cd94daaf (diff)
downloadopenbsd-35a06d0886554040024eb4df10d65120ef0ac4f6.tar.gz
openbsd-35a06d0886554040024eb4df10d65120ef0ac4f6.tar.bz2
openbsd-35a06d0886554040024eb4df10d65120ef0ac4f6.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/string/strlcpy.c')
0 files changed, 0 insertions, 0 deletions