Home
last modified time | relevance | path

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

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_rsa_keypair.c173 uint8_t *NP_res = NULL, *NP_resTemp = NULL; in CC_CommonRSACalculateNpInt() local
189 NP_res = (int8_t*)malloc(NP_SIZE_IN_BYTES); in CC_CommonRSACalculateNpInt()
190 if (NP_res == NULL) { in CC_CommonRSACalculateNpInt()
218 len = BN_bn2bin (bn_quo, NP_res); in CC_CommonRSACalculateNpInt()
222 memcpy ((uint8_t *)(NP_ptr + (NP_SIZE_IN_BYTES - len)), (int8_t *)NP_res, len); in CC_CommonRSACalculateNpInt()
234 memcpy(NP_res, NP_resTemp, len); in CC_CommonRSACalculateNpInt()
238 memcpy ((int8_t *)(NP_ptr + (NP_SIZE_IN_BYTES * 2 + 2 - len)), (int8_t *)NP_res, len); in CC_CommonRSACalculateNpInt()
244 if (NP_res != NULL) { in CC_CommonRSACalculateNpInt()
245 free(NP_res); in CC_CommonRSACalculateNpInt()
Dcommon_sb_ops.h82 if(NP_res) \
83 free(NP_res); \