Home GnuPG

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

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.

Details

Provenance
wernerAuthored on Oct 8 2014, 2:41 PM
Parents
rCde0ccd4dce7e: Add Whirlpool AMD64/SSE2 assembly implementation
Branches
Unknown
Tags
Unknown

Event Timeline