Scoop API

scoop:scoop.crypto:0.1.0

verifyHmac

function verifyHmac

source · line 68
public
public fun verifyHmac(algorithm: DigestAlgorithm, key: SecretKey, data: List<Byte>, expected: List<Byte>): Boolean

Computes the expected MAC and compares equal-length bytes using the native constant-time comparison. A length mismatch returns false.