def hmac
import bend-kit-postgres@0.3.0.0/scram.bend as Scramimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
148def hmac(+key: String, +data: String) -> IO(Result<&1, &1, U32 & String, String>):
149 do IO<Result<&1, &1, U32 & String, String>>:
150 r : Result<&1, &1, U32 & String, U32 & Array<U32>> <- hmac.of(Bytes.from_string(key), Bytes.from_string(data))
151 return octets(r)