Implemented MAC1/2 calculation
This commit is contained in:
parent
eb75ff430d
commit
8236f3afa2
13 changed files with 454 additions and 85 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue