Lines Matching refs:signature
297 keymaster_error_t Keymaster2Test::FinishOperation(const string& signature, string* output) { in FinishOperation() argument
300 return FinishOperation(additional_params, signature, &output_params, output); in FinishOperation()
304 const string& signature, in FinishOperation() argument
306 keymaster_blob_t sig = {reinterpret_cast<const uint8_t*>(signature.c_str()), in FinishOperation()
307 signature.length()}; in FinishOperation()
379 const string& signature, const AuthorizationSet& begin_params, in ProcessMessage() argument
389 EXPECT_EQ(KM_ERROR_OK, FinishOperation(update_params, signature, &result)); in ProcessMessage()
394 const string& signature) { in ProcessMessage() argument
401 EXPECT_EQ(KM_ERROR_OK, FinishOperation(signature, &result)); in ProcessMessage()
405 void Keymaster2Test::SignMessage(const string& message, string* signature, in SignMessage() argument
412 *signature = in SignMessage()
414 EXPECT_GT(signature->size(), 0U); in SignMessage()
417 void Keymaster2Test::SignMessage(const string& message, string* signature, in SignMessage() argument
425 *signature = in SignMessage()
427 EXPECT_GT(signature->size(), 0U); in SignMessage()
430 void Keymaster2Test::MacMessage(const string& message, string* signature, size_t mac_length) { in MacMessage() argument
436 *signature = in MacMessage()
438 EXPECT_GT(signature->size(), 0U); in MacMessage()
441 void Keymaster2Test::VerifyMessage(const string& message, const string& signature, in VerifyMessage() argument
448 ProcessMessage(KM_PURPOSE_VERIFY, message, signature, input_params, update_params, in VerifyMessage()
452 void Keymaster2Test::VerifyMessage(const string& message, const string& signature, in VerifyMessage() argument
460 ProcessMessage(KM_PURPOSE_VERIFY, message, signature, input_params, update_params, in VerifyMessage()
464 void Keymaster2Test::VerifyMac(const string& message, const string& signature) { in VerifyMac() argument
466 ProcessMessage(KM_PURPOSE_VERIFY, message, signature); in VerifyMac()
632 string signature; in CheckHmacTestVector() local
633 MacMessage(message, &signature, expected_mac.size() * 8); in CheckHmacTestVector()
634 EXPECT_EQ(expected_mac, signature) << "Test vector didn't match for digest " << (int)digest; in CheckHmacTestVector()
878 const keymaster_blob_t* signature, in finish() argument
881 return unwrap(dev)->finish(unwrap(dev), operation_handle, in_params, signature, out_params, in finish()