Home
last modified time | relevance | path

Searched refs:KeymasterEnforcement (Results 1 – 7 of 7) sorted by relevance

/system/keymaster/
Dkeymaster_enforcement.cpp108 KeymasterEnforcement::KeymasterEnforcement(uint32_t max_access_time_map_size, in KeymasterEnforcement() function in keymaster::KeymasterEnforcement
113 KeymasterEnforcement::~KeymasterEnforcement() { in ~KeymasterEnforcement()
118 keymaster_error_t KeymasterEnforcement::AuthorizeOperation(const keymaster_purpose_t purpose, in AuthorizeOperation()
146 KeymasterEnforcement::AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, in AuthorizeUpdateOrFinish()
191 keymaster_error_t KeymasterEnforcement::AuthorizeBegin(const keymaster_purpose_t purpose, in AuthorizeBegin()
379 bool KeymasterEnforcement::CreateKeyId(const keymaster_key_blob_t& key_blob, km_id_t* keyid) { in CreateKeyId()
395 bool KeymasterEnforcement::MinTimeBetweenOpsPassed(uint32_t min_time_between, const km_id_t keyid) { in MinTimeBetweenOpsPassed()
405 bool KeymasterEnforcement::MaxUsesPerBootNotExceeded(const km_id_t keyid, uint32_t max_uses) { in MaxUsesPerBootNotExceeded()
415 bool KeymasterEnforcement::AuthTokenMatches(const AuthorizationSet& auth_set, in AuthTokenMatches()
Dkeymaster_enforcement_test.cpp30 class TestKeymasterEnforcement : public KeymasterEnforcement {
33 : KeymasterEnforcement(3, 3), current_time_(10000), report_token_valid_(true) {} in TestKeymasterEnforcement()
38 return KeymasterEnforcement::AuthorizeOperation( in AuthorizeOperation()
41 using KeymasterEnforcement::AuthorizeOperation;
867 EXPECT_TRUE(KeymasterEnforcement::CreateKeyId(blob, &key_id)); in TEST_F()
Dandroid_keymaster_test.cpp54 class TestKeymasterEnforcement : public KeymasterEnforcement {
56 TestKeymasterEnforcement() : KeymasterEnforcement(3, 3) {} in TestKeymasterEnforcement()
73 KeymasterEnforcement* enforcement_policy() override { return &test_policy_; } in enforcement_policy()
/system/keymaster/include/keymaster/
Dkeymaster_enforcement.h39 class KeymasterEnforcement {
44 KeymasterEnforcement(uint32_t max_access_time_map_size, uint32_t max_access_count_map_size);
45 virtual ~KeymasterEnforcement();
Dkeymaster_context.h128 virtual KeymasterEnforcement* enforcement_policy() = 0;
Dsoft_keymaster_context.h55 KeymasterEnforcement* enforcement_policy() override { in enforcement_policy()
/system/security/keystore/
Dkeystore_keymaster_enforcement.h28 class KeystoreKeymasterEnforcement : public keymaster::KeymasterEnforcement {
30 KeystoreKeymasterEnforcement() : KeymasterEnforcement(64, 64) {} in KeystoreKeymasterEnforcement()