must put  knubs val1, val2 et curveType into an array of uint8_t