diff options
author | tb <> | 2022-06-18 15:52:35 +0000 |
---|---|---|
committer | tb <> | 2022-06-18 15:52:35 +0000 |
commit | 0331711a5cf4c451e85f6a7ddae090f1f2374c7e (patch) | |
tree | 151eb3f95ee74e829df842540b6413d18db542bb /src/lib/libcrypto/dsa/dsa_lib.c | |
parent | bf9b69a49580f3d785f8e1ea109c7c3e83dfd3fb (diff) | |
download | openbsd-0331711a5cf4c451e85f6a7ddae090f1f2374c7e.tar.gz openbsd-0331711a5cf4c451e85f6a7ddae090f1f2374c7e.tar.bz2 openbsd-0331711a5cf4c451e85f6a7ddae090f1f2374c7e.zip |
Fix prime recognition when doing trial divisions
If gcd(a, primes[i]) == 0 then a could still be a prime, namely in the
case that a == primes[i], so check for that case as well.
Problem noted by Martin Grenouilloux
ok jsing
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_lib.c')
0 files changed, 0 insertions, 0 deletions