Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_mempool (Results 1 – 4 of 4) sorted by relevance

/optee_os/core/lib/libtomcrypt/
H A Dmpi_desc.c58 mbedtls_mpi_mempool = p; in init_mp_tomcrypt()
65 mbedtls_mpi *bn = mempool_alloc(mbedtls_mpi_mempool, sizeof(*bn)); in init()
83 mempool_free(mbedtls_mpi_mempool, a); in deinit()
497 *b = mempool_alloc(mbedtls_mpi_mempool, sizeof(mbedtls_mpi_uint)); in montgomery_setup()
563 mempool_free(mbedtls_mpi_mempool, a); in montgomery_deinit()
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dbignum.c43 void *mbedtls_mpi_mempool; variable
205 mpi_init(X, !!mbedtls_mpi_mempool /*use_mempool*/); in mbedtls_mpi_init_mempool()
220 mempool_free(mbedtls_mpi_mempool, X->p); in mbedtls_mpi_free()
244 p = mempool_alloc(mbedtls_mpi_mempool, nblimbs * ciL); in mbedtls_mpi_grow()
259 mempool_free(mbedtls_mpi_mempool, X->p); in mbedtls_mpi_grow()
305 p = mempool_alloc(mbedtls_mpi_mempool, i * ciL); in mbedtls_mpi_shrink()
319 mempool_free(mbedtls_mpi_mempool, X->p); in mbedtls_mpi_shrink()
1759 mbedtls_mpi_uint *T = mempool_calloc(mbedtls_mpi_mempool, T_limbs, in mbedtls_mpi_exp_mod_optionally_safe()
1835 mempool_free(mbedtls_mpi_mempool, T); in mbedtls_mpi_exp_mod_optionally_safe()
/optee_os/lib/libutee/
H A Dtee_api_arith_mpi.c47 mbedtls_mpi_mempool = mempool_alloc_pool(data, sizeof(data), NULL); in _TEE_MathAPI_Init()
48 if (!mbedtls_mpi_mempool) in _TEE_MathAPI_Init()
522 tmp = mempool_alloc(mbedtls_mpi_mempool, sizeof(uint32_t) * s); in TEE_BigIntMul()
533 mempool_free(mbedtls_mpi_mempool, tmp); in TEE_BigIntMul()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dbignum.h245 extern void *mbedtls_mpi_mempool;