()
| 61 | } |
| 62 | |
| 63 | fn get_current_timestamp() -> u64 { |
| 64 | SystemTime::now() |
| 65 | .duration_since(UNIX_EPOCH) |
| 66 | .unwrap() |
| 67 | .as_secs() |
| 68 | } |
| 69 | |
| 70 | fn generate_token_key(master_key: &[u8], timestamp: u64) -> hmac::Key { |
| 71 | let key = hmac::Key::new(hmac::HMAC_SHA256, master_key); |
no outgoing calls
no test coverage detected