aboutsummaryrefslogtreecommitdiffstats
path: root/g10/seskey.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/seskey.c')
-rw-r--r--g10/seskey.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/seskey.c b/g10/seskey.c
index 15c210b78..e5397080d 100644
--- a/g10/seskey.c
+++ b/g10/seskey.c
@@ -92,7 +92,9 @@ encode_session_key (int openpgp_pk_algo, DEK *dek, unsigned int nbits)
/* Shortcut for ECDH. It's padding is minimal to simply make the
output be a multiple of 8 bytes. */
- if (openpgp_pk_algo == PUBKEY_ALGO_ECDH)
+ /* FIXME: We use the ECDH also for Kyber for now. */
+ if (openpgp_pk_algo == PUBKEY_ALGO_ECDH
+ || openpgp_pk_algo == PUBKEY_ALGO_KYBER)
{
/* Pad to 8 byte granularity; the padding byte is the number of
* padded bytes.