toHmacKey
suspend fun Jwk.Oct.toHmacKey(digest: CryptographyAlgorithmId<Digest>, cryptoProvider: CryptographyProvider = CryptographyProvider.Default): HMAC.Key(source)
Converts this Jwk.Oct to an HMAC.Key for the given digest.
Return
the decoded HMAC.Key
Parameters
digest
the cryptography-kotlin digest algorithm to associate with the HMAC key
cryptoProvider
the CryptographyProvider used to decode the key; defaults to CryptographyProvider.Default