ecc: Consolidate encoding a point for Montgomery curve.

Authored by gniibe on Oct 10 2019, 6:27 AM.

Description

ecc: Consolidate encoding a point for Montgomery curve.

* cipher/ecc-common.h (_gcry_ecc_mont_encodepoint): New.
* cipher/ecc-misc.c (_gcry_ecc_mont_encodepoint): New.
* cipher/ecc.c (ecc_generate): Use _gcry_ecc_mont_encodepoint.
(ecc_encrypt_raw, ecc_decrypt_raw, _gcry_pk_ecc_get_sexp): Likewise.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Committed
gniibeOct 10 2019, 6:27 AM
Parents
rCba0b31f26366: ecc: More clean-up for Ed25519 and Curve25519.
Branches
Unknown
Tags
Unknown