Fix TAI64 epoch

This commit is contained in:
Mathias Hall-Andersen
2019-07-24 18:50:05 +02:00
parent 95080c870f
commit db8328bb3b
2 changed files with 3 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
use std::time::{SystemTime, UNIX_EPOCH};
pub type TAI64N = [u8; 12];
const TAI64_EPOCH : u64 = 0x4000000000000000;
const TAI64_EPOCH : u64 = 4000000000000000;
pub type TAI64N = [u8; 12];
pub fn zero() -> TAI64N {
[0u8; 12]

View File

@@ -96,7 +96,6 @@ pub type Output = (
Option<KeyPair> // resulting key-pair of successful handshake
);
// per-peer state machine
// preshared key
pub type Psk = [u8; 32];