mirror of https://github.com/XTLS/Xray-core
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
324 B
18 lines
324 B
package quic |
|
|
|
import ( |
|
"crypto" |
|
"crypto/cipher" |
|
_ "crypto/tls" |
|
_ "unsafe" |
|
) |
|
|
|
type CipherSuiteTLS13 struct { |
|
ID uint16 |
|
KeyLen int |
|
AEAD func(key, fixedNonce []byte) cipher.AEAD |
|
Hash crypto.Hash |
|
} |
|
|
|
//go:linkname AEADAESGCMTLS13 crypto/tls.aeadAESGCMTLS13 |
|
func AEADAESGCMTLS13(key, nonceMask []byte) cipher.AEAD
|
|
|