diff options
| author | NIIBE Yutaka <[email protected]> | 2025-05-21 05:44:16 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2025-05-21 05:49:56 +0000 |
| commit | 57a3d2392539167767578dbb1414ad1cfb2a84ab (patch) | |
| tree | ea5874238421a1bdc3c411e3f68c469fcb1bcb96 /common/util.h | |
| parent | doc: Add a note to READ on how to disable the systemd activation. (diff) | |
| download | gnupg-57a3d2392539167767578dbb1414ad1cfb2a84ab.tar.gz gnupg-57a3d2392539167767578dbb1414ad1cfb2a84ab.zip | |
agent: Support ECC KEM by PKDECRYPT --kem.
* common/kem.c (gnupg_ecc_kem_kdf): Support traditional KDF of RFC
6637.
* common/util.h (gnupg_ecc_kem_kdf): Add FIXED_INFO argument.
* g10/pkglue.c (do_encrypt_kem): Follow the change.
* agent/pkdecrypt.c (ecc_pgp_kem_decap): Return ECC parameters.
(composite_pgp_kem_decrypt): Follow the changes.
(ecc_kem_decrypt): New.
(agent_kem_decrypt): Support ECC KEM.
--
GnuPG-bug-id: 7649
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'common/util.h')
| -rw-r--r-- | common/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index 4564009ce..cd5483a1a 100644 --- a/common/util.h +++ b/common/util.h @@ -305,7 +305,8 @@ const char *gnupg_messages_locale_name (void); gpg_error_t gnupg_ecc_kem_kdf (void *kek, size_t kek_len, int hashalgo, const void *ecdh, size_t ecdh_len, const void *ecc_ct, size_t ecc_ct_len, - const void *ecc_pk, size_t ecc_pk_len); + const void *ecc_pk, size_t ecc_pk_len, + gcry_buffer_t *fixed_info); gpg_error_t gnupg_kem_combiner (void *kek, size_t kek_len, const void *ecc_ss, size_t ecc_ss_len, |
