/*---------------------------------------------------------------------------*/ void ecc_init() { /* get parameters */ get_curve_param(¶m); /* precompute array for base point */ ecc_win_precompute(&(param.G), pBaseArray); }
/*---------------------------------------------------------------------------*/ 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 ( ¶m ); /** * 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); }