From d28ec31e21fb8d655a79bb2527dcad8a7af1ad98 Mon Sep 17 00:00:00 2001 From: Johannes Roth Date: Thu, 21 Sep 2023 16:33:56 +0200 Subject: [PATCH] fix secret key decryption for v6 --- src/librepgp/stream-key.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/librepgp/stream-key.cpp b/src/librepgp/stream-key.cpp index a1c68221..7c9a5c4e 100644 --- a/src/librepgp/stream-key.cpp +++ b/src/librepgp/stream-key.cpp @@ -788,6 +788,10 @@ decrypt_secret_key(pgp_key_pkt_t *key, const char *password) } ret = decrypt_secret_key_v3(&crypt, decdata.data(), key->sec_data, key->sec_len); break; +#if defined(ENABLE_CRYPTO_REFRESH) + case PGP_V6: + FALLTHROUGH_STATEMENT; +#endif case PGP_V4: pgp_cipher_cfb_decrypt(&crypt, decdata.data(), key->sec_data, key->sec_len); ret = RNP_SUCCESS;