diff options
author | Werner Koch <wk@gnupg.org> | 2024-04-23 11:09:40 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2024-04-23 11:09:40 +0200 |
commit | f305e703d51079a17bcfc15d54f4c5f591dcff56 (patch) | |
tree | a6028055694f52e17a98754e24c797f62180c9be /common | |
parent | agent:kem: More fix for PQC KEM with X448. (diff) | |
download | gnupg2-f305e703d51079a17bcfc15d54f4c5f591dcff56.tar.xz gnupg2-f305e703d51079a17bcfc15d54f4c5f591dcff56.zip |
Require Libgcrypt 1.11.0
* configure.ac (NEED_LIBGCRYPT_VERSION): Set to 1.11.0
* agent/pkdecrypt.c (struct ecc_params): Move constants to the top.
--
It does not make anymore sense to allow building with older Libgcrypt
versions. After all PQ key support is a major feature and for this we
need Libgcrypt.
Diffstat (limited to 'common')
-rw-r--r-- | common/kem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/common/kem.c b/common/kem.c index 7227898d1..0e498d37e 100644 --- a/common/kem.c +++ b/common/kem.c @@ -54,7 +54,6 @@ compute_kmac256 (void *digest, size_t digestlen, const void *custom, size_t customlen, gcry_buffer_t *data_iov, int data_iovlen) { -#if GCRYPT_VERSION_NUMBER >= 0x010b00 gpg_error_t err; gcry_buffer_t iov[20]; const unsigned char headPAD[2] = { 1, KECCAK512_BLOCKSIZE }; @@ -142,11 +141,9 @@ compute_kmac256 (void *digest, size_t digestlen, err = gcry_md_hash_buffers_ext (GCRY_MD_CSHAKE256, 0, digest, digestlen, iov, iovcnt); return err; -#else - return gpg_error (GPG_ERR_NOT_IMPLEMENTED); -#endif } + /* Compute KEK (shared secret) for ECC with HASHALGO, ECDH result, ciphertext in ECC_CT, public key in ECC_PK. */ gpg_error_t |