Deze website werkt beter met JavaScript.
Beginscherm
Verkennen
Help
Inloggen
kris
/
tls-tris
Volgen
1
Ster
0
Vork
0
Code
Kwesties
0
Pull-aanvragen
0
Publicaties
0
Wiki
Activiteit
Bladeren bron
changes &x -> x[0:] for array to slice conversion
R=gri CC=golang-dev
https://golang.org/cl/1326042
tls13
Russ Cox
14 jaren geleden
bovenliggende
751062bb0e
commit
06f6131702
1 gewijzigde bestanden
met
toevoegingen van 2
en
2 verwijderingen
Zij-aan-zij weergave
Diff opties
Statistieken weergeven
Download Patch-bestand
Download Diff-bestand
+2
-2
conn.go
+ 2
- 2
conn.go
Bestand weergeven
@@ -171,7 +171,7 @@ func (hc *halfConn) decrypt(b *block) (bool, alert) {
remoteMAC := payload[n:]
hc.mac.Reset()
hc.mac.Write(
&
hc.seq)
hc.mac.Write(hc.seq
[0:]
)
hc.incSeq()
hc.mac.Write(b.data)
@@ -188,7 +188,7 @@ func (hc *halfConn) encrypt(b *block) (bool, alert) {
// mac
if hc.mac != nil {
hc.mac.Reset()
hc.mac.Write(
&
hc.seq)
hc.mac.Write(hc.seq
[0:]
)
hc.incSeq()
hc.mac.Write(b.data)
mac := hc.mac.Sum()
Schrijf
Voorbeeld
Laden…
Annuleren
Opslaan