mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-05 06:33:02 +00:00
00c9576118
Once and for all, whatever
19 lines
324 B
Go
19 lines
324 B
Go
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
|