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

Function hmac_string

src/expr/src/scalar/func/variadic.rs:786–790  ·  view source on GitHub ↗
(to_digest: &str, key: &str, typ: &str)

Source from the content-addressed store, hash-verified

784
785#[sqlfunc(sqlname = "hmac")]
786fn hmac_string(to_digest: &str, key: &str, typ: &str) -> Result<Vec<u8>, EvalError> {
787 let to_digest = to_digest.as_bytes();
788 let key = key.as_bytes();
789 hmac_inner(to_digest, key, typ)
790}
791
792#[sqlfunc(sqlname = "hmac")]
793fn hmac_bytes(to_digest: &[u8], key: &[u8], typ: &str) -> Result<Vec<u8>, EvalError> {

Callers

nothing calls this directly

Calls 2

hmac_innerFunction · 0.85
as_bytesMethod · 0.45

Tested by

no test coverage detected