Esempio n. 1
0
/*---------------------------------------------------------------------------*/
void
ecc_init()
{
 /* get parameters */
 get_curve_param(&param);

 /* precompute array for base point */
 ecc_win_precompute(&(param.G), pBaseArray);

}
Esempio n. 2
0
File: ecc.c Progetto: codeguru1/ecc
/*---------------------------------------------------------------------------*/
void
ecc_init()
{
	int i = KEY_BIT_LEN;
	int j = NN_DIGIT_BITS;
	printf ( "ECC INITIALIZED: key bit len: %u NN_DIGIT_BITS: %u\n", i, j );
	/* get parameters */
	get_curve_param ( &param );

	/**
	 * Window method disabled as for now since it will cause pBaseArray to be
	 * garbage collected by the compiler and thus save memory (albeit at a
	 * cost of CPU).
	 * IMPORTANT: This must be re-enabled if you want to use the ECDSA functions.

		// precompute array for base point*/
	ecc_win_precompute(&(param.G), pBaseArray);
}