|
@@ -8,14 +8,13 @@ import (
|
|
|
"crypto/sha1"
|
|
|
"io"
|
|
|
|
|
|
- "golang.org/x/crypto/chacha20poly1305"
|
|
|
- "golang.org/x/crypto/hkdf"
|
|
|
-
|
|
|
"github.com/xtls/xray-core/common"
|
|
|
"github.com/xtls/xray-core/common/antireplay"
|
|
|
"github.com/xtls/xray-core/common/buf"
|
|
|
"github.com/xtls/xray-core/common/crypto"
|
|
|
"github.com/xtls/xray-core/common/protocol"
|
|
|
+ "golang.org/x/crypto/chacha20poly1305"
|
|
|
+ "golang.org/x/crypto/hkdf"
|
|
|
)
|
|
|
|
|
|
// MemoryAccount is an account type converted from Account.
|
|
@@ -26,9 +25,7 @@ type MemoryAccount struct {
|
|
|
replayFilter antireplay.GeneralizedReplayFilter
|
|
|
}
|
|
|
|
|
|
-var (
|
|
|
- ErrIVNotUnique = newError("IV is not unique")
|
|
|
-)
|
|
|
+var ErrIVNotUnique = newError("IV is not unique")
|
|
|
|
|
|
// Equals implements protocol.Account.Equals().
|
|
|
func (a *MemoryAccount) Equals(another protocol.Account) bool {
|