aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encrypt.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/encrypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c
index aa0c3c6dd..f416cde53 100644
--- a/g10/encrypt.c
+++ b/g10/encrypt.c
@@ -1122,6 +1122,7 @@ write_pubkey_enc (ctrl_t ctrl,
enc->pubkey_algo = pk->pubkey_algo;
keyid_from_pk( pk, enc->keyid );
enc->throw_keyid = throw_keyid;
+ enc->seskey_algo = dek->algo; /* (Used only by PUBKEY_ALGO_KYBER.) */
/* Okay, what's going on: We have the session key somewhere in
* the structure DEK and want to encode this session key in an