Lines Matching refs:KeymasterHidlTest

47 void KeymasterHidlTest::InitializeKeymaster(sp<IKeymasterDevice> keymaster) {  in InitializeKeymaster()
63 void KeymasterHidlTest::SetUp() { in SetUp()
67 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey()
93 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc) { in GenerateKey()
97 ErrorCode KeymasterHidlTest::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey()
119 ErrorCode KeymasterHidlTest::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey()
124 ErrorCode KeymasterHidlTest::ImportWrappedKey(string wrapped_key, string wrapping_key, in ImportWrappedKey()
144 ErrorCode KeymasterHidlTest::ExportKey(KeyFormat format, const HidlBuf& key_blob, in ExportKey()
162 ErrorCode KeymasterHidlTest::ExportKey(KeyFormat format, HidlBuf* key_material) { in ExportKey()
167 ErrorCode KeymasterHidlTest::DeleteKey(HidlBuf* key_blob, bool keep_key_blob) { in DeleteKey()
174 ErrorCode KeymasterHidlTest::DeleteKey(bool keep_key_blob) { in DeleteKey()
178 ErrorCode KeymasterHidlTest::DeleteAllKeys() { in DeleteAllKeys()
183 void KeymasterHidlTest::CheckedDeleteKey(HidlBuf* key_blob, bool keep_key_blob) { in CheckedDeleteKey()
188 void KeymasterHidlTest::CheckedDeleteKey() { in CheckedDeleteKey()
192 void KeymasterHidlTest::CheckGetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, in CheckGetCharacteristics()
219 ErrorCode KeymasterHidlTest::GetCharacteristics(const HidlBuf& key_blob, const HidlBuf& client_id, in GetCharacteristics()
234 ErrorCode KeymasterHidlTest::GetCharacteristics(const HidlBuf& key_blob, in GetCharacteristics()
240 ErrorCode KeymasterHidlTest::GetDebugInfo(DebugInfo* debug_info) { in GetDebugInfo()
247 ErrorCode KeymasterHidlTest::Begin(KeyPurpose purpose, const HidlBuf& key_blob, in Begin()
269 ErrorCode KeymasterHidlTest::Begin(KeyPurpose purpose, const AuthorizationSet& in_params, in Begin()
276 ErrorCode KeymasterHidlTest::Begin(KeyPurpose purpose, const AuthorizationSet& in_params) { in Begin()
284 ErrorCode KeymasterHidlTest::Update(OperationHandle op_handle, const AuthorizationSet& in_params, in Update()
304 ErrorCode KeymasterHidlTest::Update(const string& input, string* out, size_t* input_consumed) { in Update()
313 ErrorCode KeymasterHidlTest::Finish(OperationHandle op_handle, const AuthorizationSet& in_params, in Finish()
333 ErrorCode KeymasterHidlTest::Finish(const string& message, string* output) { in Finish()
346 ErrorCode KeymasterHidlTest::Finish(const string& message, const string& signature, in Finish()
360 ErrorCode KeymasterHidlTest::Abort(OperationHandle op_handle) { in Abort()
367 void KeymasterHidlTest::AbortIfNeeded() { in AbortIfNeeded()
375 ErrorCode KeymasterHidlTest::AttestKey(const HidlBuf& key_blob, in AttestKey()
393 ErrorCode KeymasterHidlTest::AttestKey(const AuthorizationSet& attest_params, in AttestKey()
399 string KeymasterHidlTest::ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, in ProcessMessage()
425 string KeymasterHidlTest::SignMessage(const HidlBuf& key_blob, const string& message, in SignMessage()
434 string KeymasterHidlTest::SignMessage(const string& message, const AuthorizationSet& params) { in SignMessage()
439 string KeymasterHidlTest::MacMessage(const string& message, Digest digest, size_t mac_length) { in MacMessage()
446 void KeymasterHidlTest::CheckHmacTestVector(const string& key, const string& message, Digest digest, in CheckHmacTestVector()
463 void KeymasterHidlTest::CheckAesCtrTestVector(const string& key, const string& nonce, in CheckAesCtrTestVector()
484 void KeymasterHidlTest::CheckTripleDesTestVector(KeyPurpose purpose, BlockMode block_mode, in CheckTripleDesTestVector()
502 void KeymasterHidlTest::VerifyMessage(const HidlBuf& key_blob, const string& message, in VerifyMessage()
527 void KeymasterHidlTest::VerifyMessage(const string& message, const string& signature, in VerifyMessage()
533 string KeymasterHidlTest::EncryptMessage(const HidlBuf& key_blob, const string& message, in EncryptMessage()
540 string KeymasterHidlTest::EncryptMessage(const string& message, const AuthorizationSet& params, in EncryptMessage()
546 string KeymasterHidlTest::EncryptMessage(const string& message, const AuthorizationSet& params) { in EncryptMessage()
554 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage()
564 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage()
577 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage()
589 string KeymasterHidlTest::EncryptMessage(const string& message, BlockMode block_mode, in EncryptMessage()
603 string KeymasterHidlTest::DecryptMessage(const HidlBuf& key_blob, const string& ciphertext, in DecryptMessage()
613 string KeymasterHidlTest::DecryptMessage(const string& ciphertext, const AuthorizationSet& params) { in DecryptMessage()
618 string KeymasterHidlTest::DecryptMessage(const string& ciphertext, BlockMode block_mode, in DecryptMessage()
628 std::pair<ErrorCode, HidlBuf> KeymasterHidlTest::UpgradeKey(const HidlBuf& key_blob) { in UpgradeKey()
636 std::vector<uint32_t> KeymasterHidlTest::ValidKeySizes(Algorithm algorithm) { in ValidKeySizes()
680 std::vector<uint32_t> KeymasterHidlTest::InvalidKeySizes(Algorithm algorithm) { in InvalidKeySizes()
696 std::vector<EcCurve> KeymasterHidlTest::ValidCurves() { in ValidCurves()
704 std::vector<EcCurve> KeymasterHidlTest::InvalidCurves() { in InvalidCurves()
710 std::vector<Digest> KeymasterHidlTest::ValidDigests(bool withNone, bool withMD5) { in ValidDigests()
745 std::vector<Digest> KeymasterHidlTest::InvalidDigests() { in InvalidDigests()