summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/recallocarray.c
diff options
context:
space:
mode:
authorschwarze <>2019-08-25 19:24:00 +0000
committerschwarze <>2019-08-25 19:24:00 +0000
commit778a6d338bf2610d12d814b4a503d2638cfc8d1d (patch)
treeb5109bcc1c452d104f90693aee6a22d0e945d314 /src/lib/libc/stdlib/recallocarray.c
parent533a7ff91759c413fd387c34db7eef7bfcad50eb (diff)
downloadopenbsd-778a6d338bf2610d12d814b4a503d2638cfc8d1d.tar.gz
openbsd-778a6d338bf2610d12d814b4a503d2638cfc8d1d.tar.bz2
openbsd-778a6d338bf2610d12d814b4a503d2638cfc8d1d.zip
Change generating and checking of primes so that the error rate of
not being prime depends on the intended use based on the size of the input. For larger primes this will result in more rounds of Miller-Rabin. The maximal error rate for primes with more than 1080 bits is lowered to 2^-128. Patch from Kurt Roeckx <kurt@roeckx.be> and Annie Yousar via OpenSSL commit feac7a1c Jul 25 18:55:16 2018 +0200, still under a free license. OK tb@.
Diffstat (limited to 'src/lib/libc/stdlib/recallocarray.c')
0 files changed, 0 insertions, 0 deletions