Home
last modified time | relevance | path

Searched refs:AttestationKeySlot (Results 1 – 6 of 6) sorted by relevance

/trusty/user/app/keymaster/
Dsecure_storage_manager.h41 enum class AttestationKeySlot { enum
83 keymaster_error_t WriteKeyToStorage(AttestationKeySlot key_slot,
90 KeymasterKeyBlob ReadKeyFromStorage(AttestationKeySlot key_slot,
97 keymaster_error_t AttestationKeyExists(AttestationKeySlot key_slot,
106 keymaster_error_t WriteCertToStorage(AttestationKeySlot key_slot,
116 AttestationKeySlot key_slot,
122 keymaster_error_t DeleteCertChainFromStorage(AttestationKeySlot key_slot);
130 keymaster_error_t WriteCertChainLength(AttestationKeySlot key_slot,
137 keymaster_error_t ReadCertChainLength(AttestationKeySlot key_slot,
199 keymaster_error_t DeleteKey(AttestationKeySlot key_slot, bool commit);
[all …]
Dsecure_storage_manager.cpp61 const char* GetKeySlotStr(AttestationKeySlot key_slot) { in GetKeySlotStr()
63 case AttestationKeySlot::kRsa: in GetKeySlotStr()
65 case AttestationKeySlot::kEcdsa: in GetKeySlotStr()
67 case AttestationKeySlot::kEddsa: in GetKeySlotStr()
69 case AttestationKeySlot::kEpid: in GetKeySlotStr()
71 case AttestationKeySlot::kClaimable0: in GetKeySlotStr()
73 case AttestationKeySlot::kSomRsa: in GetKeySlotStr()
75 case AttestationKeySlot::kSomEcdsa: in GetKeySlotStr()
77 case AttestationKeySlot::kSomEddsa: in GetKeySlotStr()
79 case AttestationKeySlot::kSomEpid: in GetKeySlotStr()
[all …]
Dtrusty_keymaster.cpp82 AttestationKeySlot keymaster_algorithm_to_key_slot( in keymaster_algorithm_to_key_slot()
86 return AttestationKeySlot::kRsa; in keymaster_algorithm_to_key_slot()
88 return AttestationKeySlot::kEcdsa; in keymaster_algorithm_to_key_slot()
90 return AttestationKeySlot::kInvalid; in keymaster_algorithm_to_key_slot()
107 AttestationKeySlot key_slot; in SetAttestationKey()
110 if (key_slot == AttestationKeySlot::kInvalid) { in SetAttestationKey()
168 AttestationKeySlot key_slot = in SetWrappedAttestationKey()
170 if (key_slot == AttestationKeySlot::kInvalid) { in SetWrappedAttestationKey()
216 AttestationKeySlot key_slot; in ClearAttestationCertChain()
219 if (key_slot == AttestationKeySlot::kInvalid) { in ClearAttestationCertChain()
[all …]
Dtrusty_keymaster_context.cpp1089 AttestationKeySlot key_slot; in GetAttestationKey()
1093 key_slot = AttestationKeySlot::kRsa; in GetAttestationKey()
1097 key_slot = AttestationKeySlot::kEcdsa; in GetAttestationKey()
1131 AttestationKeySlot key_slot; in GetAttestationChain()
1134 key_slot = AttestationKeySlot::kRsa; in GetAttestationChain()
1137 key_slot = AttestationKeySlot::kEcdsa; in GetAttestationChain()
/trusty/user/app/keymaster/device_unittest/
Dmain.cpp49 using keymaster::AttestationKeySlot;
72 AttestationKeySlot key_slot) { in TestKeyStorage()
99 AttestationKeySlot key_slot, in TestCertChainStorage()
137 AttestationKeySlot key_slot) { in TestCertStorageInvalid()
171 error = ss_manager->ReadCertChainLength(AttestationKeySlot::kRsa, in DeleteAttestationData()
175 error = ss_manager->ReadCertChainLength(AttestationKeySlot::kEcdsa, in DeleteAttestationData()
180 error = ss_manager->AttestationKeyExists(AttestationKeySlot::kRsa, in DeleteAttestationData()
184 error = ss_manager->AttestationKeyExists(AttestationKeySlot::kEcdsa, in DeleteAttestationData()
324 TestKeyStorage(_state->ss_manager, AttestationKeySlot::kRsa); in TEST_F()
328 TestKeyStorage(_state->ss_manager, AttestationKeySlot::kEcdsa); in TEST_F()
[all …]
/trusty/user/app/keymaster/host_unittest/
Dmain.cpp56 using keymaster::AttestationKeySlot;
78 void TestKeyStorage(AttestationKeySlot key_slot) { in TestKeyStorage()
106 void TestCertChainStorage(AttestationKeySlot key_slot, bool chain_exists) { in TestCertChainStorage()
152 void TestCertStorageInvalid(AttestationKeySlot key_slot) { in TestCertStorageInvalid()
193 error = ss_manager->ReadCertChainLength(AttestationKeySlot::kRsa, in DeleteAttestationData()
197 error = ss_manager->ReadCertChainLength(AttestationKeySlot::kEcdsa, in DeleteAttestationData()
202 error = ss_manager->AttestationKeyExists(AttestationKeySlot::kRsa, in DeleteAttestationData()
206 error = ss_manager->AttestationKeyExists(AttestationKeySlot::kEcdsa, in DeleteAttestationData()
313 AttestationKeySlot key_slots[] = {AttestationKeySlot::kRsa, in TestFormatChange()
314 AttestationKeySlot::kEcdsa}; in TestFormatChange()
[all …]