Home | History | Annotate | Download | only in openssh

Lines Matching defs:bnctx

265 	BN_CTX *bnctx;
295 if ((bnctx = BN_CTX_new()) == NULL)
298 EC_KEY_get0_group(b->ecdsa), bnctx) != 0 ||
301 EC_KEY_get0_public_key(b->ecdsa), bnctx) != 0) {
302 BN_CTX_free(bnctx);
305 BN_CTX_free(bnctx);
1076 BN_CTX *bnctx;
1089 if ((bnctx = BN_CTX_new()) == NULL)
1095 if (EC_GROUP_cmp(g, eg, bnctx) == 0)
1099 BN_CTX_free(bnctx);
2108 BN_CTX *bnctx;
2113 if ((bnctx = BN_CTX_new()) == NULL)
2115 BN_CTX_start(bnctx);
2134 if ((x = BN_CTX_get(bnctx)) == NULL ||
2135 (y = BN_CTX_get(bnctx)) == NULL ||
2136 (order = BN_CTX_get(bnctx)) == NULL ||
2137 (tmp = BN_CTX_get(bnctx)) == NULL)
2141 if (EC_GROUP_get_order(group, order, bnctx) != 1)
2144 x, y, bnctx) != 1)
2162 if (EC_POINT_mul(group, nq, NULL, public, order, bnctx) != 1)
2185 BN_CTX_free(bnctx);
2193 BN_CTX *bnctx;
2197 if ((bnctx = BN_CTX_new()) == NULL)
2199 BN_CTX_start(bnctx);
2201 if ((order = BN_CTX_get(bnctx)) == NULL ||
2202 (tmp = BN_CTX_get(bnctx)) == NULL)
2206 if (EC_GROUP_get_order(EC_KEY_get0_group(key), order, bnctx) != 1)
2226 BN_CTX_free(bnctx);
2235 BN_CTX *bnctx;
2241 if ((bnctx = BN_CTX_new()) == NULL)
2243 BN_CTX_start(bnctx);
2244 if ((x = BN_CTX_get(bnctx)) == NULL || (y = BN_CTX_get(bnctx)) == NULL)
2249 if (EC_POINT_get_affine_coordinates_GFp(group, point, x, y, bnctx) != 1)
2256 BN_CTX_free(bnctx);