internal/scalar: don't zero memory that is about to be copied over

This commit is contained in:
George Tankersley 2019-04-19 21:09:10 +00:00 committed by George Tankersley
parent 7803101170
commit 94a47ae390
1 changed files with 0 additions and 3 deletions

View File

@ -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