MPI 15 crypto/dh.c MPI p; /* Value is guaranteed to be set. */ MPI 16 crypto/dh.c MPI q; /* Value is optional. */ MPI 17 crypto/dh.c MPI g; /* Value is guaranteed to be set. */ MPI 18 crypto/dh.c MPI xa; /* Value is guaranteed to be set. */ MPI 36 crypto/dh.c static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) MPI 109 crypto/dh.c static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) MPI 125 crypto/dh.c MPI val = mpi_alloc(0); MPI 153 crypto/dh.c MPI base, val = mpi_alloc(0); MPI 16 crypto/rsa.c MPI n; MPI 17 crypto/rsa.c MPI e; MPI 18 crypto/rsa.c MPI d; MPI 25 crypto/rsa.c static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m) MPI 39 crypto/rsa.c static int _rsa_dec(const struct rsa_mpi_key *key, MPI m, MPI c) MPI 58 crypto/rsa.c MPI m, c = mpi_alloc(0); MPI 97 crypto/rsa.c MPI c, m = mpi_alloc(0); MPI 45 include/linux/mpi.h MPI mpi_alloc(unsigned nlimbs); MPI 46 include/linux/mpi.h void mpi_free(MPI a); MPI 47 include/linux/mpi.h int mpi_resize(MPI a, unsigned nlimbs); MPI 50 include/linux/mpi.h MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes); MPI 51 include/linux/mpi.h MPI mpi_read_from_buffer(const void *buffer, unsigned *ret_nread); MPI 52 include/linux/mpi.h MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int len); MPI 53 include/linux/mpi.h void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign); MPI 54 include/linux/mpi.h int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, MPI 56 include/linux/mpi.h int mpi_write_to_sgl(MPI a, struct scatterlist *sg, unsigned nbytes, MPI 60 include/linux/mpi.h int mpi_powm(MPI res, MPI base, MPI exp, MPI mod); MPI 63 include/linux/mpi.h int mpi_cmp_ui(MPI u, ulong v); MPI 64 include/linux/mpi.h int mpi_cmp(MPI u, MPI v); MPI 67 include/linux/mpi.h void mpi_normalize(MPI a); MPI 68 include/linux/mpi.h unsigned mpi_get_nbits(MPI a); MPI 79 include/linux/mpi.h static inline unsigned int mpi_get_size(MPI a) MPI 78 lib/digsig.c MPI in = NULL, res = NULL, pkey[2]; MPI 30 lib/mpi/mpi-bit.c void mpi_normalize(MPI a) MPI 39 lib/mpi/mpi-bit.c unsigned mpi_get_nbits(MPI a) MPI 23 lib/mpi/mpi-cmp.c int mpi_cmp_ui(MPI u, unsigned long v) MPI 44 lib/mpi/mpi-cmp.c int mpi_cmp(MPI u, MPI v) MPI 98 lib/mpi/mpi-internal.h void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs); MPI 24 lib/mpi/mpi-pow.c int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) MPI 35 lib/mpi/mpicoder.c MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) MPI 41 lib/mpi/mpicoder.c MPI val = NULL; MPI 81 lib/mpi/mpicoder.c MPI mpi_read_from_buffer(const void *xbuffer, unsigned *ret_nread) MPI 85 lib/mpi/mpicoder.c MPI val; MPI 112 lib/mpi/mpicoder.c static int count_lzeros(MPI a) MPI 143 lib/mpi/mpicoder.c int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, MPI 203 lib/mpi/mpicoder.c void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) MPI 247 lib/mpi/mpicoder.c int mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned nbytes, MPI 330 lib/mpi/mpicoder.c MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int nbytes) MPI 338 lib/mpi/mpicoder.c MPI val = NULL; MPI 30 lib/mpi/mpiutil.c MPI mpi_alloc(unsigned nlimbs) MPI 32 lib/mpi/mpiutil.c MPI a; MPI 75 lib/mpi/mpiutil.c void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs) MPI 86 lib/mpi/mpiutil.c int mpi_resize(MPI a, unsigned nlimbs) MPI 109 lib/mpi/mpiutil.c void mpi_free(MPI a)