Files
Xray-core/common/protocol/quic/qtls_go118.go
T

19 lines
324 B
Go
Raw Normal View History

2022-05-22 23:48:10 -04:00
package quic
import (
2023-02-04 21:27:13 +08:00
"crypto"
2022-05-22 23:48:10 -04:00
"crypto/cipher"
2023-02-04 21:27:13 +08:00
_ "crypto/tls"
_ "unsafe"
2022-05-22 23:48:10 -04:00
)
2023-02-04 21:27:13 +08:00
type CipherSuiteTLS13 struct {
ID uint16
KeyLen int
AEAD func(key, fixedNonce []byte) cipher.AEAD
Hash crypto.Hash
2022-05-22 23:48:10 -04:00
}
2023-02-04 21:27:13 +08:00
//go:linkname AEADAESGCMTLS13 crypto/tls.aeadAESGCMTLS13
func AEADAESGCMTLS13(key, nonceMask []byte) cipher.AEAD