Searched refs:H_res (Results 1 – 3 of 3) sorted by relevance
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_sb_ops.c | 182 char *H_res = NULL, *N_Temp = NULL, *H_resTemp = NULL; in SBU_GetNFromKeyPairAndCalcH() local 230 if (NULL == (H_res = (char *)malloc ((SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2) * sizeof (char)))) in SBU_GetNFromKeyPairAndCalcH() 251 memcpy(H_res, H_resTemp, len); in SBU_GetNFromKeyPairAndCalcH() 255 memmove (H_res + (SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 - len), H_res, len + 1); in SBU_GetNFromKeyPairAndCalcH() 257 H_res[i] = '0'; in SBU_GetNFromKeyPairAndCalcH() 262 memcpy ((char *)H_ptr, (char *)H_res, SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2); in SBU_GetNFromKeyPairAndCalcH()
|
D | common_crypto_asym.c | 567 int8_t *H_res = NULL, *N_Temp = NULL, *H_resTemp = NULL; in CC_CommonRsaCalculateH() local 598 H_res = (int8_t *)malloc ((SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2) * sizeof (int8_t)); in CC_CommonRsaCalculateH() 599 if (NULL == H_res) { in CC_CommonRsaCalculateH() 628 memcpy(H_res, H_resTemp, len); in CC_CommonRsaCalculateH() 631 memmove (H_res + (SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 - len), H_res, len + 1); in CC_CommonRsaCalculateH() 633 H_res[i] = '0'; in CC_CommonRsaCalculateH() 639 memcpy ((int8_t *)H_ptr, (int8_t *)H_res, SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2); in CC_CommonRsaCalculateH() 647 if (H_res != NULL) { in CC_CommonRsaCalculateH() 648 free(H_res); in CC_CommonRsaCalculateH()
|
D | common_sb_ops.h | 102 if(H_res) \ 103 free(H_res); \
|