Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dmitry Baryshkov
nettle
Commits
4b98efe1
Commit
4b98efe1
authored
Jan 03, 2014
by
Niels Möller
Browse files
Zeropad values in sha256 table.
parent
e0b78200
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
4b98efe1
2014-01-03 Niels Möller <nisse@lysator.liu.se>
* shadata.c (main): Zero-pad output values to 8 hex digits.
* sha256.c (K): Updated table.
2013-12-17 Niels Möller <nisse@lysator.liu.se>
* configure.ac (ASM_RODATA): New substituted variable. Needed for
...
...
sha256.c
View file @
4b98efe1
...
...
@@ -48,10 +48,10 @@ K[64] =
0x3956c25bUL
,
0x59f111f1UL
,
0x923f82a4UL
,
0xab1c5ed5UL
,
0xd807aa98UL
,
0x12835b01UL
,
0x243185beUL
,
0x550c7dc3UL
,
0x72be5d74UL
,
0x80deb1feUL
,
0x9bdc06a7UL
,
0xc19bf174UL
,
0xe49b69c1UL
,
0xefbe4786UL
,
0xfc19dc6UL
,
0x240ca1ccUL
,
0xe49b69c1UL
,
0xefbe4786UL
,
0x
0
fc19dc6UL
,
0x240ca1ccUL
,
0x2de92c6fUL
,
0x4a7484aaUL
,
0x5cb0a9dcUL
,
0x76f988daUL
,
0x983e5152UL
,
0xa831c66dUL
,
0xb00327c8UL
,
0xbf597fc7UL
,
0xc6e00bf3UL
,
0xd5a79147UL
,
0x6ca6351UL
,
0x14292967UL
,
0xc6e00bf3UL
,
0xd5a79147UL
,
0x
0
6ca6351UL
,
0x14292967UL
,
0x27b70a85UL
,
0x2e1b2138UL
,
0x4d2c6dfcUL
,
0x53380d13UL
,
0x650a7354UL
,
0x766a0abbUL
,
0x81c2c92eUL
,
0x92722c85UL
,
0xa2bfe8a1UL
,
0xa81a664bUL
,
0xc24b8b70UL
,
0xc76c51a3UL
,
...
...
shadata.c
View file @
4b98efe1
...
...
@@ -24,7 +24,7 @@ int main(int argc, char **argv)
double
fraction
=
root
-
floor
(
root
);
double
value
=
floor
(
ldexp
(
fraction
,
32
));
printf
(
"0x%lxUL, "
,
(
unsigned
long
)
value
);
printf
(
"0x%
08
lxUL, "
,
(
unsigned
long
)
value
);
if
(
!
(
i
%
4
))
printf
(
"
\n
"
);
}
...
...
@@ -37,7 +37,7 @@ int main(int argc, char **argv)
double
fraction
=
root
-
(
floor
(
root
));
double
value
=
floor
(
ldexp
(
fraction
,
32
));
printf
(
"0x%lxUL, "
,
(
unsigned
long
)
value
);
printf
(
"0x%
08
lxUL, "
,
(
unsigned
long
)
value
);
if
(
!
(
i
%
4
))
printf
(
"
\n
"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment