Home GnuPG

ecc: Support EdDSA with context and enabling PH(M).

Description

ecc: Support EdDSA with context and enabling PH(M).

* cipher/ecc-eddsa.c (_gcry_ecc_eddsa_compute_h_d): Simplify.
(DOM4_0_NONE, DOM4_0_NONE_LEN): Remove.
(DOM25519, DOM25519_LEN): New.
(DOM448, DOM448_LEN): New.
(_gcry_ecc_eddsa_sign): Support EdDSA with context and PH.
(_gcry_ecc_eddsa_verify): Likewise.
* tests/t-ed448.c: Add tests with context and PH=1.
* tests/t-ed448.inp: Add test data.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 18 2020, 4:45 AM
Parents
rC2856ac14ae3e: ecc: Change EdDSA internal API.
Branches
Unknown
Tags
Unknown