Source File
u_key_schedule.go
Belonging Package
github.com/refraction-networking/utls
package tlsimport ()// kyberDecapsulate implements decapsulation according to Kyber Round 3.func ( *mlkem.DecapsulationKey768, []byte) ([]byte, error) {, := .Decapsulate()if != nil {return nil,}return kyberSharedSecret(, ), nil}func (, []byte) []byte {// Package mlkem implements ML-KEM, which compared to Kyber removed a// final hashing step. Compute SHAKE-256(K || SHA3-256(c), 32) to match Kyber.// See https://words.filippo.io/mlkem768/#bonus-track-using-a-ml-kem-implementation-as-kyber-v3.:= sha3.NewShake256().Write():= sha3.New256().Write().Write(.Sum(nil)):= make([]byte, 32).Read()return}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |