-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Once and for all, whatever
- Loading branch information
Showing
2 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
package quic | ||
|
||
import ( | ||
"crypto" | ||
"crypto/cipher" | ||
|
||
"github.com/quic-go/qtls-go1-20" | ||
) | ||
|
||
type ( | ||
// A CipherSuiteTLS13 is a cipher suite for TLS 1.3 | ||
CipherSuiteTLS13 = qtls.CipherSuiteTLS13 | ||
_ "crypto/tls" | ||
_ "unsafe" | ||
) | ||
|
||
func AEADAESGCMTLS13(key, fixedNonce []byte) cipher.AEAD { | ||
return qtls.AEADAESGCMTLS13(key, fixedNonce) | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters