Skip to content

Commit

Permalink
fix secret key decryption for v6
Browse files Browse the repository at this point in the history
  • Loading branch information
TJ-91 committed Sep 21, 2023
1 parent 9b80416 commit d28ec31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librepgp/stream-key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d28ec31

Please sign in to comment.