Lines Matching refs:message

333 ErrorCode KeymasterHidlTest::Finish(const string& message, string* output) {  in Finish()  argument
337 ErrorCode error = Finish(op_handle_, AuthorizationSet() /* in_params */, message, in Finish()
346 ErrorCode KeymasterHidlTest::Finish(const string& message, const string& signature, in Finish() argument
350 ErrorCode error = Finish(op_handle_, AuthorizationSet() /* in_params */, message, signature, in Finish()
400 const string& message, const AuthorizationSet& in_params, in ProcessMessage() argument
411 Update(op_handle_, update_params, message, &update_out_params, &output, &consumed)); in ProcessMessage()
416 EXPECT_EQ(ErrorCode::OK, Finish(op_handle_, finish_params, message.substr(consumed), unused, in ProcessMessage()
425 string KeymasterHidlTest::SignMessage(const HidlBuf& key_blob, const string& message, in SignMessage() argument
429 string signature = ProcessMessage(key_blob, KeyPurpose::SIGN, message, params, &out_params); in SignMessage()
434 string KeymasterHidlTest::SignMessage(const string& message, const AuthorizationSet& params) { in SignMessage() argument
436 return SignMessage(key_blob_, message, params); in SignMessage()
439 string KeymasterHidlTest::MacMessage(const string& message, Digest digest, size_t mac_length) { in MacMessage() argument
442 key_blob_, message, in MacMessage()
446 void KeymasterHidlTest::CheckHmacTestVector(const string& key, const string& message, Digest digest, in CheckHmacTestVector() argument
456 string signature = MacMessage(message, digest, expected_mac.size() * 8); in CheckHmacTestVector()
459 << message.size() << " and digest " << digest; in CheckHmacTestVector()
464 const string& message, in CheckAesCtrTestVector() argument
480 string ciphertext = EncryptMessage(key_blob_, message, params, &out_params); in CheckAesCtrTestVector()
502 void KeymasterHidlTest::VerifyMessage(const HidlBuf& key_blob, const string& message, in VerifyMessage() argument
514 Update(op_handle_, update_params, message, &update_out_params, &output, &consumed)); in VerifyMessage()
521 EXPECT_EQ(ErrorCode::OK, Finish(op_handle_, finish_params, message.substr(consumed), signature, in VerifyMessage()
527 void KeymasterHidlTest::VerifyMessage(const string& message, const string& signature, in VerifyMessage() argument
530 VerifyMessage(key_blob_, message, signature, params); in VerifyMessage()
533 string KeymasterHidlTest::EncryptMessage(const HidlBuf& key_blob, const string& message, in EncryptMessage() argument
537 return ProcessMessage(key_blob, KeyPurpose::ENCRYPT, message, in_params, out_params); in EncryptMessage()
540 string KeymasterHidlTest::EncryptMessage(const string& message, const AuthorizationSet& params, in EncryptMessage() argument
543 return EncryptMessage(key_blob_, message, params, out_params); in EncryptMessage()
546 string KeymasterHidlTest::EncryptMessage(const string& message, const AuthorizationSet& params) { in EncryptMessage() argument
549 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage()
554 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() argument
559 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage()
564 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() argument
569 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage()
577 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() argument
585 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage()
589 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage() argument
599 string ciphertext = EncryptMessage(message, params, &out_params); in EncryptMessage()