def hmac.of

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

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
import bend-kit-crypto@0.2.2.1/crypto.bend as Crypto

143def hmac.of(k: Bytes.Bytes, d: Bytes.Bytes) -> IO(Result<&1, &1, U32 & String, U32 & Array<U32>>):
144  Bytes.Bytes{kl, kw} = k
145  Bytes.Bytes{dl, dw} = d
146  Crypto.hmac.words("SHA256", kl, kw, dl, dw)

Uses (8)

Used by (1)