diff options
author | jsing <> | 2022-07-30 13:42:25 +0000 |
---|---|---|
committer | jsing <> | 2022-07-30 13:42:25 +0000 |
commit | 1cf7b34b847eab95bca1e8ca960305109169bf2d (patch) | |
tree | 089cb6d64c531aa03fcb07b3b53bb1e713556c68 /src/lib/libc/stdlib/recallocarray.c | |
parent | 0f71ba015d8e03e4d84b7bc359636df7bec8ff0d (diff) | |
download | openbsd-1cf7b34b847eab95bca1e8ca960305109169bf2d.tar.gz openbsd-1cf7b34b847eab95bca1e8ca960305109169bf2d.tar.bz2 openbsd-1cf7b34b847eab95bca1e8ca960305109169bf2d.zip |
Use ASN1_INTEGER to encode/decode BIGNUM_it.
The current code simply shoves the unvalidated ASN.1 bytes into a BIGNUM on
the hope that other things will detect issues (such as negative values
being flipped to positive). Instead of doing this, decode and validate the
ASN.1 data using ASN1_INTEGER, then convert it to a BIGNUM. Similarly, for
encoding convert from BIGNUM to ASN1_INTEGER and use ASN1_INTEGER encoding.
ok tb@
Diffstat (limited to 'src/lib/libc/stdlib/recallocarray.c')
0 files changed, 0 insertions, 0 deletions