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-pgpainless/src/main/kotlin | |
parent | 1f4ed1b19442899445addd08738073c6d8e3f64f (diff) |
crypto: consistently use secret key nomenclature
Diffstat (limited to 'crypto-pgpainless/src/main/kotlin')
-rw-r--r-- | crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt b/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt index fa56ebd8..64ad426f 100644 --- a/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt +++ b/crypto-pgpainless/src/main/kotlin/app/passwordstore/crypto/PGPainlessCryptoHandler.kt @@ -31,13 +31,13 @@ import org.pgpainless.util.Passphrase public class PGPainlessCryptoHandler @Inject constructor() : CryptoHandler<PGPKey> { public override fun decrypt( - privateKey: PGPKey, + secretKey: PGPKey, passphrase: String, ciphertextStream: InputStream, outputStream: OutputStream, ): Result<Unit, CryptoHandlerException> = runCatching { - val pgpSecretKeyRing = PGPainless.readKeyRing().secretKeyRing(privateKey.contents) + val pgpSecretKeyRing = PGPainless.readKeyRing().secretKeyRing(secretKey.contents) val keyringCollection = PGPSecretKeyRingCollection(listOf(pgpSecretKeyRing)) val protector = PasswordBasedSecretKeyRingProtector.forKey( |