Home GnuPG

mpi: Revise mpi_powm.
1fa8cdb93350Unpublished

Unpublished Commit · Learn More

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

Description

mpi: Revise mpi_powm.

* mpi/mpi-pow.c (_gcry_mpi_powm): Rename the table to PRECOMP.

The name of precomputed table was b_2i3 which stands for BASE^(2*I+3).
But it's too cryptic, so, it's renamed. Besides, we needed to
distinguish the case of I==0, that was not good. Since it's OK to
increase the size of table by one, it's BASE^(2*I+1), now.

Details

Provenance
gniibeAuthored on Feb 11 2015, 2:30 PM
Parents
rC410d70bad9a6: cipher: Use ciphertext blinding for Elgamal decryption.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rC1fa8cdb93350: mpi: Revise mpi_powm. (authored by NIIBE Yutaka <gniibe@fsij.org>).Feb 27 2015, 6:03 AM