Merge tag 'for-5.18/64bit-pi-2022-03-25' of git://git.kernel.dk/linux-block
[linux-2.6-microblaze.git] / crypto / testmgr.h
index d1aa909..4d7449f 100644 (file)
@@ -5106,6 +5106,21 @@ static const struct hash_testvec rmd160_tv_template[] = {
        }
 };
 
+static const u8 zeroes[4096] = { [0 ... 4095] = 0 };
+static const u8 ones[4096] = { [0 ... 4095] = 0xff };
+
+static const struct hash_testvec crc64_rocksoft_tv_template[] = {
+       {
+               .plaintext      = zeroes,
+               .psize          = 4096,
+               .digest         = "\x4e\xb6\x22\xeb\x67\xd3\x82\x64",
+       }, {
+               .plaintext      = ones,
+               .psize          = 4096,
+               .digest         = "\xac\xa3\xec\x02\x73\xba\xdd\xc0",
+       }
+};
+
 static const struct hash_testvec crct10dif_tv_template[] = {
        {
                .plaintext      = "abc",