Home GnuPG

mpi: Revise mpi_powm.
d9f002899d26Unpublished

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 23 2015, 12:10 PM
Parents
rCdeb6f231ba85: mpi: Add mpi_set_cond.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rCd9f002899d26: mpi: Revise mpi_powm. (authored by NIIBE Yutaka <gniibe@fsij.org>).Feb 26 2015, 1:05 PM