(&self, f: &mut std::fmt::Formatter<'_>)
| 77 | /// Redacted `Debug` — never print key bytes. |
| 78 | impl 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 |