Home GnuPG

Fix prime test for 2 and lower and add check command to mpicalc.
0c2d1443124dUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix prime test for 2 and lower and add check command to mpicalc.

* cipher/primegen.c (check_prime): Return true for the small primes.
(_gcry_prime_check): Return correct values for 2 and lower numbers.
* src/mpicalc.c (do_primecheck): New.
(main): Add command 'P'.
(main): Allow for larger input data.

(cherry picked from commit 5c906e2cdb14e93fb4915fdc69c7353a5fa35709)

Details

Provenance
wernerAuthored on Oct 8 2014, 2:41 PM
Parents
rCd4b86782debb: mac: Fix gcry_mac_close to allow for a NULL handle.
Branches
Unknown
Tags
Unknown

Event Timeline