mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-09 02:20:10 +08:00
Implemented MAC1/2 calculation
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user