Home
last modified time | relevance | path

Searched refs:TestCtx (Results 1 – 16 of 16) sorted by relevance

/external/boringssl/src/util/fipstools/cavp/
Dcavp_aes_test.cc31 struct TestCtx { struct
43 static bool MonteCarlo(const TestCtx *ctx, FileTest *t, in MonteCarlo()
129 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestCipher()
159 if (ctx->mode == TestCtx::kKAT) { in TestCipher()
195 enum TestCtx::Mode test_mode; in cavp_aes_test_main()
197 test_mode = TestCtx::kKAT; in cavp_aes_test_main()
199 test_mode = TestCtx::kMCT; in cavp_aes_test_main()
216 TestCtx ctx = {cipher, has_iv, test_mode}; in cavp_aes_test_main()
Dcavp_tdes_test.cc31 struct TestCtx { struct
44 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestKAT()
168 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestMCT()
309 enum TestCtx::Mode test_mode; in cavp_tdes_test_main()
311 test_mode = TestCtx::kKAT; in cavp_tdes_test_main()
313 test_mode = TestCtx::kMCT; in cavp_tdes_test_main()
326 TestCtx ctx = {cipher, has_iv, test_mode}; in cavp_tdes_test_main()
328 FileTestFunc test_fn = test_mode == TestCtx::kKAT ? &TestKAT : &TestMCT; in cavp_tdes_test_main()
Dcavp_aes_gcm_test.cc32 struct TestCtx { struct
50 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestAEADEncrypt()
88 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestAEADDecrypt()
157 TestCtx ctx = {aead}; in cavp_aes_gcm_test_main()
Dcavp_sha_test.cc29 struct TestCtx { struct
36 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestSHA()
88 TestCtx ctx = {std::string(argv[1])}; in cavp_sha_test_main()
Dcavp_sha_monte_test.cc30 struct TestCtx { struct
37 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestSHAMonte()
94 TestCtx ctx = {std::string(argv[1])}; in cavp_sha_monte_test_main()
Dcavp_rsa2_sigver_test.cc33 struct TestCtx { struct
41 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestRSA2SigVer()
108 TestCtx ctx; in cavp_rsa2_sigver_test_main()
Dcavp_rsa2_siggen_test.cc32 struct TestCtx { struct
40 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestRSA2SigGen()
111 TestCtx ctx; in cavp_rsa2_siggen_test_main()
Dcavp_keywrap_test.cc30 struct TestCtx { struct
96 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestCipher()
157 TestCtx ctx = {encrypt, padding}; in cavp_keywrap_test_main()
/external/rust/crates/quiche/deps/boringssl/src/util/fipstools/cavp/
Dcavp_aes_test.cc31 struct TestCtx { struct
43 static bool MonteCarlo(const TestCtx *ctx, FileTest *t, in MonteCarlo()
129 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestCipher()
159 if (ctx->mode == TestCtx::kKAT) { in TestCipher()
195 enum TestCtx::Mode test_mode; in cavp_aes_test_main()
197 test_mode = TestCtx::kKAT; in cavp_aes_test_main()
199 test_mode = TestCtx::kMCT; in cavp_aes_test_main()
216 TestCtx ctx = {cipher, has_iv, test_mode}; in cavp_aes_test_main()
Dcavp_tdes_test.cc31 struct TestCtx { struct
44 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestKAT()
168 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestMCT()
309 enum TestCtx::Mode test_mode; in cavp_tdes_test_main()
311 test_mode = TestCtx::kKAT; in cavp_tdes_test_main()
313 test_mode = TestCtx::kMCT; in cavp_tdes_test_main()
326 TestCtx ctx = {cipher, has_iv, test_mode}; in cavp_tdes_test_main()
328 FileTestFunc test_fn = test_mode == TestCtx::kKAT ? &TestKAT : &TestMCT; in cavp_tdes_test_main()
Dcavp_aes_gcm_test.cc32 struct TestCtx { struct
50 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestAEADEncrypt()
88 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestAEADDecrypt()
157 TestCtx ctx = {aead}; in cavp_aes_gcm_test_main()
Dcavp_sha_test.cc29 struct TestCtx { struct
36 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestSHA()
88 TestCtx ctx = {std::string(argv[1])}; in cavp_sha_test_main()
Dcavp_sha_monte_test.cc30 struct TestCtx { struct
37 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestSHAMonte()
94 TestCtx ctx = {std::string(argv[1])}; in cavp_sha_monte_test_main()
Dcavp_rsa2_sigver_test.cc33 struct TestCtx { struct
41 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestRSA2SigVer()
108 TestCtx ctx; in cavp_rsa2_sigver_test_main()
Dcavp_rsa2_siggen_test.cc32 struct TestCtx { struct
40 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestRSA2SigGen()
111 TestCtx ctx; in cavp_rsa2_siggen_test_main()
Dcavp_keywrap_test.cc30 struct TestCtx { struct
96 TestCtx *ctx = reinterpret_cast<TestCtx *>(arg); in TestCipher()
157 TestCtx ctx = {encrypt, padding}; in cavp_keywrap_test_main()