summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/seed48.c
diff options
context:
space:
mode:
authortb <>2025-09-05 14:01:56 +0000
committertb <>2025-09-05 14:01:56 +0000
commita52f774428b343a9da61050f2a817d96cb494261 (patch)
tree08406d014b3d044ee1231165d17f5dbfbe7ad2da /src/lib/libc/stdlib/seed48.c
parent472f58fac15ad5c1fc0917e726d4a95b388127fc (diff)
downloadopenbsd-a52f774428b343a9da61050f2a817d96cb494261.tar.gz
openbsd-a52f774428b343a9da61050f2a817d96cb494261.tar.bz2
openbsd-a52f774428b343a9da61050f2a817d96cb494261.zip
wycheproof: add custom JSON unmarshaler big integers
Since the wycheproof tests were written in Java, they inherited some of that language's weirdnesses. For example, the hex representation may have odd length, is 2-complement and needs zero-padding if the top bit of a nibble is set, similar to ASN.1 integers. This is needed for correctly decoding the Primality test cases, which worked nicely in v0 but no longer for v1. Convert the Primality test to use this.
Diffstat (limited to 'src/lib/libc/stdlib/seed48.c')
0 files changed, 0 insertions, 0 deletions