1
0
mirror of https://github.com/fumiama/blake2b-simd.git synced 2026-06-10 21:24:23 +08:00

adapt go1.17

This commit is contained in:
源文雨
2022-04-12 17:23:18 +08:00
parent 3f5f724cb5
commit c99573b3b2
15 changed files with 28 additions and 78 deletions

View File

@@ -269,14 +269,7 @@ func (d *digest) checkSum() [Size]byte {
var out [Size]byte
j := 0
for _, s := range d.h[:(d.size-1)/8+1] {
out[j+0] = byte(s >> 0)
out[j+1] = byte(s >> 8)
out[j+2] = byte(s >> 16)
out[j+3] = byte(s >> 24)
out[j+4] = byte(s >> 32)
out[j+5] = byte(s >> 40)
out[j+6] = byte(s >> 48)
out[j+7] = byte(s >> 56)
binary.LittleEndian.PutUint64(out[j:j+8], s)
j += 8
}
return out