From 799f1393e49955d05f68b81af26d6cfaf9beadfd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 9 Jan 2022 16:19:52 +0530 Subject: Make CryptoHandler use Key as the abstraction layer (#1651) --- .../main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crypto-common/src/main') diff --git a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt b/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt index c64e9c9b..eb04ee7a 100644 --- a/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt +++ b/crypto-common/src/main/kotlin/dev/msfjarvis/aps/crypto/CryptoHandler.kt @@ -12,22 +12,22 @@ import java.io.OutputStream public interface CryptoHandler { /** - * Decrypt the given [ciphertextStream] using a [privateKey] and [password], and writes the + * Decrypt the given [ciphertextStream] using a [privateKey] and [passphrase], and writes the * resultant plaintext to [outputStream]. */ public fun decrypt( - privateKey: String, - password: String, + privateKey: Key, + passphrase: String, ciphertextStream: InputStream, outputStream: OutputStream, ) /** - * Encrypt the given [plaintextStream] to the provided [pubKeys], and writes the encrypted - * ciphertext to [outputStream]. + * Encrypt the given [plaintextStream] to the provided [keys], and writes the encrypted ciphertext + * to [outputStream]. */ public fun encrypt( - pubKeys: List, + keys: List, plaintextStream: InputStream, outputStream: OutputStream, ) -- cgit v1.2.3