Lines Matching refs:point
743 NX_CRYPTO_KEEP UINT _nx_crypto_ec_point_is_infinite(NX_CRYPTO_EC_POINT *point) in _nx_crypto_ec_point_is_infinite() argument
745 if (point -> nx_crypto_ec_point_type == NX_CRYPTO_EC_POINT_AFFINE) in _nx_crypto_ec_point_is_infinite()
747 if (_nx_crypto_huge_number_is_zero(&point -> nx_crypto_ec_point_x) && in _nx_crypto_ec_point_is_infinite()
748 _nx_crypto_huge_number_is_zero(&point -> nx_crypto_ec_point_y)) in _nx_crypto_ec_point_is_infinite()
758 return(_nx_crypto_huge_number_is_zero(&point -> nx_crypto_ec_point_z)); in _nx_crypto_ec_point_is_infinite()
807 NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_set_infinite(NX_CRYPTO_EC_POINT *point) in _nx_crypto_ec_point_set_infinite() argument
809 if (point -> nx_crypto_ec_point_type == NX_CRYPTO_EC_POINT_AFFINE) in _nx_crypto_ec_point_set_infinite()
811 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_x, 0); in _nx_crypto_ec_point_set_infinite()
812 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_y, 0); in _nx_crypto_ec_point_set_infinite()
816 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_z, 0); in _nx_crypto_ec_point_set_infinite()
866 NX_CRYPTO_KEEP UINT _nx_crypto_ec_point_setup(NX_CRYPTO_EC_POINT *point, UCHAR *byte_stream, UINT b… in _nx_crypto_ec_point_setup() argument
881 status = _nx_crypto_huge_number_setup(&point -> nx_crypto_ec_point_x, byte_stream, len); in _nx_crypto_ec_point_setup()
888 status = _nx_crypto_huge_number_setup(&point -> nx_crypto_ec_point_y, byte_stream, len); in _nx_crypto_ec_point_setup()
940 …_KEEP VOID _nx_crypto_ec_point_extract_uncompressed(NX_CRYPTO_EC *curve, NX_CRYPTO_EC_POINT *point, in _nx_crypto_ec_point_extract_uncompressed() argument
959 status = _nx_crypto_huge_number_extract_fixed_size(&point -> nx_crypto_ec_point_x, in _nx_crypto_ec_point_extract_uncompressed()
971 status = _nx_crypto_huge_number_extract_fixed_size(&point -> nx_crypto_ec_point_y, in _nx_crypto_ec_point_extract_uncompressed()
1024 NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_fp_affine_to_projective(NX_CRYPTO_EC_POINT *point) in _nx_crypto_ec_point_fp_affine_to_projective() argument
1026 point -> nx_crypto_ec_point_type = NX_CRYPTO_EC_POINT_PROJECTIVE; in _nx_crypto_ec_point_fp_affine_to_projective()
1027 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_z, 1); in _nx_crypto_ec_point_fp_affine_to_projective()
1085 NX_CRYPTO_EC_POINT *point, in _nx_crypto_ec_point_fp_projective_to_affine() argument
1094 if (_nx_crypto_ec_point_is_infinite(point)) in _nx_crypto_ec_point_fp_projective_to_affine()
1096 point -> nx_crypto_ec_point_type = NX_CRYPTO_EC_POINT_AFFINE; in _nx_crypto_ec_point_fp_projective_to_affine()
1097 _nx_crypto_ec_point_set_infinite(point); in _nx_crypto_ec_point_fp_projective_to_affine()
1101 buffer_size = point -> nx_crypto_ec_point_x.nx_crypto_huge_buffer_size; in _nx_crypto_ec_point_fp_projective_to_affine()
1107 _nx_crypto_huge_number_inverse_modulus_prime(&point -> nx_crypto_ec_point_z, in _nx_crypto_ec_point_fp_projective_to_affine()
1112 NX_CRYPTO_EC_MULTIPLE_REDUCE(curve, &point -> nx_crypto_ec_point_x, in _nx_crypto_ec_point_fp_projective_to_affine()
1114 NX_CRYPTO_HUGE_NUMBER_COPY(&point -> nx_crypto_ec_point_x, &temp2); in _nx_crypto_ec_point_fp_projective_to_affine()
1118 NX_CRYPTO_EC_MULTIPLE_REDUCE(curve, &point -> nx_crypto_ec_point_y, in _nx_crypto_ec_point_fp_projective_to_affine()
1120 NX_CRYPTO_HUGE_NUMBER_COPY(&point -> nx_crypto_ec_point_y, &temp1); in _nx_crypto_ec_point_fp_projective_to_affine()
2667 NX_CRYPTO_EC_POINT point; in _nx_crypto_ec_fp_affine_subtract() local
2669 NX_CRYPTO_EC_POINT_INITIALIZE(&point, NX_CRYPTO_EC_POINT_AFFINE, scratch, in _nx_crypto_ec_fp_affine_subtract()
2671 NX_CRYPTO_HUGE_NUMBER_COPY(&point.nx_crypto_ec_point_x, &right -> nx_crypto_ec_point_x); in _nx_crypto_ec_fp_affine_subtract()
2672 NX_CRYPTO_HUGE_NUMBER_COPY(&point.nx_crypto_ec_point_y, &curve -> nx_crypto_ec_field.fp); in _nx_crypto_ec_fp_affine_subtract()
2674 _nx_crypto_ec_subtract_reduce(curve, &point.nx_crypto_ec_point_y, in _nx_crypto_ec_fp_affine_subtract()
2676 _nx_crypto_ec_fp_affine_add(curve, left, &point, scratch); in _nx_crypto_ec_fp_affine_subtract()