Searched refs:key_data_size (Results 1 – 3 of 3) sorted by relevance
49 size_t key_data_size = key_size_bytes(key_size_bits); in GenerateKey() local50 KeymasterKeyBlob key_material(key_data_size); in GenerateKey()54 error = random_source_.GenerateRandom(key_material.writable_data(), key_data_size); in GenerateKey()
113 int key_data_size = i2d_PrivateKey(pkey, nullptr /* key_data*/); in EvpKeyToKeyMaterial() local114 if (key_data_size <= 0) in EvpKeyToKeyMaterial()117 if (!key_blob->Reset(key_data_size)) in EvpKeyToKeyMaterial()
145 static keymaster_key_blob_t* duplicate_blob(const uint8_t* key_data, size_t key_data_size) { in duplicate_blob() argument146 unique_ptr<uint8_t[]> key_material_copy(dup_buffer(key_data, key_data_size)); in duplicate_blob()153 blob_copy->key_material_size = key_data_size; in duplicate_blob()