mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-01-11 04:36:24 +01:00
Use more standards compliant way to determine if secret key is encrypted
This commit is contained in:
parent
ed43d3c6a9
commit
d082f126b3
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ public class KeyRingInfo {
|
|||
public boolean isFullyDecrypted() {
|
||||
if (isSecretKey()) {
|
||||
for (PGPSecretKey secretKey : getSecretKeys()) {
|
||||
if (secretKey.getKeyEncryptionAlgorithm() != SymmetricKeyAlgorithm.NULL.getAlgorithmId()) {
|
||||
if (secretKey.getS2KUsage() != 0) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue