mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 22:35:17 +00:00
fix(pgpainless): remove incorrect check
I don't believe this ever made sense to check in the decryption phase
This commit is contained in:
@@ -66,11 +66,6 @@ public class PGPainlessCryptoHandler @Inject constructor() :
|
|||||||
)
|
)
|
||||||
Streams.pipeAll(decryptionStream, outputStream)
|
Streams.pipeAll(decryptionStream, outputStream)
|
||||||
decryptionStream.close()
|
decryptionStream.close()
|
||||||
keyringCollection.forEach { keyRing ->
|
|
||||||
check(decryptionStream.metadata.isEncryptedFor(keyRing)) {
|
|
||||||
"Stream should be encrypted for ${keyRing.secretKey.keyID} but wasn't"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return@runCatching
|
return@runCatching
|
||||||
}
|
}
|
||||||
.mapError { error ->
|
.mapError { error ->
|
||||||
|
Reference in New Issue
Block a user