MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / fmt

Method fmt

nodedb-cluster/src/rpc_codec/mac.rs:79–85  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

77/// Redacted `Debug` — never print key bytes.
78impl std::fmt::Debug for MacKey {
79 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
80 if self.is_zero() {
81 write!(f, "MacKey(zero)")
82 } else {
83 write!(f, "MacKey(<redacted>)")
84 }
85 }
86}
87
88/// Compute HMAC-SHA256 over `data` with `key`. Length is fixed at

Callers

nothing calls this directly

Calls 1

is_zeroMethod · 0.80

Tested by

no test coverage detected