Lines Matching refs:key_slot
78 void TestKeyStorage(AttestationKeySlot key_slot) { in TestKeyStorage() argument
90 error = ss_manager->WriteKeyToStorage(key_slot, write_key.get(), DATA_SIZE); in TestKeyStorage()
93 key_blob = ss_manager->ReadKeyFromStorage(key_slot, &error); in TestKeyStorage()
99 error = ss_manager->AttestationKeyExists(key_slot, &key_exists); in TestKeyStorage()
106 void TestCertChainStorage(AttestationKeySlot key_slot, bool chain_exists) { in TestCertChainStorage() argument
120 error = ss_manager->WriteCertToStorage(key_slot, write_cert[i].get(), in TestCertChainStorage()
124 error = ss_manager->ReadCertChainLength(key_slot, &cert_chain_length); in TestCertChainStorage()
133 error = ss_manager->ReadCertChainFromStorage(key_slot, &chain); in TestCertChainStorage()
142 error = ss_manager->DeleteCertChainFromStorage(key_slot); in TestCertChainStorage()
145 error = ss_manager->ReadCertChainFromStorage(key_slot, &chain); in TestCertChainStorage()
152 void TestCertStorageInvalid(AttestationKeySlot key_slot) { in TestCertStorageInvalid() argument
161 error = ss_manager->DeleteKey(key_slot, true); in TestCertStorageInvalid()
163 error = ss_manager->ReadCertChainLength(key_slot, &cert_chain_length); in TestCertStorageInvalid()
170 error = ss_manager->WriteCertToStorage(key_slot, write_cert.get(), in TestCertStorageInvalid()
175 error = ss_manager->ReadCertChainLength(key_slot, &cert_chain_length); in TestCertStorageInvalid()
324 AttestationKeySlot key_slot = key_slots[i]; in TestFormatChange() local
328 key_slot, write_key[i].get(), DATA_SIZE); in TestFormatChange()
336 key_slot, write_cert[i][index].get(), DATA_SIZE, index); in TestFormatChange()
347 AttestationKeySlot key_slot = key_slots[i]; in TestFormatChange() local
348 key_blob = ss_manager->ReadKeyFromStorage(key_slot, &error); in TestFormatChange()
355 error = ss_manager->AttestationKeyExists(key_slot, &key_exists); in TestFormatChange()
359 error = ss_manager->ReadCertChainLength(key_slot, &cert_chain_length); in TestFormatChange()
364 error = ss_manager->ReadCertChainFromStorage(key_slot, &chain); in TestFormatChange()