X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fpeer.go;h=37bd8405182afea9f205afd2782c1dbd9b97593e;hp=e43dc9c75c235f54dcf206209e17b62105cde430;hb=30697303bd8e3a2489627962252928bc125ff472;hpb=add366209722532ccfd2a0fcd3cad58c3aea9bee diff --git a/src/cypherpunks.ru/govpn/peer.go b/src/cypherpunks.ru/govpn/peer.go index e43dc9c..37bd840 100644 --- a/src/cypherpunks.ru/govpn/peer.go +++ b/src/cypherpunks.ru/govpn/peer.go @@ -63,7 +63,7 @@ func newNonces(key *[32]byte, i uint64) chan *[NonceSize]byte { buf := new([NonceSize]byte) binary.BigEndian.PutUint64(buf[:], i) mac.Write(buf[:]) - mac.Sum(sum[0:]) + mac.Sum(sum[:0]) copy(buf[:], sum) nonces <- buf mac.Reset()