Add a test for public variants of bn2bin()
authorRichard Levitte <levitte@openssl.org>
Thu, 12 Jan 2023 10:10:01 +0000 (11:10 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 20 Jan 2023 07:38:40 +0000 (07:38 +0000)
commit15192335c8bbfb78bc02086bcd77a0d82efffbce
treeba8460ebd44f5f7889b0e14ac088e4f2ea721cdb
parent1b24b5a1b43c2af0a6c1cb2d196f5132ee723488
Add a test for public variants of bn2bin()

We test with binary input of length 1, length 0, and NULL input with length 0

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20033)
test/bntest.c