github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/common/protocol/quic/qtls_go118.go (about)

     1  package quic
     2  
     3  import (
     4  	"crypto"
     5  	"crypto/cipher"
     6  	_ "crypto/tls"
     7  	_ "unsafe"
     8  )
     9  
    10  type CipherSuiteTLS13 struct {
    11  	ID     uint16
    12  	KeyLen int
    13  	AEAD   func(key, fixedNonce []byte) cipher.AEAD
    14  	Hash   crypto.Hash
    15  }
    16  
    17  //go:linkname AEADAESGCMTLS13 crypto/tls.aeadAESGCMTLS13
    18  func AEADAESGCMTLS13(key, nonceMask []byte) cipher.AEAD