From 15f2489550e0503b429cc243a31823fd843d4959 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 18 Jul 2022 00:01:06 +0530 Subject: crypto: consistently use secret key nomenclature --- .../src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto-common/src/main/kotlin') 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 952f4a7e..f8995bf6 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 [privateKey] and [passphrase], and writes the + * 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 * [outputStream] are used. */ public fun decrypt( - privateKey: Key, + secretKey: Key, passphrase: String, ciphertextStream: InputStream, outputStream: OutputStream, -- cgit v1.2.3