exportSecret

fun exportSecret(context: ByteArray, length: Int): ByteArray

Exports a secret.

This generates a secret according to Section 5.3 of RFC 9180.

Parameters

context

domain-specific context.

length

length of the secret to generate.