mirror of
https://github.com/XTLS/REALITY.git
synced 2026-09-26 08:48:02 +03:00
This commit is contained in:
@@ -193,8 +193,8 @@ func Server(ctx context.Context, conn net.Conn, config *Config) (*Conn, error) {
|
||||
}
|
||||
var aead cipher.AEAD
|
||||
if isAESGCMPreferred(hs.clientHello.cipherSuites) {
|
||||
block, _ := aes.NewCipher(hs.c.AuthKey)
|
||||
aead, _ = gcm.NewGCMForTLS13(block.(*fipsaes.Block))
|
||||
block, _ := fipsaes.New(hs.c.AuthKey)
|
||||
aead, _ = gcm.NewGCMForTLS13(block)
|
||||
} else {
|
||||
aead, _ = chacha20poly1305.New(hs.c.AuthKey)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user