Browse Source

Manually format MUSH macros in randombytes

The previous formatting did not immediately stabilize,
and the resulting formatting is somewhat arbitrary.
Manually inserting linebreaks seems to make more sense.
master
Joost Rijneveld 5 years ago
parent
commit
6f48921cd5
No known key found for this signature in database GPG Key ID: A4FE39CF49CBC553
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      common/notrandombytes.c

+ 11
- 2
common/notrandombytes.c View File

@@ -36,8 +36,17 @@ static void surf(void) {
for (r = 0; r < 16; ++r) {
sum += 0x9e3779b9;
MUSH(0, 5)
MUSH(1, 7) MUSH(2, 9) MUSH(3, 13) MUSH(4, 5) MUSH(5, 7) MUSH(6, 9)
MUSH(7, 13) MUSH(8, 5) MUSH(9, 7) MUSH(10, 9) MUSH(11, 13)
MUSH(1, 7)
MUSH(2, 9)
MUSH(3, 13)
MUSH(4, 5)
MUSH(5, 7)
MUSH(6, 9)
MUSH(7, 13)
MUSH(8, 5)
MUSH(9, 7)
MUSH(10, 9)
MUSH(11, 13)
}
for (i = 0; i < 8; ++i)
out[i] ^= t[i + 4];


Loading…
Cancel
Save