49 #if MPHELL_USE_GMP == 1
59 gmp_tmp_alloc(__mpz_struct * t,
const uint8_t size, uint8_t stack);
69 gmp_tmp_free(__mpz_struct * t,
const uint8_t size, uint8_t stack);
71 #elif MPHELL_USE_IPP == 1
81 ippcp_bn_tmp_alloc(IppsBigNumState ** t,
const uint8_t size, uint8_t stack);
91 ippcp_bn_tmp_free(IppsBigNumState ** t,
const uint8_t size, uint8_t stack);
93 #elif MPHELL_USE_MBEDTLS == 1
103 mbedtls_tmp_alloc(mbedtls_mpi * t,
const uint8_t size, uint8_t stack);
113 mbedtls_tmp_free(mbedtls_mpi * t,
const uint8_t size, uint8_t stack);
Declaration of error functions.
bool verify_stack_size(uint32_t prev_size, uint8_t stack)
Compare the current size and the previous size of stack nb stack.
void free_tmp_memory()
Free the stack for temporary elements.
uint32_t get_stack_size(uint8_t stack)
Get the current size of stack nb stack.
void alloc_tmp_memory()
Allocate the stack for temporary elements, its size is defined in mphell-define.h.