Home GnuPG

ecc: Avoid double conversion to affine coordinates in keygen.
1de693f9d229Unpublished

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.

(backported from master
commit 102d68b3bd77813a3ff989526855bb1e283bf9d7)

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

Details

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

Event Timeline