]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/params.c
In OSSL_PARAM_set_BN(), make sure that the data_size field is at least 1
authorRichard Levitte <levitte@openssl.org>
Tue, 10 Jan 2023 11:22:39 +0000 (12:22 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Jan 2023 22:38:13 +0000 (23:38 +0100)
commitc2ae89148343750e420b72ef1b709ebbc16e47b8
tree8fad08a8bd7d71d5a635a1765cc2bbf24efbed71
parentb49cf273883c8d3f47542941fe5cc6cb51aec9c9
In OSSL_PARAM_set_BN(), make sure that the data_size field is at least 1

This way, we guarantee that a zero is represented with one byte of data
that's set to zero.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20013)
crypto/params.c