Home | History | Annotate | Download | only in crypto

Lines Matching defs:bnctx

1216 	BN_CTX *bnctx;
1218 bnctx = BN_CTX_new();
1219 if (bnctx == NULL)
1222 bnctx);
1223 BN_CTX_free(bnctx);
1235 BN_CTX *bnctx;
1240 bnctx = BN_CTX_new();
1241 if (bnctx == NULL)
1244 (const BIGNUM *) c, bnctx);
1245 BN_CTX_free(bnctx);
1256 BN_CTX *bnctx;
1260 bnctx = BN_CTX_new();
1261 if (bnctx == NULL)
1264 (const BIGNUM *) b, bnctx);
1265 BN_CTX_free(bnctx);
1288 BN_CTX *bnctx;
1293 bnctx = BN_CTX_new();
1294 if (bnctx == NULL)
1297 (const BIGNUM *) b, bnctx);
1298 BN_CTX_free(bnctx);
1311 BN_CTX *bnctx;
1316 bnctx = BN_CTX_new();
1317 if (bnctx == NULL)
1320 (const BIGNUM *) c, bnctx);
1321 BN_CTX_free(bnctx);
1355 BN_CTX *bnctx;
1362 bnctx = BN_CTX_new();
1363 if (bnctx == NULL)
1373 bnctx))
1386 BN_CTX_free(bnctx);
1396 BN_CTX *bnctx;
1454 e->bnctx = BN_CTX_new();
1460 if (e->group == NULL || e->bnctx == NULL || e->prime == NULL ||
1462 !EC_GROUP_get_curve_GFp(e->group, e->prime, e->a, e->b, e->bnctx) ||
1463 !EC_GROUP_get_order(e->group, e->order, e->bnctx)) {
1481 BN_CTX_free(e->bnctx);
1544 x_bn, y_bn, e->bnctx)) {
1583 e->bnctx)) {
1602 (const EC_POINT *) b, e->bnctx) ? 0 : -1;
1613 (const EC_POINT *) p, (const BIGNUM *) b, e->bnctx)
1622 return EC_POINT_invert(e->group, (EC_POINT *) p, e->bnctx) ? 0 : -1;
1634 e->bnctx) ||
1635 !EC_POINT_is_on_curve(e->group, (EC_POINT *) p, e->bnctx))
1655 BN_mod_sqr(tmp, (const BIGNUM *) x, e->prime, e->bnctx) &&
1656 BN_mod_mul(tmp, tmp, (const BIGNUM *) x, e->prime, e->bnctx) &&
1657 BN_mod_mul(tmp2, e->a, (const BIGNUM *) x, e->prime, e->bnctx) &&
1682 e->bnctx) == 1;
1691 (const EC_POINT *) b, e->bnctx);
1797 x, y, ecdh->ec->bnctx) != 1) {
1851 ecdh->ec->bnctx)) {
1859 ecdh->ec->bnctx)) {
1866 if (!EC_POINT_is_on_curve(ecdh->ec->group, pub, ecdh->ec->bnctx)) {