Lines Matching refs:combo
33 static void private_key_tests(const struct alg_combo *combo, in private_key_tests() argument
73 key->hash_alg = combo->hash_alg; in private_key_tests()
74 key->sig_alg = combo->sig_alg; in private_key_tests()
156 TEST_SUCC(vb2_private_key_hash(&ckey, combo->hash_alg), "Hash key"); in private_key_tests()
158 TEST_EQ(ckey->hash_alg, combo->hash_alg, " hash_alg"); in private_key_tests()
160 TEST_EQ(memcmp(&ckey->guid, vb2_hash_guid(combo->hash_alg), in private_key_tests()
168 static void public_key_tests(const struct alg_combo *combo, in public_key_tests() argument
186 TEST_EQ(key->sig_alg, combo->sig_alg, " sig_alg"); in public_key_tests()
190 bufsize = vb2_packed_key_size(combo->sig_alg); in public_key_tests()
216 key->hash_alg = combo->hash_alg; in public_key_tests()
266 TEST_SUCC(vb2_public_key_hash(&k2, combo->hash_alg), "Hash key"); in public_key_tests()
267 TEST_EQ(k2.hash_alg, combo->hash_alg, " hash_alg"); in public_key_tests()
269 TEST_EQ(memcmp(k2.guid, vb2_hash_guid(combo->hash_alg), in public_key_tests()
279 static int test_algorithm(const struct alg_combo *combo, const char *keys_dir) in test_algorithm() argument
281 int rsa_bits = vb2_rsa_sig_size(combo->sig_alg) * 8; in test_algorithm()
285 printf("***Testing algorithm: %s\n", combo->name); in test_algorithm()
290 private_key_tests(combo, pemfile); in test_algorithm()
291 public_key_tests(combo, keybfile); in test_algorithm()