Home
last modified time | relevance | path

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

12345678

/openssl/crypto/ec/
H A Dec_oct.c32 if (!ec_point_is_compat(point, group)) { 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
77 if (point == NULL) { in EC_POINT_point2oct()
86 if (!ec_point_is_compat(point, group)) { in EC_POINT_point2oct()
101 return ossl_ec_GF2m_simple_point2oct(group, point, in EC_POINT_point2oct()
106 return group->meth->point2oct(group, point, form, buf, len, ctx); in EC_POINT_point2oct()
109 int EC_POINT_oct2point(const EC_GROUP *group, EC_POINT *point, in EC_POINT_oct2point() argument
117 if (!ec_point_is_compat(point, group)) { in EC_POINT_oct2point()
134 return group->meth->oct2point(group, point, buf, len, ctx); in EC_POINT_oct2point()
144 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.c746 if (point == NULL) in EC_POINT_free()
753 point->meth->point_finish(point); in EC_POINT_free()
754 OPENSSL_free(point); in EC_POINT_free()
760 if (point == NULL) in EC_POINT_clear_free()
764 point->meth->point_clear_finish(point); in EC_POINT_clear_free()
766 point->meth->point_finish(point); in EC_POINT_clear_free()
767 OPENSSL_clear_free(point, sizeof(*point)); in EC_POINT_clear_free()
810 return point->meth; in EC_POINT_method_of()
1127 || (point != NULL && !ec_point_is_compat(point, group))) { in EC_POINT_mul()
1551 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
58 if (point == NULL) { in EC_POINT_bn2point()
64 ret = point; in EC_POINT_bn2point()
67 if (ret != point) in EC_POINT_bn2point()
H A Dec_print.c17 const EC_POINT *point, in EC_POINT_point2hex() argument
24 buf_len = EC_POINT_point2buf(group, point, form, &buf, ctx); in EC_POINT_point2hex()
44 const char *hex, EC_POINT *point, BN_CTX *ctx) in EC_POINT_hex2point() argument
54 if (point == NULL) { in EC_POINT_hex2point()
59 pt = point; in EC_POINT_hex2point()
74 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.c564 EC_POINT *point = NULL; in ossl_ec_key_public_check() local
576 point = EC_POINT_new(eckey->group); in ossl_ec_key_public_check()
577 if (point == NULL) in ossl_ec_key_public_check()
596 EC_POINT_free(point); in ossl_ec_key_public_check()
627 EC_POINT *point = NULL; in ossl_ec_key_pairwise_check() local
638 if (point == NULL) in ossl_ec_key_pairwise_check()
652 EC_POINT_free(point); in ossl_ec_key_pairwise_check()
698 EC_POINT *point = NULL; in EC_KEY_set_public_key_affine_coordinates() local
710 point = EC_POINT_new(key->group); in EC_KEY_set_public_key_affine_coordinates()
712 if (point == NULL) in EC_KEY_set_public_key_affine_coordinates()
[all …]
H A Decp_sm2p256.c461 const EC_POINT *point, in ecp_sm2p256_get_affine() argument
472 if (EC_POINT_is_at_infinity(group, point)) { in ecp_sm2p256_get_affine()
477 if (ecp_sm2p256_bignum_field_elem(point_x, point->X) <= 0 in ecp_sm2p256_get_affine()
478 || ecp_sm2p256_bignum_field_elem(point_y, point->Y) <= 0 in ecp_sm2p256_get_affine()
479 || ecp_sm2p256_bignum_field_elem(point_z, point->Z) <= 0) { in ecp_sm2p256_get_affine()
507 const EC_POINT **point, in ecp_sm2p256_windowed_mul() argument
529 if (EC_POINT_is_at_infinity(group, point[i])) in ecp_sm2p256_windowed_mul()
547 || ecp_sm2p256_bignum_field_elem(p.p.X, point[i]->X) <= 0 in ecp_sm2p256_windowed_mul()
548 || ecp_sm2p256_bignum_field_elem(p.p.Y, point[i]->Y) <= 0 in ecp_sm2p256_windowed_mul()
549 || ecp_sm2p256_bignum_field_elem(p.p.Z, point[i]->Z) <= 0) { in ecp_sm2p256_windowed_mul()
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 Dec_local.h327 static ossl_inline int ec_point_is_compat(const EC_POINT *point, in ec_point_is_compat() argument
330 return group->meth == point->meth in ec_point_is_compat()
332 || point->curve_name == 0 in ec_point_is_compat()
333 || group->curve_name == point->curve_name); in ec_point_is_compat()
525 const EC_POINT *point,
545 const EC_POINT *point,
565 const EC_POINT *point,
586 const EC_POINT *point,
760 const BIGNUM *scalar, const EC_POINT *point,
H A Decdsa_ossl.c451 EC_POINT *point = NULL; in ossl_ecdsa_simple_verify_sig() local
527 if ((point = EC_POINT_new(group)) == NULL) { in ossl_ecdsa_simple_verify_sig()
531 if (!EC_POINT_mul(group, point, u1, pub_key, u2, ctx)) { in ossl_ecdsa_simple_verify_sig()
536 if (!EC_POINT_get_affine_coordinates(group, point, X, NULL, ctx)) { in ossl_ecdsa_simple_verify_sig()
550 EC_POINT_free(point); in ossl_ecdsa_simple_verify_sig()
H A Dec_asn1.c388 const EC_POINT *point = NULL; in EC_GROUP_get_ecparameters() local
416 if ((point = EC_GROUP_get0_generator(group)) == NULL) { in EC_GROUP_get_ecparameters()
423 len = EC_POINT_point2buf(group, point, form, &buffer, NULL); in EC_GROUP_get_ecparameters()
525 EC_POINT *point = NULL; in EC_GROUP_new_from_ecparameters() local
714 if ((point = EC_POINT_new(ret)) == NULL) in EC_GROUP_new_from_ecparameters()
722 if (!EC_POINT_oct2point(ret, point, params->base->data, in EC_GROUP_new_from_ecparameters()
751 if (!EC_GROUP_set_generator(ret, point, a, b)) { in EC_GROUP_new_from_ecparameters()
774 || !EC_GROUP_set_generator(dup, point, a, NULL)) { in EC_GROUP_new_from_ecparameters()
839 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.c212 DIST_POINT *point = DIST_POINT_new(); in crldp_from_section() local
214 if (point == NULL) in crldp_from_section()
234 return point; in crldp_from_section()
237 DIST_POINT_free(point); in crldp_from_section()
257 DIST_POINT *point; in v2i_crld() local
267 if (point == NULL) in v2i_crld()
292 point->distpoint->type = 0; in v2i_crld()
466 DIST_POINT *point; in i2r_crldp() local
472 if (point->distpoint) in i2r_crldp()
474 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 coordinates 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 coordinate for a point on a curve it is possible to derive two possible y values. F…
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…
/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/include/openssl/
H A Dec.h568 void EC_POINT_free(EC_POINT *point);
573 void EC_POINT_clear_free(EC_POINT *point);
595 int EC_POINT_set_to_infinity(const EC_GROUP *group, EC_POINT *point);
602 OSSL_DEPRECATEDIN_3_0 const EC_METHOD *EC_POINT_method_of(const EC_POINT *point);
783 size_t EC_POINT_point2buf(const EC_GROUP *group, const EC_POINT *point,
849 int EC_POINT_is_on_curve(const EC_GROUP *group, const EC_POINT *point,
864 EC_POINT *point, BN_CTX *ctx);
/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/providers/fips/
H A Dbuild.info5 # It is necessary to have an explicit entry point

Completed in 76 milliseconds

12345678