Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
kris
/
th5
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
changes &x -> x[0:] for array to slice conversion
R=gri CC=golang-dev
https://golang.org/cl/1326042
v1.2.3
Russ Cox
14 anni fa
parent
751062bb0e
commit
06f6131702
1 ha cambiato i file
con
2 aggiunte
e
2 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+2
-2
conn.go
+ 2
- 2
conn.go
Vedi File
@@ -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()
Scrivi
Anteprima
Caricamento…
Annulla
Salva