aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'crypto')
-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 ->