toRsaPssPrivateKey

suspend fun Jwk.Rsa.toRsaPssPrivateKey(digest: CryptographyAlgorithmId<Digest>, cryptoProvider: CryptographyProvider = CryptographyProvider.Default): RSA.PSS.PrivateKey(source)

Converts this Jwk.Rsa to an RSA.PSS.PrivateKey for PS256/PS384/PS512 signing.

Return

the decoded RSA.PSS.PrivateKey

Parameters

digest

the cryptography-kotlin digest algorithm to associate with the key

cryptoProvider

the CryptographyProvider used to decode the key; defaults to CryptographyProvider.Default