summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dsa/dsa_prn.c
diff options
context:
space:
mode:
authortb <>2022-06-18 15:52:35 +0000
committertb <>2022-06-18 15:52:35 +0000
commit0331711a5cf4c451e85f6a7ddae090f1f2374c7e (patch)
tree151eb3f95ee74e829df842540b6413d18db542bb /src/lib/libcrypto/dsa/dsa_prn.c
parentbf9b69a49580f3d785f8e1ea109c7c3e83dfd3fb (diff)
downloadopenbsd-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_prn.c')
0 files changed, 0 insertions, 0 deletions