def mac.check
import bend-kit-jwt@0.11.0.1/jwt.bend as Jwtimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
461# The MAC compares in constant time.
462def mac.check(+alg: String, +min: U32, k: Bytes.Bytes, input: Bytes.Bytes, sig: Bytes.Bytes) -> IO(Result<&1, &1, Err, Bool>):
463 do IO<Result<&1, &1, Err, Bool>>:
464 m : Result<&1, &1, Err, Bytes.Bytes> <- mac(alg, min, k, input)
465 mac.cmp(m, sig)