com.github.rs3vans.krypto / AsymmetricCipherPair

AsymmetricCipherPair

class AsymmetricCipherPair : EncryptCipher, DecryptCipher

An encrypting/decrypting cipher which wraps both an AsymmetricEncryptCipher and a AsymmetricDecryptCipher.

Constructors

<init> AsymmetricCipherPair(publicKey: PublicKey, privateKey: PrivateKey, provider: KryptoProvider = KryptoProvider.defaultInstance)
AsymmetricCipherPair(keyPair: KeyPair, provider: KryptoProvider = KryptoProvider.defaultInstance)AsymmetricCipherPair(encryptCipher: AsymmetricEncryptCipher, decryptCipher: AsymmetricDecryptCipher)

An encrypting/decrypting cipher which wraps both an AsymmetricEncryptCipher and a AsymmetricDecryptCipher.

Properties

decryptCipher val decryptCipher: AsymmetricDecryptCipher
encryptCipher val encryptCipher: AsymmetricEncryptCipher