From 75040136ae5ca6108335975430b411f8a560d0ba Mon Sep 17 00:00:00 2001 From: Tad Fisher Date: Sun, 9 Oct 2022 16:10:42 -0700 Subject: Add decryption callback to CryptoHandler --- .../src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto-common') diff --git a/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt b/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt index ea42af6d..7f5ca625 100644 --- a/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt +++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt @@ -11,7 +11,7 @@ import java.io.InputStream import java.io.OutputStream /** Generic interface to implement cryptographic operations on top of. */ -public interface CryptoHandler { +public interface CryptoHandler { /** * Decrypt the given [ciphertextStream] using a set of potential [keys] and [passphrase], and @@ -24,6 +24,7 @@ public interface CryptoHandler { passphrase: String, ciphertextStream: InputStream, outputStream: OutputStream, + onDecryptSessionKey: (EncryptedSessionKey) -> DecryptedSessionKey, ): Result /** -- cgit v1.2.3