aboutsummaryrefslogtreecommitdiff
path: root/crypto-common/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-07-18 00:01:06 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-07-18 00:01:06 +0530
commit15f2489550e0503b429cc243a31823fd843d4959 (patch)
tree026d1e31e8dc92e168346e9b9647769d89d1597f /crypto-common/src/main
parent1f4ed1b19442899445addd08738073c6d8e3f64f (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.kt4
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,