com.github.rs3vans.krypto / AsymmetricDecryptCipher

AsymmetricDecryptCipher

class AsymmetricDecryptCipher : ConcreteCipher, DecryptCipher

An decrypting-only cipher which uses an RSA-based PrivateKey for decryption.

Constructors

<init> AsymmetricDecryptCipher(key: PrivateKey, provider: KryptoProvider = KryptoProvider.defaultInstance)

An decrypting-only cipher which uses an RSA-based PrivateKey for decryption.

Properties

jdkCipher val jdkCipher: Cipher
key val key: PrivateKey
provider val provider: KryptoProvider

Inherited Properties

algorithm val algorithm: String
blockSize val blockSize: Int

Functions

decrypt fun decrypt(encrypted: Encrypted): Decrypted

Inherited Functions

withCipher fun <X> withCipher(action: (Cipher) -> X): X