Ce site fonctionne mieux avec JavaScript.
Accueil
Explorateur
Aide
Connexion
kris
/
th5
Suivre
1
Ajouter aux favoris
0
Bifurcation
0
Code
Tickets
0
Demandes d'ajout
0
Versions
0
Wiki
Activité
Parcourir la source
changes &x -> x[0:] for array to slice conversion
R=gri CC=golang-dev
https://golang.org/cl/1326042
v1.2.3
Russ Cox
il y a 14 ans
Parent
751062bb0e
révision
06f6131702
1 fichiers modifiés
avec
2 ajouts
et
2 suppressions
Vue séparée
Option de Diff
Voir les Statistiques
Télécharger le Fichier Patch
Télécharger le Fichier des Différences
+2
-2
conn.go
+ 2
- 2
conn.go
Voir le fichier
@@ -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()
Écrire
Aperçu
Chargement…
Annuler
Enregistrer