Searched refs:bn_n (Results 1 – 5 of 5) sorted by relevance
/trusted-firmware-m-3.4.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_rsa_keypair.c | 113 BIGNUM *bn_n = BN_new(); in CC_CommonRsaCalculateNp() local 127 if (NULL == bn_n) { in CC_CommonRsaCalculateNp() 138 if (!BN_hex2bn (&bn_n, N_Temp)) { in CC_CommonRsaCalculateNp() 143 if (CC_CommonRSACalculateNpInt(bn_n, NP_ptr, NP_HEX) != 0) { in CC_CommonRsaCalculateNp() 154 if (bn_n != NULL) { in CC_CommonRsaCalculateNp() 155 BN_free (bn_n); in CC_CommonRsaCalculateNp() 180 BIGNUM *bn_n = BN_new(); in CC_CommonRSACalculateNpInt() local 197 (NULL == bn_n) || in CC_CommonRSACalculateNpInt() 256 if (bn_n != NULL) { in CC_CommonRSACalculateNpInt() 257 BN_free (bn_n); in CC_CommonRSACalculateNpInt()
|
D | common_rsa_keypair_util.c | 252 BIGNUM *bn_n = NULL; in CC_CommonCalcHBKFromBuff() local 258 bn_n = BN_bin2bn(pNBuff, SB_CERT_RSA_KEY_SIZE_IN_BYTES, bn_n); in CC_CommonCalcHBKFromBuff() 259 if (NULL == bn_n) { in CC_CommonCalcHBKFromBuff() 264 if (CC_CommonRSACalculateNpInt(bn_n, gNp, NP_BIN) != 0) { in CC_CommonCalcHBKFromBuff() 284 if (bn_n != NULL) { in CC_CommonCalcHBKFromBuff() 285 BN_free(bn_n); in CC_CommonCalcHBKFromBuff()
|
D | common_sb_ops.c | 210 BIGNUM *bn_n = BN_new(); in SBU_GetNFromKeyPairAndCalcH() local 236 bn_n = BN_bin2bn(N_ptr, SB_CERT_RSA_KEY_SIZE_IN_BYTES, bn_n); in SBU_GetNFromKeyPairAndCalcH() 237 if (NULL == bn_n) in SBU_GetNFromKeyPairAndCalcH() 240 if (!BN_mod_exp (bn_h, bn_two, bn_twos, bn_n, bn_ctx)) in SBU_GetNFromKeyPairAndCalcH()
|
D | common_sb_ops.h | 87 BN_free (bn_n); \ 108 BN_free (bn_n); \
|
D | common_crypto_asym.c | 576 BIGNUM *bn_n = BN_new(); in CC_CommonRsaCalculateH() local 607 if (!BN_hex2bn(&bn_n, N_Temp)) { in CC_CommonRsaCalculateH() 612 if (!BN_mod_exp(bn_h, bn_two, bn_twos, bn_n, bn_ctx)) { in CC_CommonRsaCalculateH() 656 if (bn_n != NULL) { in CC_CommonRsaCalculateH() 657 BN_free(bn_n); in CC_CommonRsaCalculateH()
|