diff options
author | jsing <> | 2024-11-08 14:18:44 +0000 |
---|---|---|
committer | jsing <> | 2024-11-08 14:18:44 +0000 |
commit | 7bfb9335fb0ae857523adc3e3686eeb719aafd2e (patch) | |
tree | b0fb987a81953a29921d5ec19c5d224d718bc994 /src/lib/libssl/ssl_both.c | |
parent | 124eef3044ec1877d9304efc8ffd43fa27cc0dab (diff) | |
download | openbsd-7bfb9335fb0ae857523adc3e3686eeb719aafd2e.tar.gz openbsd-7bfb9335fb0ae857523adc3e3686eeb719aafd2e.tar.bz2 openbsd-7bfb9335fb0ae857523adc3e3686eeb719aafd2e.zip |
Rewrite bn2binpad.
Rewrite bn2binpad, removing some OpenSSL specific behaviour and unnecessary
complexity. Our BN_num_bytes() does not return bogus lengths, so we don't
need to see if things work out with nominated outputs. Swipe away some
endianness_t, but continue to ignore negatives and don't dare give away
padded zeroes.
Implement a more readable constant time conversion. In particular, the
little endian is the less common use case, which we can implement by
reversing the padded output in place, rather than complicating all of the
conversion code.
ok beck@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_both.c')
0 files changed, 0 insertions, 0 deletions