Lines Matching refs:point

744 NX_CRYPTO_KEEP UINT _nx_crypto_ec_point_is_infinite(NX_CRYPTO_EC_POINT *point)  in _nx_crypto_ec_point_is_infinite()  argument
746 if (point -> nx_crypto_ec_point_type == NX_CRYPTO_EC_POINT_AFFINE) in _nx_crypto_ec_point_is_infinite()
748 if (_nx_crypto_huge_number_is_zero(&point -> nx_crypto_ec_point_x) && in _nx_crypto_ec_point_is_infinite()
749 _nx_crypto_huge_number_is_zero(&point -> nx_crypto_ec_point_y)) in _nx_crypto_ec_point_is_infinite()
759 return(_nx_crypto_huge_number_is_zero(&point -> nx_crypto_ec_point_z)); in _nx_crypto_ec_point_is_infinite()
808 NX_CRYPTO_KEEP VOID _nx_crypto_ec_point_set_infinite(NX_CRYPTO_EC_POINT *point) in _nx_crypto_ec_point_set_infinite() argument
810 if (point -> nx_crypto_ec_point_type == NX_CRYPTO_EC_POINT_AFFINE) in _nx_crypto_ec_point_set_infinite()
812 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_x, 0); in _nx_crypto_ec_point_set_infinite()
813 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_y, 0); in _nx_crypto_ec_point_set_infinite()
817 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_z, 0); in _nx_crypto_ec_point_set_infinite()
867 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
882 status = _nx_crypto_huge_number_setup(&point -> nx_crypto_ec_point_x, byte_stream, len); in _nx_crypto_ec_point_setup()
889 status = _nx_crypto_huge_number_setup(&point -> nx_crypto_ec_point_y, byte_stream, len); in _nx_crypto_ec_point_setup()
941 …_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
960 status = _nx_crypto_huge_number_extract_fixed_size(&point -> nx_crypto_ec_point_x, in _nx_crypto_ec_point_extract_uncompressed()
972 status = _nx_crypto_huge_number_extract_fixed_size(&point -> nx_crypto_ec_point_y, in _nx_crypto_ec_point_extract_uncompressed()
1025 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
1027 point -> nx_crypto_ec_point_type = NX_CRYPTO_EC_POINT_PROJECTIVE; in _nx_crypto_ec_point_fp_affine_to_projective()
1028 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(&point -> nx_crypto_ec_point_z, 1); in _nx_crypto_ec_point_fp_affine_to_projective()
1086 NX_CRYPTO_EC_POINT *point, in _nx_crypto_ec_point_fp_projective_to_affine() argument
1095 if (_nx_crypto_ec_point_is_infinite(point)) in _nx_crypto_ec_point_fp_projective_to_affine()
1097 point -> nx_crypto_ec_point_type = NX_CRYPTO_EC_POINT_AFFINE; in _nx_crypto_ec_point_fp_projective_to_affine()
1098 _nx_crypto_ec_point_set_infinite(point); in _nx_crypto_ec_point_fp_projective_to_affine()
1102 buffer_size = point -> nx_crypto_ec_point_x.nx_crypto_huge_buffer_size; in _nx_crypto_ec_point_fp_projective_to_affine()
1108 _nx_crypto_huge_number_inverse_modulus_prime(&point -> nx_crypto_ec_point_z, in _nx_crypto_ec_point_fp_projective_to_affine()
1113 NX_CRYPTO_EC_MULTIPLE_REDUCE(curve, &point -> nx_crypto_ec_point_x, in _nx_crypto_ec_point_fp_projective_to_affine()
1115 NX_CRYPTO_HUGE_NUMBER_COPY(&point -> nx_crypto_ec_point_x, &temp2); in _nx_crypto_ec_point_fp_projective_to_affine()
1119 NX_CRYPTO_EC_MULTIPLE_REDUCE(curve, &point -> nx_crypto_ec_point_y, in _nx_crypto_ec_point_fp_projective_to_affine()
1121 NX_CRYPTO_HUGE_NUMBER_COPY(&point -> nx_crypto_ec_point_y, &temp1); in _nx_crypto_ec_point_fp_projective_to_affine()
2668 NX_CRYPTO_EC_POINT point; in _nx_crypto_ec_fp_affine_subtract() local
2670 NX_CRYPTO_EC_POINT_INITIALIZE(&point, NX_CRYPTO_EC_POINT_AFFINE, scratch, in _nx_crypto_ec_fp_affine_subtract()
2672 NX_CRYPTO_HUGE_NUMBER_COPY(&point.nx_crypto_ec_point_x, &right -> nx_crypto_ec_point_x); in _nx_crypto_ec_fp_affine_subtract()
2673 NX_CRYPTO_HUGE_NUMBER_COPY(&point.nx_crypto_ec_point_y, &curve -> nx_crypto_ec_field.fp); in _nx_crypto_ec_fp_affine_subtract()
2675 _nx_crypto_ec_subtract_reduce(curve, &point.nx_crypto_ec_point_y, in _nx_crypto_ec_fp_affine_subtract()
2677 _nx_crypto_ec_fp_affine_add(curve, left, &point, scratch); in _nx_crypto_ec_fp_affine_subtract()