Sign this capture in place with the session's MAC key.
(&mut self, key_hex: &str)
| 166 | |
| 167 | /// Sign this capture in place with the session's MAC key. |
| 168 | pub fn sign(&mut self, key_hex: &str) { |
| 169 | let input = self.mac_input(); |
| 170 | self.mac = Self::mac(key_hex, &input); |
| 171 | } |
| 172 | |
| 173 | /// Verify the MAC. Any edited field — including a swapped capture from |
| 174 | /// another session or turn — fails. |