diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-25 20:48:20 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2024-05-25 20:48:20 +0530 |
commit | 6fe80fb4b3e842f85c36dea08dbd7d0220f4c1e7 (patch) | |
tree | 6f5dc430c90d9598113c83867061c92ca3a76633 | |
parent | 336e36ef0492b3350d7c5a650034d719dd13f8ff (diff) |
fix(pgpainless): remove incorrect check
I don't believe this ever made sense to check in the decryption phase
-rw-r--r-- | crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt index 92fbfa64..1aabe54f 100644 --- a/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt +++ b/crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt @@ -66,11 +66,6 @@ public class PGPainlessCryptoHandler @Inject constructor() : ) Streams.pipeAll(decryptionStream, outputStream) decryptionStream.close() - keyringCollection.forEach { keyRing -> - check(decryptionStream.metadata.isEncryptedFor(keyRing)) { - "Stream should be encrypted for ${keyRing.secretKey.keyID} but wasn't" - } - } return@runCatching } .mapError { error -> |