MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / hmac_bytes

Function hmac_bytes

src/expr/src/scalar/func/variadic.rs:793–795  ·  view source on GitHub ↗
(to_digest: &[u8], key: &[u8], typ: &str)

Source from the content-addressed store, hash-verified

791
792#[sqlfunc(sqlname = "hmac")]
793fn hmac_bytes(to_digest: &[u8], key: &[u8], typ: &str) -> Result<Vec<u8>, EvalError> {
794 hmac_inner(to_digest, key, typ)
795}
796
797pub fn hmac_inner(to_digest: &[u8], key: &[u8], typ: &str) -> Result<Vec<u8>, EvalError> {
798 match typ {

Callers

nothing calls this directly

Calls 1

hmac_innerFunction · 0.85

Tested by

no test coverage detected