summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/pkeyparam.c
diff options
context:
space:
mode:
authortb <>2023-03-04 21:37:37 +0000
committertb <>2023-03-04 21:37:37 +0000
commit8a82cbb62d388a2c5f2cfe6add96806986ba1d67 (patch)
tree7e6dcc972785d6113ee7a5192dbc3534af739346 /src/usr.bin/openssl/pkeyparam.c
parentf5af461be23ab6e7a4a998f974edf286d18cac7c (diff)
downloadopenbsd-8a82cbb62d388a2c5f2cfe6add96806986ba1d67.tar.gz
openbsd-8a82cbb62d388a2c5f2cfe6add96806986ba1d67.tar.bz2
openbsd-8a82cbb62d388a2c5f2cfe6add96806986ba1d67.zip
Cap the number of iterations in ECDSA signing
ECDSA is essentially the same thing as DSA, except that it is slightly less stupid. Signing specifies an infinite loop, which is only possible with arbitrary ECDSA domain parameters. Fortunately, most use of ECDSA in the wild is based on well-known groups, so it is known a priori that the loop is not infinite. Still, infinite loops are bad. A retry is unlikely, 32 retries have a probability of ~2^-8000. So it's pretty safe to error out. ok beck jsing
Diffstat (limited to 'src/usr.bin/openssl/pkeyparam.c')
0 files changed, 0 insertions, 0 deletions