From: Jakub Wlostowski Date: Tue, 3 Dec 2024 14:10:28 +0000 (+0100) Subject: Fix ECDH key object populate for x86_64 build X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4276b9cae4ee82d5353a9822b1033e20f98093af;p=platform%2Fcore%2Fsecurity%2Ftef-simulator.git Fix ECDH key object populate for x86_64 build Some security tests were crashing and some failing as we tried to change objectSize also for value attribute. Change-Id: Ia4fd6c08352491660ac61fab8a0fed8e82325815 --- diff --git a/ssflib/src/ssf_storage.cpp b/ssflib/src/ssf_storage.cpp index 8cb9bed..01d4cce 100644 --- a/ssflib/src/ssf_storage.cpp +++ b/ssflib/src/ssf_storage.cpp @@ -1514,9 +1514,11 @@ TEE_Result TEE_PopulateTransientObject(TEE_ObjectHandle object, } copy_attribute(&curr_attr[i], (TEE_Attribute*)&attrs[i]); tr->attr.attr_number++; - tr->info.objectSize = - tr->info.objectSize > attrs[i].content.ref.length * 8 ? - tr->info.objectSize : attrs[i].content.ref.length * 8; + if (!isValueAttr(attrs[i].attributeID)) { + tr->info.objectSize = + tr->info.objectSize > attrs[i].content.ref.length * 8 ? + tr->info.objectSize : attrs[i].content.ref.length * 8; + } } switch (tr->info.objectType) {