Lines Matching refs:public_key
43 static void VerifyDataTest(const VbPublicKey *public_key, in VerifyDataTest() argument
54 rsa = PublicKeyToRSA(public_key); in VerifyDataTest()
79 static void VerifyDigestTest(const VbPublicKey *public_key, in VerifyDigestTest() argument
88 rsa = PublicKeyToRSA(public_key); in VerifyDigestTest()
90 (int)public_key->algorithm); in VerifyDigestTest()
118 static void VerifyKernelPreambleTest(const VbPublicKey *public_key, in VerifyKernelPreambleTest() argument
129 rsa = PublicKeyToRSA(public_key); in VerifyKernelPreambleTest()
218 VbPublicKey *public_key = NULL; in test_algorithm() local
230 public_key = PublicKeyReadKeyb(filename, key_algorithm, 1); in test_algorithm()
231 if (!public_key) { in test_algorithm()
236 VerifyPublicKeyToRSA(public_key); in test_algorithm()
237 VerifyDataTest(public_key, private_key); in test_algorithm()
238 VerifyDigestTest(public_key, private_key); in test_algorithm()
239 VerifyKernelPreambleTest(public_key, private_key); in test_algorithm()
241 if (public_key) in test_algorithm()
242 free(public_key); in test_algorithm()