summaryrefslogtreecommitdiff
path: root/src/lib/libc/string
diff options
context:
space:
mode:
authorjsing <>2024-06-22 16:33:00 +0000
committerjsing <>2024-06-22 16:33:00 +0000
commit46f3ac9ae9fffef6fa45edd1e316dc038aac3506 (patch)
tree7ea187e7cc01db66a27e1bacaa1a64b22a2ad4f6 /src/lib/libc/string
parentdafd19b33c0e06979b50ef2c4a58131b0ac45aac (diff)
downloadopenbsd-46f3ac9ae9fffef6fa45edd1e316dc038aac3506.tar.gz
openbsd-46f3ac9ae9fffef6fa45edd1e316dc038aac3506.tar.bz2
openbsd-46f3ac9ae9fffef6fa45edd1e316dc038aac3506.zip
Rewrite BN_bn2mpi() using CBB.
The content is effectively a u32 length prefixed field, so use CBB_add_u32_length_prefixed(). Use BN_bn2binpad() rather than manually padding if we need to extend and use sensible variable names so that the code becomes more readable. Note that since CBB can fail we now need to be able to indicate failure. This means that BN_bn2mpi() can now return -1 when it would not have previously (correct callers will check that BN_bn2mpi() returns a positive length). ok tb@
Diffstat (limited to 'src/lib/libc/string')
0 files changed, 0 insertions, 0 deletions