Lines Matching +full:0 +full:x30000
22 static const uint8_t test_vector[3] = {0x61, 0x62, 0x63};
25 0xdd, 0xaf, 0x35, 0xa1, 0x93, 0x61, 0x7a, 0xba, 0xcc, 0x41, 0x73, 0x49,
26 0xae, 0x20, 0x41, 0x31, 0x12, 0xe6, 0xfa, 0x4e, 0x89, 0xa9, 0x7e, 0xa2,
27 0x0a, 0x9e, 0xee, 0xe6, 0x4b, 0x55, 0xd3, 0x9a, 0x21, 0x92, 0x99, 0x2a,
28 0x27, 0x4f, 0xc1, 0xa8, 0x36, 0xba, 0x3c, 0x23, 0xa3, 0xfe, 0xeb, 0xbd,
29 0x45, 0x4d, 0x44, 0x23, 0x64, 0x3c, 0xe8, 0x0e, 0x2a, 0x9a, 0xc9, 0x4f,
30 0xa5, 0x4c, 0xa4, 0x9f};
33 0xcb, 0x00, 0x75, 0x3f, 0x45, 0xa3, 0x5e, 0x8b, 0xb5, 0xa0, 0x3d, 0x69,
34 0x9a, 0xc6, 0x50, 0x07, 0x27, 0x2c, 0x32, 0xab, 0x0e, 0xde, 0xd1, 0x63,
35 0x1a, 0x8b, 0x60, 0x5a, 0x43, 0xff, 0x5b, 0xed, 0x80, 0x86, 0x07, 0x2b,
36 0xa1, 0xe7, 0xcc, 0x23, 0x58, 0xba, 0xec, 0xa1, 0x34, 0xc8, 0x25, 0xa7};
39 0xba, 0x78, 0x16, 0xbf, 0x8f, 0x01, 0xcf, 0xea, 0x41, 0x41, 0x40, 0xde,
40 0x5d, 0xae, 0x22, 0x23, 0xb0, 0x03, 0x61, 0xa3, 0x96, 0x17, 0x7a, 0x9c,
41 0xb4, 0x10, 0xff, 0x61, 0xf2, 0x00, 0x15, 0xad};
44 0x90, 0x01, 0x50, 0x98, 0x3c, 0xd2, 0x4f, 0xb0, 0xd6, 0x96, 0x3f, 0x7d,
45 0x28, 0xe1, 0x7f, 0x72};
57 static const uint8_t test_vector_sg1[6] = {0x61, 0x62, 0x63, 0x64, 0x65, 0x66};
58 static const uint8_t test_vector_sg2[3] = {0x67, 0x68, 0x69};
59 static const uint8_t test_vector_sg3[3] = {0x6a, 0x6b, 0x6c};
62 0x17, 0x80, 0x7c, 0x72, 0x8e, 0xe3, 0xba, 0x35, 0xe7, 0xcf, 0x7a, 0xf8,
63 0x23, 0x11, 0x6d, 0x26, 0xe4, 0x1e, 0x5d, 0x4d, 0x6c, 0x2f, 0xf1, 0xf3,
64 0x72, 0x0d, 0x3d, 0x96, 0xaa, 0xcb, 0x6f, 0x69, 0xde, 0x64, 0x2e, 0x63,
65 0xd5, 0xb7, 0x3f, 0xc3, 0x96, 0xc1, 0x2b, 0xe3, 0x8b, 0x2b, 0xd5, 0xd8,
66 0x84, 0x25, 0x7c, 0x32, 0xc8, 0xf6, 0xd0, 0x85, 0x4a, 0xe6, 0xb5, 0x40,
67 0xf8, 0x6d, 0xda, 0x2e};
70 0x10, 0x3c, 0xa9, 0x6c, 0x06, 0xa1, 0xce, 0x79, 0x8f, 0x08, 0xf8, 0xef,
71 0xf0, 0xdf, 0xb0, 0xcc, 0xdb, 0x56, 0x7d, 0x48, 0xb2, 0x85, 0xb2, 0x3d,
72 0x0c, 0xd7, 0x73, 0x45, 0x46, 0x67, 0xa3, 0xc2, 0xfa, 0x5f, 0x1b, 0x58,
73 0xd9, 0xcd, 0xf2, 0x32, 0x9b, 0xd9, 0x97, 0x97, 0x30, 0xbf, 0xaa, 0xff};
76 0xd6, 0x82, 0xed, 0x4c, 0xa4, 0xd9, 0x89, 0xc1, 0x34, 0xec, 0x94, 0xf1,
77 0x55, 0x1e, 0x1e, 0xc5, 0x80, 0xdd, 0x6d, 0x5a, 0x6e, 0xcd, 0xe9, 0xf3,
78 0xd3, 0x5e, 0x6e, 0x4a, 0x71, 0x7f, 0xbd, 0xe4};
92 0x61, 0x62, 0x63, 0x80, 0x00, 0x00, 0x00, 0x00,
93 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
94 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
95 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
96 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
97 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
98 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
99 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
100 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
101 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
102 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
103 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
104 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
105 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
106 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
107 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18};
110 0x61, 0x62, 0x63, 0x80, 0x00, 0x00, 0x00, 0x00,
111 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
112 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
113 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
114 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
115 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
116 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
117 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
118 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
119 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
120 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
121 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
122 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
123 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
124 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
125 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18};
128 0x61, 0x62, 0x63, 0x80, 0x00, 0x00, 0x00, 0x00,
129 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
130 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
131 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
132 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
133 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
134 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
135 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18};
138 0xdd, 0xaf, 0x35, 0xa1, 0x93, 0x61, 0x7a, 0xba, 0xcc, 0x41, 0x73, 0x49,
139 0xae, 0x20, 0x41, 0x31, 0x12, 0xe6, 0xfa, 0x4e, 0x89, 0xa9, 0x7e, 0xa2,
140 0x0a, 0x9e, 0xee, 0xe6, 0x4b, 0x55, 0xd3, 0x9a, 0x21, 0x92, 0x99, 0x2a,
141 0x27, 0x4f, 0xc1, 0xa8, 0x36, 0xba, 0x3c, 0x23, 0xa3, 0xfe, 0xeb, 0xbd,
142 0x45, 0x4d, 0x44, 0x23, 0x64, 0x3c, 0xe8, 0x0e, 0x2a, 0x9a, 0xc9, 0x4f,
143 0xa5, 0x4c, 0xa4, 0x9f};
146 0xcb, 0x00, 0x75, 0x3f, 0x45, 0xa3, 0x5e, 0x8b, 0xb5, 0xa0, 0x3d, 0x69,
147 0x9a, 0xc6, 0x50, 0x07, 0x27, 0x2c, 0x32, 0xab, 0x0e, 0xde, 0xd1, 0x63,
148 0x1a, 0x8b, 0x60, 0x5a, 0x43, 0xff, 0x5b, 0xed, 0x80, 0x86, 0x07, 0x2b,
149 0xa1, 0xe7, 0xcc, 0x23, 0x58, 0xba, 0xec, 0xa1, 0x34, 0xc8, 0x25, 0xa7};
152 0xba, 0x78, 0x16, 0xbf, 0x8f, 0x01, 0xcf, 0xea, 0x41, 0x41, 0x40, 0xde,
153 0x5d, 0xae, 0x22, 0x23, 0xb0, 0x03, 0x61, 0xa3, 0x96, 0x17, 0x7a, 0x9c,
154 0xb4, 0x10, 0xff, 0x61, 0xf2, 0x00, 0x15, 0xad};
159 qtest_writel(s, base + HACE_HASH_SRC, extract64(src, 0, 32)); in write_regs()
161 qtest_writel(s, base + HACE_HASH_DIGEST, extract64(out, 0, 32)); in write_regs()
173 uint64_t digest_addr = src_addr + 0x010000; in aspeed_test_md5()
174 uint8_t digest[16] = {0}; in aspeed_test_md5()
177 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_md5()
186 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_md5()
189 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_md5()
190 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_md5()
207 const uint64_t digest_addr = src_addr + 0x10000; in aspeed_test_sha256()
208 uint8_t digest[32] = {0}; in aspeed_test_sha256()
211 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha256()
220 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha256()
223 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha256()
224 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha256()
241 const uint64_t digest_addr = src_addr + 0x10000; in aspeed_test_sha384()
242 uint8_t digest[48] = {0}; in aspeed_test_sha384()
245 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha384()
254 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha384()
257 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha384()
258 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha384()
275 const uint64_t digest_addr = src_addr + 0x10000; in aspeed_test_sha512()
276 uint8_t digest[64] = {0}; in aspeed_test_sha512()
279 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha512()
288 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha512()
291 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha512()
292 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha512()
309 const uint64_t src_addr_1 = src_addr + 0x10000; in aspeed_test_sha256_sg()
310 const uint64_t src_addr_2 = src_addr + 0x20000; in aspeed_test_sha256_sg()
311 const uint64_t src_addr_3 = src_addr + 0x30000; in aspeed_test_sha256_sg()
312 const uint64_t digest_addr = src_addr + 0x40000; in aspeed_test_sha256_sg()
313 uint8_t digest[32] = {0}; in aspeed_test_sha256_sg()
324 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha256_sg()
339 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha256_sg()
342 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha256_sg()
343 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha256_sg()
360 const uint64_t src_addr_1 = src_addr + 0x10000; in aspeed_test_sha384_sg()
361 const uint64_t src_addr_2 = src_addr + 0x20000; in aspeed_test_sha384_sg()
362 const uint64_t src_addr_3 = src_addr + 0x30000; in aspeed_test_sha384_sg()
363 const uint64_t digest_addr = src_addr + 0x40000; in aspeed_test_sha384_sg()
364 uint8_t digest[48] = {0}; in aspeed_test_sha384_sg()
375 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha384_sg()
390 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha384_sg()
393 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha384_sg()
394 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha384_sg()
411 const uint64_t src_addr_1 = src_addr + 0x10000; in aspeed_test_sha512_sg()
412 const uint64_t src_addr_2 = src_addr + 0x20000; in aspeed_test_sha512_sg()
413 const uint64_t src_addr_3 = src_addr + 0x30000; in aspeed_test_sha512_sg()
414 const uint64_t digest_addr = src_addr + 0x40000; in aspeed_test_sha512_sg()
415 uint8_t digest[64] = {0}; in aspeed_test_sha512_sg()
426 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha512_sg()
441 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha512_sg()
444 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha512_sg()
445 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha512_sg()
462 const uint64_t buffer_addr = src_addr + 0x10000; in aspeed_test_sha256_accum()
463 const uint64_t digest_addr = src_addr + 0x40000; in aspeed_test_sha256_accum()
464 uint8_t digest[32] = {0}; in aspeed_test_sha256_accum()
471 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha256_accum()
482 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha256_accum()
485 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha256_accum()
486 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha256_accum()
503 const uint64_t buffer_addr = src_addr + 0x10000; in aspeed_test_sha384_accum()
504 const uint64_t digest_addr = src_addr + 0x40000; in aspeed_test_sha384_accum()
505 uint8_t digest[48] = {0}; in aspeed_test_sha384_accum()
512 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha384_accum()
523 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha384_accum()
526 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha384_accum()
527 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha384_accum()
544 const uint64_t buffer_addr = src_addr + 0x10000; in aspeed_test_sha512_accum()
545 const uint64_t digest_addr = src_addr + 0x40000; in aspeed_test_sha512_accum()
546 uint8_t digest[64] = {0}; in aspeed_test_sha512_accum()
553 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha512_accum()
564 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0x00000200); in aspeed_test_sha512_accum()
567 qtest_writel(s, base + HACE_STS, 0x00000200); in aspeed_test_sha512_accum()
568 g_assert_cmphex(qtest_readl(s, base + HACE_STS), ==, 0); in aspeed_test_sha512_accum()
589 g_assert_cmphex(qtest_readl(s, base + HACE_CMD), ==, 0); in aspeed_test_addresses()
590 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_SRC), ==, 0); in aspeed_test_addresses()
591 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_SRC_HI), ==, 0); in aspeed_test_addresses()
592 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_DIGEST), ==, 0); in aspeed_test_addresses()
593 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_DIGEST_HI), ==, 0); in aspeed_test_addresses()
594 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_KEY_BUFF), ==, 0); in aspeed_test_addresses()
595 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_KEY_BUFF_HI), ==, 0); in aspeed_test_addresses()
596 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_DATA_LEN), ==, 0); in aspeed_test_addresses()
599 qtest_writel(s, base + HACE_HASH_SRC, 0xffffffff); in aspeed_test_addresses()
602 qtest_writel(s, base + HACE_HASH_SRC_HI, 0xffffffff); in aspeed_test_addresses()
606 qtest_writel(s, base + HACE_HASH_DIGEST, 0xffffffff); in aspeed_test_addresses()
610 qtest_writel(s, base + HACE_HASH_DIGEST_HI, 0xffffffff); in aspeed_test_addresses()
614 qtest_writel(s, base + HACE_HASH_KEY_BUFF, 0xffffffff); in aspeed_test_addresses()
618 qtest_writel(s, base + HACE_HASH_KEY_BUFF_HI, 0xffffffff); in aspeed_test_addresses()
622 qtest_writel(s, base + HACE_HASH_DATA_LEN, 0xffffffff); in aspeed_test_addresses()
627 qtest_writel(s, base + HACE_HASH_SRC, 0); in aspeed_test_addresses()
628 qtest_writel(s, base + HACE_HASH_SRC_HI, 0); in aspeed_test_addresses()
629 qtest_writel(s, base + HACE_HASH_DIGEST, 0); in aspeed_test_addresses()
630 qtest_writel(s, base + HACE_HASH_DIGEST_HI, 0); in aspeed_test_addresses()
631 qtest_writel(s, base + HACE_HASH_KEY_BUFF, 0); in aspeed_test_addresses()
632 qtest_writel(s, base + HACE_HASH_KEY_BUFF_HI, 0); in aspeed_test_addresses()
633 qtest_writel(s, base + HACE_HASH_DATA_LEN, 0); in aspeed_test_addresses()
636 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_SRC), ==, 0); in aspeed_test_addresses()
637 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_SRC_HI), ==, 0); in aspeed_test_addresses()
638 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_DIGEST), ==, 0); in aspeed_test_addresses()
639 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_DIGEST_HI), ==, 0); in aspeed_test_addresses()
640 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_KEY_BUFF), ==, 0); in aspeed_test_addresses()
641 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_KEY_BUFF_HI), ==, 0); in aspeed_test_addresses()
642 g_assert_cmphex(qtest_readl(s, base + HACE_HASH_DATA_LEN), ==, 0); in aspeed_test_addresses()