From 8129495608c1029cdb09071a80a73971d20f25d7 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 24 Aug 2022 22:44:02 +0530 Subject: Implement support for `.gpg-id` (#2080) --- .../src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crypto-common/src/main/kotlin/app') 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 { /** - * 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, passphrase: String, ciphertextStream: InputStream, outputStream: OutputStream, -- cgit v1.2.3