Lines Matching refs:bnctx
885 BN_CTX *bnctx; in crypto_bignum_mod() local
887 bnctx = BN_CTX_new(); in crypto_bignum_mod()
888 if (bnctx == NULL) in crypto_bignum_mod()
891 bnctx); in crypto_bignum_mod()
892 BN_CTX_free(bnctx); in crypto_bignum_mod()
904 BN_CTX *bnctx; in crypto_bignum_exptmod() local
906 bnctx = BN_CTX_new(); in crypto_bignum_exptmod()
907 if (bnctx == NULL) in crypto_bignum_exptmod()
910 (const BIGNUM *) c, bnctx); in crypto_bignum_exptmod()
911 BN_CTX_free(bnctx); in crypto_bignum_exptmod()
929 BN_CTX *bnctx; in crypto_bignum_inverse() local
931 bnctx = BN_CTX_new(); in crypto_bignum_inverse()
932 if (bnctx == NULL) in crypto_bignum_inverse()
935 (const BIGNUM *) b, bnctx); in crypto_bignum_inverse()
936 BN_CTX_free(bnctx); in crypto_bignum_inverse()
957 BN_CTX *bnctx; in crypto_bignum_div() local
959 bnctx = BN_CTX_new(); in crypto_bignum_div()
960 if (bnctx == NULL) in crypto_bignum_div()
963 (const BIGNUM *) b, bnctx); in crypto_bignum_div()
964 BN_CTX_free(bnctx); in crypto_bignum_div()
977 BN_CTX *bnctx; in crypto_bignum_mulmod() local
979 bnctx = BN_CTX_new(); in crypto_bignum_mulmod()
980 if (bnctx == NULL) in crypto_bignum_mulmod()
983 (const BIGNUM *) c, bnctx); in crypto_bignum_mulmod()
984 BN_CTX_free(bnctx); in crypto_bignum_mulmod()
1019 BN_CTX *bnctx; member
1054 e->bnctx = BN_CTX_new(); in crypto_ec_init()
1058 if (e->group == NULL || e->bnctx == NULL || e->prime == NULL || in crypto_ec_init()
1060 !EC_GROUP_get_curve_GFp(e->group, e->prime, NULL, NULL, e->bnctx) || in crypto_ec_init()
1061 !EC_GROUP_get_order(e->group, e->order, e->bnctx)) { in crypto_ec_init()
1076 BN_CTX_free(e->bnctx); in crypto_ec_deinit()
1134 x_bn, y_bn, e->bnctx)) { in crypto_ec_point_to_bin()
1170 e->bnctx)) { in crypto_ec_point_from_bin()
1187 (const EC_POINT *) b, e->bnctx) ? 0 : -1; in crypto_ec_point_add()
1196 (const EC_POINT *) p, (const BIGNUM *) b, e->bnctx) in crypto_ec_point_mul()
1203 return EC_POINT_invert(e->group, (EC_POINT *) p, e->bnctx) ? 0 : -1; in crypto_ec_point_invert()
1213 e->bnctx) || in crypto_ec_point_solve_y_coord()
1214 !EC_POINT_is_on_curve(e->group, (EC_POINT *) p, e->bnctx)) in crypto_ec_point_solve_y_coord()
1230 return EC_POINT_is_on_curve(e->group, (const EC_POINT *) p, e->bnctx); in crypto_ec_point_is_on_curve()