diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-18 00:01:06 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-07-18 00:01:06 +0530 |
commit | 15f2489550e0503b429cc243a31823fd843d4959 (patch) | |
tree | 026d1e31e8dc92e168346e9b9647769d89d1597f /crypto-common/src/main | |
parent | 1f4ed1b19442899445addd08738073c6d8e3f64f (diff) |
crypto: consistently use secret key nomenclature
Diffstat (limited to 'crypto-common/src/main')
-rw-r--r-- | crypto-common/src/main/kotlin/app/passwordstore/crypto/CryptoHandler.kt | 4 |
1 files changed, 2 insertions, 2 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 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<Key> { /** - * 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, |