AsymmetricEncryptionAlgorithm

Inheritors

Types

Link copied to clipboard
data class RSA(val padding: RSAPadding) : AsymmetricEncryptionAlgorithm

Properties

Link copied to clipboard

An encryption algorithm's JCA name. This is publicly exposed because it could come in handy under very specific circumstances. Double and triple check before feeding this into Cipher.getInstance!. Then think again, pull in Signum Supreme and call encryptorFor/decryptorFor on whatever pre-configured instance of AsymmetricEncryptionAlgorithm you will be actually using.

Link copied to clipboard
val AsymmetricEncryptionAlgorithm.jcaParameterSpec: <Error class: unknown class>?

An encryption algorithm's JCA parameters. This is publicly exposed because it could come in handy under very specific circumstances. Double and triple check before feeding this into Cipher.init!. Then think again, pull in Signum Supreme and call encryptorFor/decryptorFor on whatever pre-configured instance of AsymmetricEncryptionAlgorithm you will be actually using.

Link copied to clipboard

Functions

Link copied to clipboard
fun AsymmetricEncryptionAlgorithm.getJCADecryptorInstance(privateKey: CryptoPrivateKey.RSA, provider: String? = null): <Error class: unknown class>

Get a pre-configured JCA Cipher instance for this algorithm to use for decryption

Link copied to clipboard
fun AsymmetricEncryptionAlgorithm.getJCAEncryptorInstance(publicKey: CryptoPublicKey.RSA, provider: String? = null): <Error class: unknown class>

Get a pre-configured JCA Cipher instance for this algorithm to use for encryption