6 /* From FIPS180-2 addendum
7 (http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf) */
8 test_hash(&nettle_sha224
, SDATA("abc"),
9 SHEX("23097d22 3405d822 8642a477 bda255b3"
10 "2aadbce4 bda0b3f7 e36c9da7"));
12 test_hash(&nettle_sha224
,
13 SDATA("abcdbcdecdefdefgefghfghighij"
14 "hijkijkljklmklmnlmnomnopnopq"),
15 SHEX("75388b16 512776cc 5dba5da1 fd890150"
16 "b0c6455c b4f58b19 52522525"));
18 /* Additional test vectors, from Daniel Kahn Gillmor */
19 test_hash(&nettle_sha224
, SDATA(""),
20 SHEX("d14a028c2a3a2bc9 476102bb288234c4"
21 "15a2b01f828ea62a c5b3e42f"));
22 test_hash(&nettle_sha224
, SDATA("a"),
23 SHEX("abd37534c7d9a2ef b9465de931cd7055"
24 "ffdb8879563ae980 78d6d6d5"));
25 test_hash(&nettle_sha224
, SDATA("38"),
26 SHEX("4cfca6da32da6471 98225460722b7ea1"
27 "284f98c4b179e8db ae3f93d5"));
28 test_hash(&nettle_sha224
, SDATA("message digest"),
29 SHEX("2cb21c83ae2f004d e7e81c3c7019cbcb"
30 "65b71ab656b22d6d 0c39b8eb"));
31 test_hash(&nettle_sha224
, SDATA("abcdefghijklmnopqrstuvwxyz"),
32 SHEX("45a5f72c39c5cff2 522eb3429799e49e"
33 "5f44b356ef926bcf 390dccc2"));
34 test_hash(&nettle_sha224
,
35 SDATA("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdef"
36 "ghijklmnopqrstuvwxyz0123456789"),
37 SHEX("bff72b4fcb7d75e5 632900ac5f90d219"
38 "e05e97a7bde72e74 0db393d9"));
39 test_hash(&nettle_sha224
,
40 SDATA("12345678901234567890123456789012"
41 "34567890123456789012345678901234"
43 SHEX("b50aecbe4e9bb0b5 7bc5f3ae760a8e01"
44 "db24f203fb3cdcd1 3148046e"));