Searched refs:mpi (Results 1 – 6 of 6) 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()
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()
63 size_t n = mpi->n; 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()158 mbedtls_mpi mpi; in TEE_BigIntConvertToOctetString() local178 mbedtls_mpi mpi; in TEE_BigIntConvertFromS32() local191 mbedtls_mpi mpi; in TEE_BigIntConvertToS32() local201 if (mpi.s > 0) { in TEE_BigIntConvertToS32()234 mbedtls_mpi mpi; in TEE_BigIntCmpS32() local237 get_mpi(&mpi, op); in TEE_BigIntCmpS32()290 mbedtls_mpi mpi; in TEE_BigIntGetBit() local[all …]
114 int crypt_mp_init(const char* mpi);
2048 #define mpi mbedtls_mpi macro
358 those always built an mpi object with at least one limb.412 function and some mpi operations.3087 * mpi_size() and mpi_msb() would segfault when called on an mpi that is3488 * Missing MPI_CHK calls added around unguarded mpi calls (found by3942 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel4071 * Allow R and A to point to same mpi in mpi_div_mpi (found by Manuel
Completed in 25 milliseconds