Home GnuPG

ecc: Avoid double conversion to affine coordinates in keygen.
102d68b3bd77Unpublished

Unpublished Commit · Learn More

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

Description

ecc: Avoid double conversion to affine coordinates in keygen.

* cipher/ecc.c (nist_generate_key): Add args r_x and r_y.
(ecc_generate): Rename vars.  Convert to affine coordinates only if
not returned by the lower level generation function.

nist_generate_key already needs to convert to affine coordinates to
implement Jivsov's trick. Thus we can return them and avoid calling
it in ecc_generate again.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 21 2015, 11:12 AM
Parents
rC8124e357b732: random: Change initial extra seeding from 2400 bits to 128 bits.
Branches
Unknown
Tags
Unknown

Event Timeline