aboutsummaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-05-04 12:58:37 +0000
committerWerner Koch <[email protected]>2020-05-04 12:58:37 +0000
commitd5051e31a8fc07c339253c6b82426e0d0115a20a (patch)
tree33906807ae246d60818a54388c6bb0e9d4e51d54 /sm/gpgsm.h
parentdoc: Typo fixes in code comments (diff)
downloadgnupg-d5051e31a8fc07c339253c6b82426e0d0115a20a.tar.gz
gnupg-d5051e31a8fc07c339253c6b82426e0d0115a20a.zip
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. GnuPG-bug-id: 4098 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index 60b20cc22..580f2d6f6 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -389,6 +389,10 @@ int gpgsm_encrypt (ctrl_t ctrl, certlist_t recplist,
int in_fd, estream_t out_fp);
/*-- decrypt.c --*/
+gpg_error_t hash_ecc_cms_shared_info (gcry_md_hd_t hash_hd,
+ const char *wrap_algo_str,
+ unsigned int keylen,
+ const void *ukm, unsigned int ukmlen);
int gpgsm_decrypt (ctrl_t ctrl, int in_fd, estream_t out_fp);
/*-- certreqgen.c --*/