summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecdsa.c
diff options
context:
space:
mode:
authortb <>2023-07-04 15:09:31 +0000
committertb <>2023-07-04 15:09:31 +0000
commit49dd42972b867c5c9b0a3fea2131dbd1ebcbf88a (patch)
treec8818e400aed57a0f8fd1e48aa76f778774458ff /src/lib/libcrypto/ecdsa/ecdsa.c
parentf56705648f987e4519e2f740138a04adcb01e67f (diff)
downloadopenbsd-49dd42972b867c5c9b0a3fea2131dbd1ebcbf88a.tar.gz
openbsd-49dd42972b867c5c9b0a3fea2131dbd1ebcbf88a.tar.bz2
openbsd-49dd42972b867c5c9b0a3fea2131dbd1ebcbf88a.zip
Avoid outputting invalid signatures
The caller can provide an r which will be added to the ECDSA_SIG unchecked. This can happen via ECDSA_{,do_}sign_ex() or ECDSA_sign_setup() or else via a custom sign_sig() handler. Therefore add a check that it is in the bounds required. Since k was long thrown away, there's no way to check kinv, so it needs to be trusted. Misdesigned APIs that will output garbage everywhere... ok jsing
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecdsa.c')
0 files changed, 0 insertions, 0 deletions