Home GnuPG

ecc: Support the non-standard 0x40 compression flag for EdDSA.
4556f9b19c02Unpublished

Unpublished Commit · Learn More

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

Description

ecc: Support the non-standard 0x40 compression flag for EdDSA.

* cipher/ecc.c (ecc_generate): Check the "comp" flag for EdDSA.
* cipher/ecc-eddsa.c (eddsa_encode_x_y): Add arg WITH_PREFIX.
(_gcry_ecc_eddsa_encodepoint): Ditto.
(_gcry_ecc_eddsa_ensure_compact): Handle the 0x40 compression prefix.
(_gcry_ecc_eddsa_decodepoint): Ditto.
* tests/keygrip.c: Check an compresssed with prefix Ed25519 key.
* tests/t-ed25519.inp: Ditto.

Details

Provenance
wernerAuthored on Jul 24 2014, 12:30 PM
Parents
rC0e10902ad758: mpi: Extend the internal mpi_get_buffer.
Branches
Unknown
Tags
Unknown

Event Timeline