ta/wallet_ta.c
/**
  * Set prime finite field parameters. The arrays passed as parameters to
  * this function will never be written to, hence the const modifiers. It is to
  * be used internally (only by the functions of the TA itself).
  * \param session_data A data pointer to a session context.
  * \param in_n See #n.
  * \param in_complement_n See #complement_n.
  * \param in_size_complement_n See #size_complement_n.
  * \warning There are some restrictions on what the parameters can be.
  *          See #n, #complement_n and #size_complement_n for more details.
  */
Set prime finite field parameters. The arrays passed as parameters to
this function will never be written to, hence the const modifiers. It is to
be used internally (only by the functions of the TA itself).
\param session_data A data pointer to a session context.
\param in_n See #n.
Set prime finite field parameters . The arrays passed as parameters to this function will never be written to hence the const modifiers . It is to be used internally ( only by the functions of the TA itself ) . \ param session_data A data pointer to a session context . \ param in_n See #n .
static void big_set_field_internal(Session_data * session_data, const uint8_t *in_n, const uint8_t *in_complement_n, const uint8_t in_size_complement_n)
{
	session_data->n = (BigNum256)in_n;
	session_data->complement_n = (uint8_t *)in_complement_n;
	session_data->size_complement_n = (uint8_t)in_size_complement_n;
}
static void big_set_field_internal ( Session_data * session_data , const uint8_t * in_n , const uint8_t * in_complement_n , const uint8_t in_size_complement_n ) { session_data -> n = ( BigNum256 ) in_n ; session_data -> complement_n = ( uint8_t * ) in_complement_n ; session_data -> size_complement_n = ( uint8_t ) in_size_complement_n ; }
Set prime finite field parameters.
Set prime finite field parameters .