Searched refs:bn_ctx (Results 1 – 3 of 3) sorted by relevance
/trusted-firmware-m-3.7.0/lib/ext/cryptocell-312-runtime/utils/src/common/ |
D | common_rsa_keypair.c | 175 BN_CTX *bn_ctx = BN_CTX_new(); in CC_CommonRSACalculateNpInt() local 200 (NULL == bn_ctx)) { in CC_CommonRSACalculateNpInt() 208 if (!BN_exp (bn_r, bn_a, bn_p, bn_ctx)) { in CC_CommonRSACalculateNpInt() 212 if (!BN_div (bn_quo, bn_rem, bn_r, n, bn_ctx)) { in CC_CommonRSACalculateNpInt() 265 if (bn_ctx != NULL) { in CC_CommonRSACalculateNpInt() 266 BN_CTX_free(bn_ctx); in CC_CommonRSACalculateNpInt()
|
D | common_crypto_asym.c | 572 BN_CTX *bn_ctx = BN_CTX_new(); in CC_CommonRsaCalculateH() local 612 if (!BN_mod_exp(bn_h, bn_two, bn_twos, bn_n, bn_ctx)) { in CC_CommonRsaCalculateH() 662 if (bn_ctx != NULL) { in CC_CommonRsaCalculateH() 663 BN_CTX_free(bn_ctx); in CC_CommonRsaCalculateH()
|
D | common_sb_ops.c | 206 BN_CTX *bn_ctx = BN_CTX_new(); in SBU_GetNFromKeyPairAndCalcH() local 240 if (!BN_mod_exp (bn_h, bn_two, bn_twos, bn_n, bn_ctx)) in SBU_GetNFromKeyPairAndCalcH()
|