Home
last modified time | relevance | path

Searched refs:out_tmp (Results 1 – 2 of 2) sorted by relevance

/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp268 keymaster_blob_t out_tmp; in UpdateOperation() local
271 input_consumed, &out_params, &out_tmp); in UpdateOperation()
272 if (error == KM_ERROR_OK && out_tmp.data) in UpdateOperation()
273 output->append(reinterpret_cast<const char*>(out_tmp.data), out_tmp.data_length); in UpdateOperation()
274 free(const_cast<uint8_t*>(out_tmp.data)); in UpdateOperation()
284 keymaster_blob_t out_tmp; in UpdateOperation() local
287 input_consumed, &out_params, &out_tmp); in UpdateOperation()
288 if (error == KM_ERROR_OK && out_tmp.data) in UpdateOperation()
289 output->append(reinterpret_cast<const char*>(out_tmp.data), out_tmp.data_length); in UpdateOperation()
290 free((void*)out_tmp.data); in UpdateOperation()
[all …]
/system/security/keystore/
Dblob.cpp90 std::unique_ptr<uint8_t[]> out_tmp(new uint8_t[len]); in AES_gcm_encrypt() local
91 uint8_t* out_pos = out_tmp.get(); in AES_gcm_encrypt()
98 if (out_pos - out_tmp.get() != static_cast<ssize_t>(len)) { in AES_gcm_encrypt()
100 out_pos - out_tmp.get()); in AES_gcm_encrypt()
104 std::copy(out_tmp.get(), out_pos, out); in AES_gcm_encrypt()
128 std::unique_ptr<uint8_t[]> out_tmp(new uint8_t[len]); in AES_gcm_decrypt() local
129 ArrayEraser out_eraser(out_tmp.get(), len); in AES_gcm_decrypt()
130 uint8_t* out_pos = out_tmp.get(); in AES_gcm_decrypt()
140 if (out_pos - out_tmp.get() != static_cast<ssize_t>(len)) { in AES_gcm_decrypt()
142 out_pos - out_tmp.get()); in AES_gcm_decrypt()
[all …]