aboutsummaryrefslogtreecommitdiffstats
path: root/sha_512.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sha_512.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/sha_512.c b/sha_512.c
index 01b9460..c370750 100644
--- a/sha_512.c
+++ b/sha_512.c
@@ -49,7 +49,25 @@ static struct testcase testcases[] = {
{1, 0, "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhi"
"jklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
"8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018"
- "501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909"}
+ "501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909"},
+ {0, 1, "\xff",
+ "5f72ee8494a425ba13fc8c48ac0a05cbaae7e932e471e948cb524333745aa432"
+ "c1851c0c43682b0e67d64626f8f45cf165f6b538a94c63be98224e969e75d7ed"},
+ {0, 1, "\x7f",
+ "5f72ee8494a425ba13fc8c48ac0a05cbaae7e932e471e948cb524333745aa432"
+ "c1851c0c43682b0e67d64626f8f45cf165f6b538a94c63be98224e969e75d7ed"},
+ {0, 1, "\x01",
+ "5f72ee8494a425ba13fc8c48ac0a05cbaae7e932e471e948cb524333745aa432"
+ "c1851c0c43682b0e67d64626f8f45cf165f6b538a94c63be98224e969e75d7ed"},
+ {0, 1, "\xfe",
+ "b4594eb12959fc2e6979b6783554299cc0369f44083a8b0955baefd8830cda22"
+ "894b0b46c0ed49490e391ad99af856cc1bd96f238c7f2a17cf37aeb7e793395a"},
+ {0, 1, "\x7e",
+ "b4594eb12959fc2e6979b6783554299cc0369f44083a8b0955baefd8830cda22"
+ "894b0b46c0ed49490e391ad99af856cc1bd96f238c7f2a17cf37aeb7e793395a"},
+ {0, 1, "\x00",
+ "b4594eb12959fc2e6979b6783554299cc0369f44083a8b0955baefd8830cda22"
+ "894b0b46c0ed49490e391ad99af856cc1bd96f238c7f2a17cf37aeb7e793395a"}
};