diff options
author | tb <> | 2023-07-04 15:09:31 +0000 |
---|---|---|
committer | tb <> | 2023-07-04 15:09:31 +0000 |
commit | 49dd42972b867c5c9b0a3fea2131dbd1ebcbf88a (patch) | |
tree | c8818e400aed57a0f8fd1e48aa76f778774458ff /src/lib/libcrypto/ecdsa/ecdsa.c | |
parent | f56705648f987e4519e2f740138a04adcb01e67f (diff) | |
download | openbsd-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