Home
last modified time | relevance | path

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/
Dcommon_rsa_keypair.c175 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()
Dcommon_crypto_asym.c572 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()
Dcommon_sb_ops.c206 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()