Searched refs:mpi (Results 1 – 5 of 5) sorted by relevance
| /optee_os/core/lib/libtomcrypt/src/math/ |
| H A D | radix_to_bin.c | 31 void* mpi; in radix_to_bin() local 37 if ((err = mp_init(&mpi)) != CRYPT_OK) return err; in radix_to_bin() 38 if ((err = mp_read_radix(mpi, in, radix)) != CRYPT_OK) goto LBL_ERR; in radix_to_bin() 40 if ((l = mp_unsigned_bin_size(mpi)) > *len) { in radix_to_bin() 47 if ((err = mp_to_unsigned_bin(mpi, out)) != CRYPT_OK) goto LBL_ERR; in radix_to_bin() 50 mp_clear(mpi); in radix_to_bin()
|
| /optee_os/lib/libutee/ |
| H A D | tee_api_arith_mpi.c | 60 static TEE_Result copy_mpi_to_bigint(mbedtls_mpi *mpi, TEE_BigInt *bigInt) in copy_mpi_to_bigint() argument 63 size_t n = mpi->n; in copy_mpi_to_bigint() 66 while (n && !mpi->p[n - 1]) in copy_mpi_to_bigint() 73 hdr->sign = mpi->s; in copy_mpi_to_bigint() 74 memcpy(hdr + 1, mpi->p, mpi->n * sizeof(mbedtls_mpi_uint)); in copy_mpi_to_bigint() 85 static void get_mpi(mbedtls_mpi *mpi, const TEE_BigInt *bigInt) in get_mpi() argument 101 mbedtls_mpi_init_mempool(mpi); in get_mpi() 112 MPI_CHECK(mbedtls_mpi_grow(mpi, n)); in get_mpi() 113 mpi->s = hdr->sign; in get_mpi() 114 memcpy(mpi->p, p, n * sizeof(mbedtls_mpi_uint)); in get_mpi() [all …]
|
| /optee_os/core/lib/libtomcrypt/src/misc/crypt/ |
| H A D | crypt_inits.c | 34 int crypt_mp_init(const char* mpi) in crypt_mp_init() argument 36 if (mpi == NULL) return CRYPT_ERROR; in crypt_mp_init() 37 switch (mpi[0]) { in crypt_mp_init() 76 printf("Unknown/Invalid MPI provider: %s\n", mpi); in crypt_mp_init()
|
| /optee_os/core/lib/libtomcrypt/src/headers/ |
| H A D | tomcrypt_misc.h | 114 int crypt_mp_init(const char* mpi);
|
| /optee_os/lib/libmbedtls/mbedtls/ |
| H A D | ChangeLog | 2240 those always built an mpi object with at least one limb. 2286 function and some mpi operations. 4976 * mpi_size() and mpi_msb() would segfault when called on an mpi that is 5377 * Missing MPI_CHK calls added around unguarded mpi calls (found by 5831 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel 5960 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
|