Home GnuPG

ecc: Improve gcry_pk_get_curve.
03aed1acec61Unpublished

Unpublished Commit · Learn More

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

Description

ecc: Improve gcry_pk_get_curve.

* cipher/ecc-curves.c (_gcry_ecc_fill_in_curve): Factor some code out
to ..
(find_domain_parms_idx): new.
(_gcry_ecc_get_curve): Find by curve name on error.

This change allows the use of an input with just the curve name which
can be used to test whether a given curve has been implemented. Is is
required because due to the "param" flag change the caller usually
does not have the key parameters available.

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

Details

Provenance
wernerAuthored on Nov 8 2013, 5:41 PM
Parents
rCe241dde14204: cipher: Avoid signed divisions in idea.c
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rC03aed1acec61: ecc: Improve gcry_pk_get_curve. (authored by Werner Koch <wk@gnupg.org>).Nov 8 2013, 5:41 PM