diff options
Diffstat (limited to 'crypto/common/src')
-rw-r--r-- | crypto/common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt | 6 |
1 files changed, 6 insertions, 0 deletions
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 898cf058..20a4d1d9 100644 --- a/crypto/common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt +++ b/crypto/common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt @@ -41,4 +41,10 @@ public interface CryptoHandler<Key, EncOpts : CryptoOptions, DecryptOpts : Crypt /** Given a [fileName], return whether this instance can handle it. */ public fun canHandle(fileName: String): Boolean + + /** + * Inspects the given encrypted [message] to notify user if a passphrase is necessary to decrypt + * it. + */ + public fun isPassphraseProtected(message: InputStream): Boolean } |