Lines Matching refs:MPI
53 typedef struct gcry_mpi *MPI; typedef
58 MPI mpi_alloc(unsigned nlimbs);
59 void mpi_free(MPI a);
60 int mpi_resize(MPI a, unsigned nlimbs);
63 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes);
64 MPI mpi_read_from_buffer(const void *buffer, unsigned *ret_nread);
65 MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int len);
66 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign);
67 int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes,
69 int mpi_write_to_sgl(MPI a, struct scatterlist *sg, unsigned nbytes,
73 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod);
76 int mpi_cmp_ui(MPI u, ulong v);
77 int mpi_cmp(MPI u, MPI v);
80 void mpi_normalize(MPI a);
81 unsigned mpi_get_nbits(MPI a);
92 static inline unsigned int mpi_get_size(MPI a) in mpi_get_size()