Skip to content

keydivision #35

@Flleowa

Description

@Flleowa

Hello, is this parameter responsible for division in the code?

if(FLAG_DIVISOR == 0 )	{
		mpz_init_set_ui(divisor,0);
	}
	mpz_init(inversemultiplier);
	mpz_invert(inversemultiplier,divisor,EC.n);
	gmp_printf("inversemultiplier : %Zx\n",inversemultiplier);
	if(str_output)	{
		OUTPUT = fopen(str_output,"a");
		if(OUTPUT == NULL)	{
			fprintf(stderr,"can't opent file %s\n",str_output);
			OUTPUT = stdout;
		}
	}
	else	{
		OUTPUT = stdout;
	}

I just want to change it, add multiplication and subtraction. But I can’t understand what exactly is responsible for the division. When I try to add multiplication, the output is just zeros.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions