Šī lapa labāk darbojas, ja pārlūkam ir iespējots JavaScript.
Sākums
Izpētīt
Palīdzība
Pierakstīties
kris
/
th5
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
0
Kods
Problēmas
0
Izmaiņu pieprasījumi
0
Laidieni
0
Vikivietne
Aktivitāte
Pārlūkot izejas kodu
changes &x -> x[0:] for array to slice conversion
R=gri CC=golang-dev
https://golang.org/cl/1326042
v1.2.3
Russ Cox
pirms 14 gadiem
vecāks
751062bb0e
revīzija
06f6131702
1 mainītis faili
ar
2 papildinājumiem
un
2 dzēšanām
Dalītais skats
Salīdzināšanas iespējas
Rādīt statistiku
Lejupielādēt ielāpa failu
Lejupielādēt izmaiņu failu
+2
-2
conn.go
+ 2
- 2
conn.go
Parādīt failu
@@ -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()
Rakstīt
Priekšskatītījums
Notiek ielāde…
Atcelt
Saglabāt