Home GnuPG
Diffusion GnuPG 28467f3735f7

sm: Support encryption using ECDH keys.

Description

sm: Support encryption using ECDH keys.

* sm/decrypt.c (hash_ecc_cms_shared_info): Make global.
* sm/encrypt.c (ecdh_encrypt): New.
(encrypt_dek): Add arg PK_ALGO and support ECDH.
(gpgsm_encrypt): Pass PK_ALGO.

Note: This has only been tested with a messages created and decrypted
by GnuPG.

Backported-from-master: d5051e31a8fc07c339253c6b82426e0d0115a20a

  • GnuPG-bug-id: T6253
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 4 2020, 2:58 PM
Parents
rGd770715e1574: gpgsm: Allow ECC encryption keys with just keyAgreement specified.
Branches
Unknown
Tags
Unknown
Tasks
T6253: GpgSM: Backport ECC support to 2.2