verify

fun verify(key: ByteArray, data: ByteArray, expected: ByteArray): Boolean

Verifies that expected matches the signature for data with key. Uses constant-time comparison.