From 2a7a0c7085058e0c6e9f79fcc257bd0d5db33136 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 11 Nov 2014 22:59:40 +0100 Subject: add another test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/test.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/test.c') diff --git a/src/test.c b/src/test.c index 4b17a79..09082a8 100644 --- a/src/test.c +++ b/src/test.c @@ -308,6 +308,14 @@ static int test_digest(void) "3478934b00aa6cd44aa7ae2cd0271d83fbab699b"; if (keccak_g(1024, 1600 - 1024, 1600, "capitol's kvistfri broadly raping")) return -1; + answer = "65070cdd6f91c0aadcfc470895a2606c828bce7ce3fa723418c9013de92253515713cce8" + "d2098be1c82df40b40e375549c0eeb655f92d718f01f147ba1c7c67844c7ba8b11492cd6" + "143466958504c110522f772fe746573b1dc905f943ed1ec6ecf858575798596beeca4eb6" + "bb7bea635bcea6331315728fb57866370bf1ad5decbc56d28d47ce53f18376d9f5531551" + "7a976d52dd3f98b7025e0b3c513c6d17d40462cddb5406d693bbe859a136af5375b5dd6e" + "3478934b00aa6cd44aa7ae2cd0271d83fbab699b9c"; + if (keccak_g(1024, 1600 - 1024, 1608, "capitol's kvistfri broadly raping")) return -1; + answer = "65070cdd6f91c0aadcfc470895a2606c828bce7ce3fa723418c9013de92253515713cce8" "d2098be1c82df40b40e375549c0eeb655f92d718f01f147ba1c7c67844c7ba8b11492cd6" "143466958504c110522f772fe746573b1dc905f943ed1ec6ecf858575798596beeca4eb6" -- cgit v1.2.3-70-g09d2