mirror of https://github.com/gtank/ristretto255
internal/scalar: don't zero memory that is about to be copied over
This commit is contained in:
parent
7803101170
commit
94a47ae390
|
@ -71,9 +71,6 @@ func (s *Scalar) Bytes(b []byte) []byte {
|
|||
t.reduce()
|
||||
|
||||
res, out := sliceForAppend(b, 32)
|
||||
for i := range out {
|
||||
out[i] = 0
|
||||
}
|
||||
copy(out, t[:])
|
||||
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue