Home
last modified time | relevance | path

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

123456

/openssl/crypto/ec/
H 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 …]
H 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 …]
H A Dec_lib.c747 if (point == NULL) in EC_POINT_free()
751 point->meth->point_finish(point); in EC_POINT_free()
752 OPENSSL_free(point); in EC_POINT_free()
757 if (point == NULL) in EC_POINT_clear_free()
761 point->meth->point_clear_finish(point); in EC_POINT_clear_free()
763 point->meth->point_finish(point); in EC_POINT_clear_free()
764 OPENSSL_clear_free(point, sizeof(*point)); in EC_POINT_clear_free()
807 return point->meth; in EC_POINT_method_of()
1124 || (point != NULL && !ec_point_is_compat(point, group))) { in EC_POINT_mul()
1548 EC_POINT *point = NULL; in EC_GROUP_new_from_params() local
[all …]
H 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 …]
H 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()
H 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()
H 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()
H 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()
H 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()
H 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 …]
H 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()
H 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()
H 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,
H A Dec_asn1.c390 const EC_POINT *point = NULL; in EC_GROUP_get_ecparameters() local
418 if ((point = EC_GROUP_get0_generator(group)) == NULL) { in EC_GROUP_get_ecparameters()
425 len = EC_POINT_point2buf(group, point, form, &buffer, NULL); in EC_GROUP_get_ecparameters()
527 EC_POINT *point = NULL; in EC_GROUP_new_from_ecparameters() local
718 if ((point = EC_POINT_new(ret)) == NULL) in EC_GROUP_new_from_ecparameters()
726 if (!EC_POINT_oct2point(ret, point, params->base->data, in EC_GROUP_new_from_ecparameters()
755 if (!EC_GROUP_set_generator(ret, point, a, b)) { in EC_GROUP_new_from_ecparameters()
778 || !EC_GROUP_set_generator(dup, point, a, NULL)) { in EC_GROUP_new_from_ecparameters()
843 EC_POINT_free(point); in EC_GROUP_new_from_ecparameters()
/openssl/test/
H 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/crypto/x509/
H A Dv3_crld.c207 DIST_POINT *point = DIST_POINT_new(); in crldp_from_section() local
209 if (point == NULL) in crldp_from_section()
229 return point; in crldp_from_section()
232 DIST_POINT_free(point); in crldp_from_section()
250 DIST_POINT *point; in v2i_crld() local
260 if (point == NULL) in v2i_crld()
277 point->distpoint->type = 0; in v2i_crld()
463 DIST_POINT *point; in i2r_crldp() local
469 if (point->distpoint) in i2r_crldp()
471 if (point->reasons) in i2r_crldp()
[all …]
/openssl/doc/man3/
H 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);
67 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point);
104 An B<EC_POINT> structure represents a point on a curve. A new point is
106 B<group> object that the point relates to.
109 if B<point> is NULL nothing is done.
112 then frees its memory. If B<point> is NULL nothing is done.
124 A valid point on a curve is the special point at infinity. A point is set to
127 The affine co-ordinates for a point describe a point in terms of its x and y
[all …]
H A DEC_POINT_add.pod16 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point, BN_CTX *ctx);
25 int EC_POINT_make_affine(const EC_GROUP *group, EC_POINT *point, BN_CTX *ctx);
35 …nd B<b> and places the result in B<r>. Similarly EC_POINT_dbl doubles the point B<a> and places the
38 EC_POINT_invert calculates the inverse of the supplied point B<a>. The result is placed back in B<a…
40 The function EC_POINT_is_at_infinity tests whether the supplied point is at infinity or not.
42 EC_POINT_is_on_curve tests whether the supplied point is on the curve or not.
52point multiplication). Alternatively, both B<q> and B<m> may be NULL, and B<n> non-NULL, in which…
57 When performing a fixed point multiplication (B<n> is non-NULL and B<num> is 0) or a variable point
60 The function EC_GROUP_precompute_mult stores multiples of the generator for faster point multiplica…
71 EC_POINT_is_at_infinity returns 1 if the point is at infinity, or 0 otherwise.
[all …]
H 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
H A DEC_GROUP_copy.pod84 …the B<generator>, the B<order> and the B<cofactor>. The B<generator> is a well defined point on the
85 curve chosen for cryptographic operations. Integers used for point multiplications will be between …
119 /** the point is encoded as z||x, where the octet z specifies
122 /** the point is encoded as z||x||y, where z is the octet 0x04 */
124 /** the point is encoded as z||x||y, where the octet z specifies
129 For POINT_CONVERSION_UNCOMPRESSED the point is encoded as an octet signifying the UNCOMPRESSED form…
132 For any given x co-ordinate for a point on a curve it is possible to derive two possible y values. …
133 POINT_CONVERSION_COMPRESSED the point is encoded as an octet signifying that the COMPRESSED form ha…
136 For POINT_CONVERSION_HYBRID the point is encoded as an octet signifying the HYBRID form has been us…
H 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/test/recipes/30-test_evp_data/
H 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/crypto/err/
H 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/include/openssl/
H A Dec.h552 void EC_POINT_free(EC_POINT *point);
557 void EC_POINT_clear_free(EC_POINT *point);
579 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);
586 OSSL_DEPRECATEDIN_3_0 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point);
767 size_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,
833 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
848 EC_POINT *point, BN_CTX *ctx);
/openssl/providers/fips/
H A Dbuild.info5 # It is necessary to have an explicit entry point

Completed in 89 milliseconds

123456