mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-23 11:27:57 +01:00
Add hint about mutli assignment
This commit is contained in:
parent
db09a0ffbe
commit
dd976b7319
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ public final class DecryptionStreamFactory {
|
||||||
PGPSecretKey secretKey = decryptionKeys.getSecretKey(keyId);
|
PGPSecretKey secretKey = decryptionKeys.getSecretKey(keyId);
|
||||||
if (secretKey != null) {
|
if (secretKey != null) {
|
||||||
LOGGER.log(LEVEL, "Found respective secret key " + Long.toHexString(keyId));
|
LOGGER.log(LEVEL, "Found respective secret key " + Long.toHexString(keyId));
|
||||||
|
// Watch out! This assignment is possibly done multiple times.
|
||||||
encryptedSessionKey = encryptedData;
|
encryptedSessionKey = encryptedData;
|
||||||
decryptionKey = secretKey.extractPrivateKey(decryptionKeyDecryptor.getDecryptor(keyId));
|
decryptionKey = secretKey.extractPrivateKey(decryptionKeyDecryptor.getDecryptor(keyId));
|
||||||
resultBuilder.setDecryptionFingerprint(new OpenPgpV4Fingerprint(secretKey));
|
resultBuilder.setDecryptionFingerprint(new OpenPgpV4Fingerprint(secretKey));
|
||||||
|
|
Loading…
Reference in a new issue