Skip to content

Commit 445a8e0

Browse files
Harald Freudenbergerherbertx
authored andcommitted
crypto: testmgr - Added one larger ghash testvector (400 bytes) to the testmgr.
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent a10f554 commit 445a8e0

1 file changed

Lines changed: 58 additions & 1 deletion

File tree

‎crypto/testmgr.h‎

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@ static struct hash_testvec tgr128_tv_template[] = {
18221822
},
18231823
};
18241824

1825-
#define GHASH_TEST_VECTORS 5
1825+
#define GHASH_TEST_VECTORS 6
18261826

18271827
static struct hash_testvec ghash_tv_template[] =
18281828
{
@@ -1875,6 +1875,63 @@ static struct hash_testvec ghash_tv_template[] =
18751875
.psize = 20,
18761876
.digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
18771877
"\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
1878+
}, {
1879+
.key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
1880+
"\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
1881+
.ksize = 16,
1882+
.plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
1883+
"\x65\x72\x20\x4c\x61\x75\x73\x63"
1884+
"\x68\x65\x6e\x20\x75\x6e\x64\x20"
1885+
"\x53\x74\x61\x75\x6e\x65\x6e\x20"
1886+
"\x73\x65\x69\x20\x73\x74\x69\x6c"
1887+
"\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
1888+
"\x69\x6e\x20\x74\x69\x65\x66\x74"
1889+
"\x69\x65\x66\x65\x73\x20\x4c\x65"
1890+
"\x62\x65\x6e\x3b\x0a\x64\x61\x73"
1891+
"\x73\x20\x64\x75\x20\x77\x65\x69"
1892+
"\xc3\x9f\x74\x20\x77\x61\x73\x20"
1893+
"\x64\x65\x72\x20\x57\x69\x6e\x64"
1894+
"\x20\x64\x69\x72\x20\x77\x69\x6c"
1895+
"\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
1896+
"\x63\x68\x20\x64\x69\x65\x20\x42"
1897+
"\x69\x72\x6b\x65\x6e\x20\x62\x65"
1898+
"\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
1899+
"\x64\x20\x77\x65\x6e\x6e\x20\x64"
1900+
"\x69\x72\x20\x65\x69\x6e\x6d\x61"
1901+
"\x6c\x20\x64\x61\x73\x20\x53\x63"
1902+
"\x68\x77\x65\x69\x67\x65\x6e\x20"
1903+
"\x73\x70\x72\x61\x63\x68\x2c\x0a"
1904+
"\x6c\x61\x73\x73\x20\x64\x65\x69"
1905+
"\x6e\x65\x20\x53\x69\x6e\x6e\x65"
1906+
"\x20\x62\x65\x73\x69\x65\x67\x65"
1907+
"\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
1908+
"\x20\x48\x61\x75\x63\x68\x65\x20"
1909+
"\x67\x69\x62\x74\x20\x64\x69\x63"
1910+
"\x68\x2c\x20\x67\x69\x62\x20\x6e"
1911+
"\x61\x63\x68\x2c\x0a\x65\x72\x20"
1912+
"\x77\x69\x72\x64\x20\x64\x69\x63"
1913+
"\x68\x20\x6c\x69\x65\x62\x65\x6e"
1914+
"\x20\x75\x6e\x64\x20\x77\x69\x65"
1915+
"\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
1916+
"\x64\x20\x64\x61\x6e\x6e\x20\x6d"
1917+
"\x65\x69\x6e\x65\x20\x53\x65\x65"
1918+
"\x6c\x65\x20\x73\x65\x69\x74\x20"
1919+
"\x77\x65\x69\x74\x2c\x20\x73\x65"
1920+
"\x69\x20\x77\x65\x69\x74\x2c\x0a"
1921+
"\x64\x61\x73\x73\x20\x64\x69\x72"
1922+
"\x20\x64\x61\x73\x20\x4c\x65\x62"
1923+
"\x65\x6e\x20\x67\x65\x6c\x69\x6e"
1924+
"\x67\x65\x2c\x0a\x62\x72\x65\x69"
1925+
"\x74\x65\x20\x64\x69\x63\x68\x20"
1926+
"\x77\x69\x65\x20\x65\x69\x6e\x20"
1927+
"\x46\x65\x69\x65\x72\x6b\x6c\x65"
1928+
"\x69\x64\x0a\xc3\xbc\x62\x65\x72"
1929+
"\x20\x64\x69\x65\x20\x73\x69\x6e"
1930+
"\x6e\x65\x6e\x64\x65\x6e\x20\x44"
1931+
"\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
1932+
.psize = 400,
1933+
.digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
1934+
"\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
18781935
},
18791936
};
18801937

0 commit comments

Comments
 (0)