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

First half of G1 macro working for Round 1

This commit is contained in:
frankw
2016-06-24 22:14:06 +02:00
parent 8bc3dcee2c
commit 207d895ad9
3 changed files with 50 additions and 19 deletions

View File

@@ -37,21 +37,21 @@ func blocks(d *digest, p []uint8) {
j += 8
}
//// Round 1.
//v0 += m[0]
//v0 += v4
//v12 ^= v0
//v12 = v12<<(64-32) | v12>>32
//v8 += v12
//v4 ^= v8
//v4 = v4<<(64-24) | v4>>24
//v1 += m[2]
//v1 += v5
//v13 ^= v1
//v13 = v13<<(64-32) | v13>>32
//v9 += v13
//v5 ^= v9
//v5 = v5<<(64-24) | v5>>24
// Round 1.
v0 += m[0]
v0 += v4
v12 ^= v0
v12 = v12<<(64-32) | v12>>32
v8 += v12
v4 ^= v8
v4 = v4<<(64-24) | v4>>24
v1 += m[2]
v1 += v5
v13 ^= v1
v13 = v13<<(64-32) | v13>>32
v9 += v13
v5 ^= v9
v5 = v5<<(64-24) | v5>>24
//v2 += m[4]
//v2 += v6
//v14 ^= v2