summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod/miofile.h
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-04-07 17:37:26 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-04-07 17:37:26 +0000
commit8c5c762406d685026527fb0289671ad73c47efed (patch)
tree3adc7476b06a102db34fa0e47c53edb8539c0d93 /usr.bin/sndiod/miofile.h
parent0c254df4350fc4b02a465c6a3b1d37ca2d38c568 (diff)
Avoid infinite loop for custom curves of order 1
If a private key encoded with EC parameters happens to have order 1 and is used for ECDSA signatures, this causes an infinite loop since a random integer x in the interval [0,1) will be 0, so do ... while (x == 0); will loop indefinitely. Found and reported with a reproducer by Hanno Boeck. Helpful comments and analysis from David Benjamin. ok beck jsing
Diffstat (limited to 'usr.bin/sndiod/miofile.h')
0 files changed, 0 insertions, 0 deletions