Searched refs:attestation_key (Results 1 – 3 of 3) sorted by relevance
150 UniquePtr<AttestationKey> attestation_key(attestation_key_p); in WriteKeyToStorage() local151 attestation_key->has_key = true; in WriteKeyToStorage()152 memcpy(attestation_key->key.bytes, key, key_size); in WriteKeyToStorage()153 attestation_key->key.size = key_size; in WriteKeyToStorage()155 err = WriteAttestationKey(key_slot, attestation_key.get(), true); in WriteKeyToStorage()174 UniquePtr<AttestationKey> attestation_key(attestation_key_p); in ReadKeyFromStorage() local175 if (!attestation_key->has_key) { in ReadKeyFromStorage()181 KeymasterKeyBlob result(attestation_key->key.size); in ReadKeyFromStorage()188 memcpy(result.writable_data(), attestation_key->key.bytes, in ReadKeyFromStorage()202 UniquePtr<AttestationKey> attestation_key(attestation_key_p); in AttestationKeyExists() local[all …]
246 const AttestationKey* attestation_key,
155 let mut attestation_key = read_attestation_key_content(algorithm)?; in provision_attestation_key_file() localVariable156 attestation_key.set_key(try_to_vec(key_data)?); in provision_attestation_key_file()158 write_protobuf_to_attestation_key_file(algorithm, attestation_key) in provision_attestation_key_file()