aboutsummaryrefslogtreecommitdiff
path: root/crypto/pgpainless/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2024-05-25 20:48:20 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2024-05-25 20:48:20 +0530
commit6fe80fb4b3e842f85c36dea08dbd7d0220f4c1e7 (patch)
tree6f5dc430c90d9598113c83867061c92ca3a76633 /crypto/pgpainless/src/main
parent336e36ef0492b3350d7c5a650034d719dd13f8ff (diff)
fix(pgpainless): remove incorrect check
I don't believe this ever made sense to check in the decryption phase
Diffstat (limited to 'crypto/pgpainless/src/main')
-rw-r--r--crypto/pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt5
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 ->