Lines Matching defs:ret
31 EC_GROUP *ret;
42 ret = OPENSSL_zalloc(sizeof(*ret));
43 if (ret == NULL) {
48 ret->libctx = libctx;
50 ret->propq = OPENSSL_strdup(propq);
51 if (ret->propq == NULL) {
56 ret->meth = meth;
57 if ((ret->meth->flags & EC_FLAGS_CUSTOM_CURVE) == 0) {
58 ret->order = BN_new();
59 if (ret->order == NULL)
61 ret->cofactor = BN_new();
62 if (ret->cofactor == NULL)
65 ret->asn1_flag = OPENSSL_EC_EXPLICIT_CURVE;
66 ret->asn1_form = POINT_CONVERSION_UNCOMPRESSED;
67 if (!meth->group_init(ret))
69 return ret;
72 BN_free(ret->order);
73 BN_free(ret->cofactor);
74 OPENSSL_free(ret->propq);
75 OPENSSL_free(ret);
316 int ret = 0;
356 ret = 1;
360 return ret;
717 EC_POINT *ret;
728 ret = OPENSSL_zalloc(sizeof(*ret));
729 if (ret == NULL) {
734 ret->meth = group->meth;
735 ret->curve_name = group->curve_name;
737 if (!ret->meth->point_init(ret)) {
738 OPENSSL_free(ret);
742 return ret;
1071 int ret = 0;
1102 ret = group->meth->mul(group, r, scalar, num, points, scalars, ctx);
1105 ret = ossl_ec_wNAF_mul(group, r, scalar, num, points, scalars, ctx);
1110 return ret;
1117 int ret = 0;
1143 ret = group->meth->mul(group, r, g_scalar, num, &point, &p_scalar, ctx);
1146 ret = ossl_ec_wNAF_mul(group, r, g_scalar, num, &point, &p_scalar, ctx);
1151 return ret;
1188 int ret = 0;
1206 ret = 1;
1211 return ret;
1237 int ret = 0;
1271 ret = 1;
1278 return ret;