summaryrefslogtreecommitdiff
path: root/shadata.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-01-03 21:26:08 +0100
committerNiels Möller <nisse@lysator.liu.se>2014-01-03 21:26:08 +0100
commit4b98efe1661d14defd2b6a136781979a963a1439 (patch)
treee81adfd88c833efefa6078b96791b2ac96df2660 /shadata.c
parente0b78200ee0a35dab24780de80e05f55f92cd667 (diff)
downloadnettle-4b98efe1661d14defd2b6a136781979a963a1439.tar.gz
Zeropad values in sha256 table.
Diffstat (limited to 'shadata.c')
-rw-r--r--shadata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shadata.c b/shadata.c
index cba87269..bef5b7ba 100644
--- a/shadata.c
+++ b/shadata.c
@@ -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%08lxUL, ", (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%08lxUL, ", (unsigned long) value);
if (!(i % 4))
printf("\n");
}