diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2013-12-04 10:03:57 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2013-12-04 10:31:31 +0900 |
commit | c56080c26186d25dec05f01831494c77d8d07e13 (patch) | |
tree | e2957ceb59382e54d7d438a472782eb519e53933 /cipher/cast5.c | |
parent | 2ff86db2e1b0f6cc22a1ca86037b526c5fa3be51 (diff) | |
download | libgcrypt-c56080c26186d25dec05f01831494c77d8d07e13.tar.gz |
mpi: fix gcry_mpi_powm for negative base.
* mpi/mpi-pow.c (gcry_mpi_powm) [USE_ALGORITHM_SIMPLE_EXPONENTIATION]:
Fix for the case where BASE is negative.
* tests/mpitests.c (test_powm): Add a test case of (-17)^6 mod 19.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher/cast5.c')
0 files changed, 0 insertions, 0 deletions