PrivateKey

An RSA-PKCS1 private key that provides signature generation via signatureGenerator and decryption via decryptor.

Functions

Link copied to clipboard

Returns a Decryptor using PKCS#1 v1.5 encryption padding.

Link copied to clipboard

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard

Encodes this material into a ByteString in the specified format.

Link copied to clipboard

Encodes this material into a ByteString in the specified format.

Link copied to clipboard
open suspend fun getPublicKey(): RSA.PKCS1.PublicKey

Returns the associated public key.

Link copied to clipboard

Returns the associated public key.

Link copied to clipboard

Returns a SignatureGenerator using PKCS#1 v1.5 signature padding.