toRsaOaepPublicKey

suspend fun Jwk.Rsa.toRsaOaepPublicKey(digest: CryptographyAlgorithmId<Digest>, cryptoProvider: CryptographyProvider = CryptographyProvider.Default): RSA.OAEP.PublicKey(source)

Converts this Jwk.Rsa to an RSA.OAEP.PublicKey for RSA-OAEP / RSA-OAEP-256 key encryption.

Return

the decoded RSA.OAEP.PublicKey

Parameters

digest

the cryptography-kotlin digest algorithm to associate with the key

cryptoProvider

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