mirror of
https://github.com/refraction-networking/utls.git
synced 2025-04-03 20:17:36 +03:00
fix: broken code during merge
This commit is contained in:
parent
cefe226467
commit
ff854c45c6
2 changed files with 39 additions and 19 deletions
|
@ -124,14 +124,14 @@ func (hs *clientHandshakeStateTLS13) handshake() error {
|
|||
// set echdheParams to what we received from server
|
||||
if ecdheKey, ok := hs.keySharesParams.GetEcdheKey(hs.serverHello.serverShare.group); ok {
|
||||
hs.keyShareKeys.ecdhe = ecdheKey
|
||||
hs.keyShareKeys.kyber = nil // unset kyber if any
|
||||
hs.keyShareKeys.curveID = hs.serverHello.serverShare.group
|
||||
}
|
||||
// set kemParams to what we received from server
|
||||
if kemKey, ok := hs.keySharesParams.GetKemKey(hs.serverHello.serverShare.group); ok {
|
||||
if gokey, err := mlkemCirclToGo(kemKey); err == nil {
|
||||
hs.keyShareKeys.kyber = gokey
|
||||
if kyberKey, ecdhKey, err := mlkemCirclToGo(kemKey); err == nil {
|
||||
hs.keyShareKeys.kyber = kyberKey
|
||||
hs.keyShareKeys.ecdhe = ecdhKey
|
||||
hs.keyShareKeys.curveID = hs.serverHello.serverShare.group
|
||||
hs.keyShareKeys.ecdhe = nil // unset ecdheKey if any
|
||||
}
|
||||
}
|
||||
// [uTLS SECTION END]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue