def hmac

bend-kit-postgres@0.3.0.0 · scram.bend:148

import bend-kit-postgres@0.3.0.0/scram.bend as Scram
import 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)

Uses (11)

Used by (1)