PSS

RSA Probabilistic Signature Scheme (PSS) as defined in RFC 8017 Section 8.1.

Provides digital signature generation and verification with a probabilistic padding scheme.

val keys = provider.get(RSA.PSS).keyPairGenerator().generateKey()
val signature = keys.privateKey.signatureGenerator().generateSignature(data)
keys.publicKey.signatureVerifier().verifySignature(data, signature)

For the legacy signature padding scheme, see PKCS1.

Types

Link copied to clipboard
Link copied to clipboard

An RSA-PSS private key that provides signature generation via signatureGenerator.

Link copied to clipboard

An RSA-PSS public key that provides signature verification via signatureVerifier.

Properties

Link copied to clipboard
open override val id: CryptographyAlgorithmId<RSA.PSS>

The typed identifier that uniquely distinguishes this algorithm and is used to look it up from a CryptographyProvider.

Functions

Link copied to clipboard
abstract fun keyPairGenerator(keySize: BinarySize = 4096.bits, digest: CryptographyAlgorithmId<Digest> = SHA512, publicExponent: BigInt = 65537.toBigInt()): KeyGenerator<RSA.PSS.KeyPair>

Returns a KeyGenerator that generates RSA key pairs with the given parameters.

Link copied to clipboard

Returns a Decoder that decodes RSA private keys for the given digest from the specified PrivateKey.Format.

Link copied to clipboard

Returns a Decoder that decodes RSA public keys for the given digest from the specified PublicKey.Format.