Home
last modified time | relevance | path

Searched refs:N_Temp (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/
Dcommon_rsa_keypair.c111 int8_t *N_Temp = NULL; in CC_CommonRsaCalculateNp() local
121 N_Temp= (int8_t *)malloc ((SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2) * sizeof (int8_t)); in CC_CommonRsaCalculateNp()
122 if (NULL == N_Temp) { in CC_CommonRsaCalculateNp()
133 memset(N_Temp, 0, (SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2)); in CC_CommonRsaCalculateNp()
136 memcpy (N_Temp, N_ptr, SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2); in CC_CommonRsaCalculateNp()
138 if (!BN_hex2bn (&bn_n, N_Temp)) { in CC_CommonRsaCalculateNp()
151 if (N_Temp != NULL) { in CC_CommonRsaCalculateNp()
152 free(N_Temp); in CC_CommonRsaCalculateNp()
Dcommon_sb_ops.h80 if (N_Temp) \
81 free(N_Temp); \
100 if (N_Temp) \
101 free(N_Temp); \
Dcommon_sb_ops.c182 char *H_res = NULL, *N_Temp = NULL, *H_resTemp = NULL; in SBU_GetNFromKeyPairAndCalcH() local
217 N_Temp= (char *)malloc ((SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2) * sizeof (char)); in SBU_GetNFromKeyPairAndCalcH()
220 if (NULL == N_Temp) in SBU_GetNFromKeyPairAndCalcH()
224 memset (N_Temp, 0, (SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2)); in SBU_GetNFromKeyPairAndCalcH()
227 memcpy (N_Temp, N_ptr, SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2); in SBU_GetNFromKeyPairAndCalcH()
Dcommon_crypto_asym.c567 int8_t *H_res = NULL, *N_Temp = NULL, *H_resTemp = NULL; in CC_CommonRsaCalculateH() local
585 N_Temp= (int8_t *)malloc ((SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2) * sizeof (int8_t)); in CC_CommonRsaCalculateH()
586 if (NULL == N_Temp) { in CC_CommonRsaCalculateH()
592 memset (N_Temp, 0, (SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2 + 2)); in CC_CommonRsaCalculateH()
595 memcpy (N_Temp, N_ptr, SB_CERT_RSA_KEY_SIZE_IN_BYTES * 2); in CC_CommonRsaCalculateH()
607 if (!BN_hex2bn(&bn_n, N_Temp)) { in CC_CommonRsaCalculateH()
644 if (N_Temp != NULL) { in CC_CommonRsaCalculateH()
645 free(N_Temp); in CC_CommonRsaCalculateH()