diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-06-27 17:33:06 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-06-27 17:33:06 +0200 |
commit | 8236f3afa2eca0aae6c5da9560301c04d882c81b (patch) | |
tree | 5babaff66d6709f7f1fcdba69847ac684d1ef3de /src/keypair.go | |
parent | eb75ff430d1f78e129bbfe49d612f241ca418df4 (diff) |
Implemented MAC1/2 calculation
Diffstat (limited to 'src/keypair.go')
-rw-r--r-- | src/keypair.go | 11 |
1 files changed, 7 insertions, 4 deletions
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 { |