From 8236f3afa2eca0aae6c5da9560301c04d882c81b Mon Sep 17 00:00:00 2001 From: Mathias Hall-Andersen Date: Tue, 27 Jun 2017 17:33:06 +0200 Subject: Implemented MAC1/2 calculation --- src/keypair.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/keypair.go') diff --git a/src/keypair.go b/src/keypair.go index 53e123f..0b029ce 100644 --- a/src/keypair.go +++ b/src/keypair.go @@ -3,13 +3,16 @@ package main import ( "crypto/cipher" "sync" + "time" ) type KeyPair struct { - recv cipher.AEAD - recvNonce uint64 - send cipher.AEAD - sendNonce uint64 + recv cipher.AEAD + recvNonce uint64 + send cipher.AEAD + sendNonce uint64 + isInitiator bool + created time.Time } type KeyPairs struct { -- cgit v1.2.3