summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_both.c
diff options
context:
space:
mode:
authorjsing <>2024-11-08 14:18:44 +0000
committerjsing <>2024-11-08 14:18:44 +0000
commit7bfb9335fb0ae857523adc3e3686eeb719aafd2e (patch)
treeb0fb987a81953a29921d5ec19c5d224d718bc994 /src/lib/libssl/ssl_both.c
parent124eef3044ec1877d9304efc8ffd43fa27cc0dab (diff)
downloadopenbsd-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