diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-08-24 22:44:02 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-24 17:14:02 +0000 |
commit | 8129495608c1029cdb09071a80a73971d20f25d7 (patch) | |
tree | d2865f94ff382b045c0a5bb3016391b45e43fdf6 /crypto-common/src/main/kotlin/app | |
parent | 3178ec97632c5e9655cf3fc7de9fa1d2b4f30243 (diff) |
Implement support for `.gpg-id` (#2080)
Diffstat (limited to 'crypto-common/src/main/kotlin/app')
-rw-r--r-- | crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt | 8 |
1 files changed, 4 insertions, 4 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 f8995bf6..ea42af6d 100644 --- a/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt +++ b/crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt @@ -14,13 +14,13 @@ import java.io.OutputStream public interface CryptoHandler<Key> { /** - * Decrypt the given [ciphertextStream] using a [secretKey] and [passphrase], and writes the - * resultant plaintext to [outputStream]. The returned [Result] should be checked to ensure it is - * **not** an instance of [com.github.michaelbull.result.Err] before the contents of + * Decrypt the given [ciphertextStream] using a set of potential [keys] and [passphrase], and + * writes the resultant plaintext to [outputStream]. The returned [Result] should be checked to + * ensure it is **not** an instance of [com.github.michaelbull.result.Err] before the contents of * [outputStream] are used. */ public fun decrypt( - secretKey: Key, + keys: List<Key>, passphrase: String, ciphertextStream: InputStream, outputStream: OutputStream, |