Searched refs:mont_ctx (Results 1 – 2 of 2) sorted by relevance
282 BN_MONT_CTX *mont_ctx = NULL; in built_in_curve_scalar_field_monts_init() local295 mont_ctx = BN_MONT_CTX_new(); in built_in_curve_scalar_field_monts_init()296 if (mont_ctx == NULL) { in built_in_curve_scalar_field_monts_init()301 !BN_MONT_CTX_set(mont_ctx, order, bn_ctx)) { in built_in_curve_scalar_field_monts_init()305 built_in_curve_scalar_field_monts[i] = mont_ctx; in built_in_curve_scalar_field_monts_init()306 mont_ctx = NULL; in built_in_curve_scalar_field_monts_init()312 BN_MONT_CTX_free(mont_ctx); in built_in_curve_scalar_field_monts_init()
407 BN_MONT_CTX *mont_ctx = NULL; in rsa_setup_blinding() local439 mont_ctx = BN_MONT_CTX_set_locked(&rsa->mont_n, &rsa->lock, rsa->n, ctx); in rsa_setup_blinding()440 if (mont_ctx == NULL) { in rsa_setup_blinding()446 mont_ctx); in rsa_setup_blinding()