Home
last modified time | relevance | path

Searched refs:params_array (Results 1 – 9 of 9) sorted by relevance

/system/keymaster/km_openssl/
Dsoft_keymaster_enforcement.cpp147 SoftKeymasterEnforcement::ComputeSharedHmac(const HmacSharingParametersArray& params_array, in ComputeSharedHmac() argument
149 size_t num_chunks = params_array.num_params * 2; in ComputeSharedHmac()
155 for (auto& params : array_range(params_array.params_array, params_array.num_params)) { in ComputeSharedHmac()
/system/keymaster/ng/
DAndroidKeymaster4Device.cpp259 request.params_array.params_array = new keymaster::HmacSharingParameters[params.size()]; in computeSharedHmac()
260 request.params_array.num_params = params.size(); in computeSharedHmac()
262 request.params_array.params_array[i].seed = {params[i].seed.data(), params[i].seed.size()}; in computeSharedHmac()
263 static_assert(sizeof(request.params_array.params_array[i].nonce) == in computeSharedHmac()
266 memcpy(request.params_array.params_array[i].nonce, params[i].nonce.data(), in computeSharedHmac()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp288 request.params_array.params_array = new keymaster::HmacSharingParameters[params.size()]; in computeSharedHmac()
289 request.params_array.num_params = params.size(); in computeSharedHmac()
291 request.params_array.params_array[i].seed = {params[i].seed.data(), params[i].seed.size()}; in computeSharedHmac()
292 static_assert(sizeof(request.params_array.params_array[i].nonce) == in computeSharedHmac()
295 memcpy(request.params_array.params_array[i].nonce, params[i].nonce.data(), in computeSharedHmac()
/system/keymaster/include/keymaster/km_openssl/
Dsoft_keymaster_enforcement.h43 keymaster_error_t ComputeSharedHmac(const HmacSharingParametersArray& params_array,
/system/keymaster/include/keymaster/
Dandroid_keymaster_messages.h715 HmacSharingParametersArray() : params_array(nullptr), num_params(0) {} in HmacSharingParametersArray()
717 delete[] params_array; in HmacSharingParametersArray()
718 params_array = other.params_array; in HmacSharingParametersArray()
720 other.params_array = nullptr; in HmacSharingParametersArray()
723 ~HmacSharingParametersArray() override { delete[] params_array; } in ~HmacSharingParametersArray()
729 HmacSharingParameters* params_array; member
755 size_t SerializedSize() const override { return params_array.SerializedSize(); } in SerializedSize()
757 return params_array.Serialize(buf, end); in Serialize()
760 return params_array.Deserialize(buf_ptr, end); in Deserialize()
763 HmacSharingParametersArray params_array; member
Dkeymaster_enforcement.h169 virtual keymaster_error_t ComputeSharedHmac(const HmacSharingParametersArray& params_array,
/system/keymaster/android_keymaster/
Dandroid_keymaster_messages.cpp599 size += params_array[i].SerializedSize(); in SerializedSize()
607 buf = params_array[i].Serialize(buf, end); in Serialize()
614 params_array = new (std::nothrow) HmacSharingParameters[num_params]; in Deserialize()
615 if (!params_array) return false; in Deserialize()
617 if (!params_array[i].Deserialize(buf_ptr, end)) return false; in Deserialize()
Dandroid_keymaster.cpp194 response.error = policy->ComputeSharedHmac(request.params_array, &response.sharing_check); in ComputeSharedHmac()
/system/keymaster/tests/
Dandroid_keymaster_test.cpp4323 req.params_array.params_array = const_cast<HmacSharingParameters*>(paramsVec.data()); in ComputeSharedHmac()
4325 finally([&]() { req.params_array.params_array = nullptr; }); in ComputeSharedHmac()
4326 req.params_array.num_params = paramsVec.size(); in ComputeSharedHmac()