mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-09-07 00:39:20 +03:00
* Add quic sniffer * Fix quic sniffer * Add uTP sniffer * rename buf pool membership status to unmanaged * rename buf type adaptor into FromBytes Co-authored-by: 世界 <i@sekai.icu> Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
20 lines
352 B
Go
20 lines
352 B
Go
//go:build go1.16 && !go1.17
|
|
// +build go1.16,!go1.17
|
|
|
|
package quic
|
|
|
|
import (
|
|
"crypto/cipher"
|
|
|
|
"github.com/marten-seemann/qtls-go1-16"
|
|
)
|
|
|
|
type (
|
|
// A CipherSuiteTLS13 is a cipher suite for TLS 1.3
|
|
CipherSuiteTLS13 = qtls.CipherSuiteTLS13
|
|
)
|
|
|
|
func AEADAESGCMTLS13(key, fixedNonce []byte) cipher.AEAD {
|
|
return qtls.AEADAESGCMTLS13(key, fixedNonce)
|
|
}
|