Home
last modified time | relevance | path

Searched refs:key_desc (Results 1 – 5 of 5) sorted by relevance

/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintAidlTestBase.h84 ErrorCode GenerateKey(const AuthorizationSet& key_desc, vector<uint8_t>* key_blob, in GenerateKey() argument
86 return GenerateKey(key_desc, std::nullopt /* attest_key */, key_blob, key_characteristics, in GenerateKey()
89 ErrorCode GenerateKey(const AuthorizationSet& key_desc,
93 ErrorCode GenerateKey(const AuthorizationSet& key_desc,
96 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
99 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
DKeyMintAidlTestBase.cpp226 ErrorCode KeyMintAidlTestBase::GenerateKey(const AuthorizationSet& key_desc, in GenerateKey() argument
236 Status result = keymint_->generateKey(key_desc.vector_data(), attest_key, &creationResult); in GenerateKey()
245 auto algorithm = key_desc.GetTagValue(TAG_ALGORITHM); in GenerateKey()
250 if (key_desc.Contains(TAG_ATTESTATION_CHALLENGE)) { in GenerateKey()
266 ErrorCode KeyMintAidlTestBase::GenerateKey(const AuthorizationSet& key_desc, in GenerateKey() argument
268 return GenerateKey(key_desc, attest_key, &key_blob_, &key_characteristics_, &cert_chain_); in GenerateKey()
271 ErrorCode KeyMintAidlTestBase::ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey() argument
281 result = keymint_->importKey(key_desc.vector_data(), format, in ImportKey()
294 auto algorithm = key_desc.GetTagValue(TAG_ALGORITHM); in ImportKey()
299 if (key_desc.Contains(TAG_ATTESTATION_CHALLENGE)) EXPECT_GT(cert_chain_.size(), 1); in ImportKey()
[all …]
/hardware/interfaces/keymaster/4.0/vts/functional/
DKeymasterHidlTest.h99 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob,
101 ErrorCode GenerateKey(const AuthorizationSet& key_desc);
103 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
106 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format,
/hardware/interfaces/security/keymint/aidl/vts/performance/
DKeyMintBenchmark.cpp243 ErrorCode GenerateKey(const AuthorizationSet& key_desc, in GenerateKey() argument
247 Status result = keymint_->generateKey(key_desc.vector_data(), attest_key, &creationResult); in GenerateKey()
/hardware/interfaces/keymaster/3.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp454 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() argument
462 ->generateKey(key_desc.hidl_data(), in GenerateKey()
479 ErrorCode GenerateKey(const AuthorizationSet& key_desc) { in GenerateKey() argument
480 return GenerateKey(key_desc, &key_blob_, &key_characteristics_); in GenerateKey()
483 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey() argument
488 ->importKey(key_desc.hidl_data(), format, HidlBuf(key_material), in ImportKey()
505 ErrorCode ImportKey(const AuthorizationSet& key_desc, KeyFormat format, in ImportKey() argument
507 return ImportKey(key_desc, format, key_material, &key_blob_, &key_characteristics_); in ImportKey()