Home
last modified time | relevance | path

Searched refs:point (Results 1 – 25 of 147) sorted by relevance

123456

/openssl-master/crypto/ec/
A Dec_oct.c32 if (!ec_point_is_compat(point, group)) { in EC_POINT_set_compressed_coordinates()
51 return group->meth->point_set_compressed_coordinates(group, point, x, in EC_POINT_set_compressed_coordinates()
73 size_t EC_POINT_point2oct(const EC_GROUP *group, const EC_POINT *point, in EC_POINT_point2oct() argument
82 if (!ec_point_is_compat(point, group)) { in EC_POINT_point2oct()
97 return ossl_ec_GF2m_simple_point2oct(group, point, in EC_POINT_point2oct()
102 return group->meth->point2oct(group, point, form, buf, len, ctx); in EC_POINT_point2oct()
105 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, in EC_POINT_oct2point() argument
113 if (!ec_point_is_compat(point, group)) { in EC_POINT_oct2point()
130 return group->meth->oct2point(group, point, buf, len, ctx); in EC_POINT_oct2point()
140 len = EC_POINT_point2oct(group, point, form, NULL, 0, NULL); in EC_POINT_point2buf()
[all …]
A Dec2_smpl.c224 point->X = BN_new(); in ossl_ec_GF2m_simple_point_init()
225 point->Y = BN_new(); in ossl_ec_GF2m_simple_point_init()
226 point->Z = BN_new(); in ossl_ec_GF2m_simple_point_init()
228 if (point->X == NULL || point->Y == NULL || point->Z == NULL) { in ossl_ec_GF2m_simple_point_init()
240 BN_free(point->X); in ossl_ec_GF2m_simple_point_finish()
241 BN_free(point->Y); in ossl_ec_GF2m_simple_point_finish()
242 BN_free(point->Z); in ossl_ec_GF2m_simple_point_finish()
280 BN_zero(point->Z); in ossl_ec_GF2m_simple_point_set_to_infinity()
486 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(point->Y)) in ossl_ec_GF2m_simple_invert()
493 return BN_GF2m_add(point->Y, point->X, point->Y); in ossl_ec_GF2m_simple_invert()
[all …]
A Dec_lib.c748 if (point == NULL) in EC_POINT_free()
752 point->meth->point_finish(point); in EC_POINT_free()
753 OPENSSL_free(point); in EC_POINT_free()
758 if (point == NULL) in EC_POINT_clear_free()
762 point->meth->point_clear_finish(point); in EC_POINT_clear_free()
764 point->meth->point_finish(point); in EC_POINT_clear_free()
765 OPENSSL_clear_free(point, sizeof(*point)); in EC_POINT_clear_free()
808 return point->meth; in EC_POINT_method_of()
1125 || (point != NULL && !ec_point_is_compat(point, group))) { in EC_POINT_mul()
1543 EC_POINT *point = NULL; in EC_GROUP_new_from_params() local
[all …]
A Decp_smpl.c329 if (point->X == NULL || point->Y == NULL || point->Z == NULL) { in ossl_ec_GFp_simple_point_init()
340 BN_free(point->X); in ossl_ec_GFp_simple_point_finish()
341 BN_free(point->Y); in ossl_ec_GFp_simple_point_finish()
342 BN_free(point->Z); in ossl_ec_GFp_simple_point_finish()
371 BN_zero(point->Z); in ossl_ec_GFp_simple_point_set_to_infinity()
395 if (!group->meth->field_encode(group, point->X, point->X, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
421 meth->field_encode(group, point->Z, point->Z, ctx)) in ossl_ec_GFp_simple_set_Jprojective_coordinates_GFp()
537 Z_ = point->Z; in ossl_ec_GFp_simple_point_get_affine_coordinates()
943 if (EC_POINT_is_at_infinity(group, point) || BN_is_zero(point->Y)) in ossl_ec_GFp_simple_invert()
947 return BN_usub(point->Y, group->field, point->Y); in ossl_ec_GFp_simple_invert()
[all …]
A Dec_deprecated.c22 const EC_POINT *point, in EC_POINT_point2bn() argument
29 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2bn()
42 const BIGNUM *bn, EC_POINT *point, BN_CTX *ctx) in EC_POINT_bn2point() argument
60 if (point == NULL) { in EC_POINT_bn2point()
66 ret = point; in EC_POINT_bn2point()
69 if (ret != point) in EC_POINT_bn2point()
A Dec_print.c18 const EC_POINT *point, in EC_POINT_point2hex() argument
25 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2hex()
50 const char *hex, EC_POINT *point, BN_CTX *ctx) in EC_POINT_hex2point() argument
60 if (point == NULL) { in EC_POINT_hex2point()
65 pt = point; in EC_POINT_hex2point()
80 if (pt != point) in EC_POINT_hex2point()
A Dec_check.c58 EC_POINT *point = NULL; in EC_GROUP_check()
94 if ((point = EC_POINT_new(group)) == NULL) in EC_GROUP_check()
104 if (!EC_POINT_mul(group, point, order, NULL, NULL, ctx)) in EC_GROUP_check()
106 if (!EC_POINT_is_at_infinity(group, point)) { in EC_GROUP_check()
115 EC_POINT_free(point); in EC_GROUP_check()
A Dec2_oct.c40 EC_POINT *point, in ossl_ec_GF2m_simple_set_compressed_coordinates() argument
107 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) in ossl_ec_GF2m_simple_set_compressed_coordinates()
126 const EC_POINT *point, in ossl_ec_GF2m_simple_point2oct() argument
145 if (EC_POINT_is_at_infinity(group, point)) { in ossl_ec_GF2m_simple_point2oct()
186 if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx)) in ossl_ec_GF2m_simple_point2oct()
256 int ossl_ec_GF2m_simple_oct2point(const EC_GROUP *group, EC_POINT *point, in ossl_ec_GF2m_simple_oct2point() argument
306 return EC_POINT_set_to_infinity(group, point); in ossl_ec_GF2m_simple_oct2point()
343 if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx)) in ossl_ec_GF2m_simple_oct2point()
377 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) in ossl_ec_GF2m_simple_oct2point()
A Decp_oct.c23 EC_POINT *point, in ossl_ec_GFp_simple_set_compressed_coordinates() argument
148 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) in ossl_ec_GFp_simple_set_compressed_coordinates()
159 size_t ossl_ec_GFp_simple_point2oct(const EC_GROUP *group, const EC_POINT *point, in ossl_ec_GFp_simple_point2oct() argument
176 if (EC_POINT_is_at_infinity(group, point)) { in ossl_ec_GFp_simple_point2oct()
214 if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx)) in ossl_ec_GFp_simple_point2oct()
274 int ossl_ec_GFp_simple_oct2point(const EC_GROUP *group, EC_POINT *point, in ossl_ec_GFp_simple_oct2point() argument
309 return EC_POINT_set_to_infinity(group, point); in ossl_ec_GFp_simple_oct2point()
342 if (!EC_POINT_set_compressed_coordinates(group, point, x, y_bit, ctx)) in ossl_ec_GFp_simple_oct2point()
362 if (!EC_POINT_set_affine_coordinates(group, point, x, y, ctx)) in ossl_ec_GFp_simple_oct2point()
A Dec_key.c475 EC_POINT *point = NULL; in ossl_ec_key_public_check() local
481 point = EC_POINT_new(eckey->group); in ossl_ec_key_public_check()
482 if (point == NULL) in ossl_ec_key_public_check()
501 EC_POINT_free(point); in ossl_ec_key_public_check()
532 EC_POINT *point = NULL; in ossl_ec_key_pairwise_check() local
543 if (point == NULL) in ossl_ec_key_pairwise_check()
557 EC_POINT_free(point); in ossl_ec_key_pairwise_check()
603 EC_POINT *point = NULL; in EC_KEY_set_public_key_affine_coordinates() local
615 point = EC_POINT_new(key->group); in EC_KEY_set_public_key_affine_coordinates()
617 if (point == NULL) in EC_KEY_set_public_key_affine_coordinates()
[all …]
A Deck_prn.c74 const EC_POINT *point = NULL; in ECPKParameters_print() local
139 if ((point = EC_GROUP_get0_generator(x)) == NULL) { in ECPKParameters_print()
152 gen_buf_len = EC_POINT_point2buf(x, point, form, &gen_buf, ctx); in ECPKParameters_print()
A Decdsa_ossl.c363 EC_POINT *point = NULL; in ossl_ecdsa_simple_verify_sig() local
439 if ((point = EC_POINT_new(group)) == NULL) { in ossl_ecdsa_simple_verify_sig()
443 if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx)) { in ossl_ecdsa_simple_verify_sig()
448 if (!EC_POINT_get_affine_coordinates(group, point, X, NULL, ctx)) { in ossl_ecdsa_simple_verify_sig()
462 EC_POINT_free(point); in ossl_ecdsa_simple_verify_sig()
A Dec_local.h325 static ossl_inline int ec_point_is_compat(const EC_POINT *point, in ec_point_is_compat() argument
328 return group->meth == point->meth in ec_point_is_compat()
330 || point->curve_name == 0 in ec_point_is_compat()
331 || group->curve_name == point->curve_name); in ec_point_is_compat()
521 const EC_POINT *point,
541 const EC_POINT *point,
561 const EC_POINT *point,
730 const BIGNUM *scalar, const EC_POINT *point,
/openssl-master/test/
A Decstresstest.c42 static BIGNUM *walk_curve(const EC_GROUP *group, EC_POINT *point, in walk_curve() argument
49 || !TEST_true(EC_POINT_get_affine_coordinates(group, point, scalar, in walk_curve()
54 if (!TEST_true(EC_POINT_mul(group, point, NULL, point, scalar, NULL)) in walk_curve()
55 || !TEST_true(EC_POINT_get_affine_coordinates(group, point, in walk_curve()
70 EC_POINT *point = NULL; in test_curve() local
79 || !TEST_ptr(point = EC_POINT_dup(EC_GROUP_get0_generator(group), in test_curve()
81 || !TEST_ptr(result = walk_curve(group, point, num_repeats))) in test_curve()
98 EC_POINT_free(point); in test_curve()
/openssl-master/crypto/x509/
A Dv3_crld.c206 DIST_POINT *point = DIST_POINT_new(); in crldp_from_section() local
208 if (point == NULL) in crldp_from_section()
228 return point; in crldp_from_section()
231 DIST_POINT_free(point); in crldp_from_section()
249 DIST_POINT *point; in v2i_crld() local
259 if (point == NULL) in v2i_crld()
276 point->distpoint->type = 0; in v2i_crld()
462 DIST_POINT *point; in i2r_crldp() local
468 if (point->distpoint) in i2r_crldp()
470 if (point->reasons) in i2r_crldp()
[all …]
/openssl-master/doc/man3/
A DEC_POINT_new.pod37 void EC_POINT_free(EC_POINT *point);
38 void EC_POINT_clear_free(EC_POINT *point);
41 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);
65 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point);
102 An B<EC_POINT> structure represents a point on a curve. A new point is
104 B<group> object that the point relates to.
107 if B<point> is NULL nothing is done.
110 then frees its memory. If B<point> is NULL nothing is done.
122 A valid point on a curve is the special point at infinity. A point is set to
125 The affine co-ordinates for a point describe a point in terms of its x and y
[all …]
A DEC_POINT_add.pod16 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx);
23 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);
33 …nd B<b> and places the result in B<r>. Similarly EC_POINT_dbl doubles the point B<a> and places the
36 EC_POINT_invert calculates the inverse of the supplied point B<a>. The result is placed back in B<a…
38 The function EC_POINT_is_at_infinity tests whether the supplied point is at infinity or not.
40 EC_POINT_is_on_curve tests whether the supplied point is on the curve or not.
50point multiplication). Alternatively, both B<q> and B<m> may be NULL, and B<n> non-NULL, in which…
55 When performing a fixed point multiplication (B<n> is non-NULL and B<num> is 0) or a variable point
58 The function EC_GROUP_precompute_mult stores multiples of the generator for faster point multiplica…
69 EC_POINT_is_at_infinity returns 1 if the point is at infinity, or 0 otherwise.
[all …]
A DEVP_PKEY_get_field_type.pod6 or point conversion form of a key
23 EVP_PKEY_get_ec_point_conv_form() returns the point conversion format
35 EVP_PKEY_get_ec_point_conv_form() returns the point conversion format number
A DEC_GROUP_copy.pod82 …the B<generator>, the B<order> and the B<cofactor>. The B<generator> is a well defined point on the
83 curve chosen for cryptographic operations. Integers used for point multiplications will be between …
117 /** the point is encoded as z||x, where the octet z specifies
120 /** the point is encoded as z||x||y, where z is the octet 0x04 */
122 /** the point is encoded as z||x||y, where the octet z specifies
127 For POINT_CONVERSION_UNCOMPRESSED the point is encoded as an octet signifying the UNCOMPRESSED form…
130 For any given x co-ordinate for a point on a curve it is possible to derive two possible y values. …
131 POINT_CONVERSION_COMPRESSED the point is encoded as an octet signifying that the COMPRESSED form ha…
134 For POINT_CONVERSION_HYBRID the point is encoded as an octet signifying the HYBRID form has been us…
A DSSL_CTX_set_alpn_select_cb.pod65 B<inlen> vector. The B<out> buffer may point directly into B<in>, or to a
75 in B<out>, B<outlen>. The B<out> value will point into either B<server> or
84 must be set to point to the selected protocol (which may be within B<in>).
96 returned by setting B<out> to point to it and B<outlen> to its length. This
106 SSL_get0_next_proto_negotiated() sets B<data> and B<len> to point to the
/openssl-master/test/recipes/30-test_evp_data/
A Devppkey_ecc.txt82 Reason=point at infinity
90 Reason=point at infinity
160 Reason=point at infinity
168 Reason=point at infinity
238 Reason=point at infinity
246 Reason=point at infinity
316 Reason=point at infinity
324 Reason=point at infinity
396 Reason=point at infinity
404 Reason=point at infinity
[all …]
/openssl-master/crypto/err/
A DREADME.md37 generation script as the point to place new error codes, any text
38 after this point will be overwritten when make errors is run.
/openssl-master/include/openssl/
A Dec.h547 void EC_POINT_free(EC_POINT *point);
552 void EC_POINT_clear_free(EC_POINT *point);
574 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);
581 OSSL_DEPRECATEDIN_3_0 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point);
762 size_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,
828 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
843 EC_POINT *point, BN_CTX *ctx);
/openssl-master/providers/fips/
A Dbuild.info5 # It is necessary to have an explicit entry point
/openssl-master/doc/man7/
A DEVP_PKEY-EC.pod63 The I<generator> is a well defined point on the curve chosen for cryptographic
66 Integers used for point multiplications will be between 0 and
87 =item "point-format" (B<OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT>) <UTF8 string>
113 The public key value in EC point format.
122 is expected to be a point conforming to Sec. 2.3.4 of the SECG SEC 1 ("Elliptic

Completed in 103 milliseconds

123456