Searched refs:mpi (Results 1 – 5 of 5) sorted by relevance
31 void* mpi; in radix_to_bin() local37 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()
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, 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 in get_mpi() 176 mbedtls_mpi mpi; TEE_BigIntConvertToOctetString() local 208 mbedtls_mpi mpi; TEE_BigIntConvertFromS32() local 221 mbedtls_mpi mpi; TEE_BigIntConvertToS32() local 264 mbedtls_mpi mpi; TEE_BigIntCmpS32() local 326 mbedtls_mpi mpi; TEE_BigIntGetBit() local 340 mbedtls_mpi mpi; TEE_BigIntGetBitCount() local 354 mbedtls_mpi mpi = { }; TEE_BigIntSetBit() local [all...]
34 int crypt_mp_init(const char* mpi) in crypt_mp_init() argument36 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()
114 int crypt_mp_init(const char* mpi);
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 is5377 * Missing MPI_CHK calls added around unguarded mpi calls (found by5831 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel5960 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel