Kmac256

object Kmac256(source)

KMAC256 (NIST SP 800-185 §4). EDHOC uses it for EDHOC_Extract and EDHOC_Expand when the suite's hash is SHAKE256 (RFC 9528 §4.1).

Functions

Link copied to clipboard
fun compute(key: ByteArray, data: ByteArray, outputLength: Int, customization: ByteArray = ByteArray(0)): ByteArray