Symbol: MPI
crypto/dh.c
107
static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y)
crypto/dh.c
109
MPI val, q;
crypto/dh.c
17
MPI p; /* Value is guaranteed to be set. */
crypto/dh.c
171
MPI base, val = mpi_alloc(0);
crypto/dh.c
18
MPI g; /* Value is guaranteed to be set. */
crypto/dh.c
19
MPI xa; /* Value is guaranteed to be set. */
crypto/dh.c
203
MPI pone;
crypto/dh.c
36
static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val)
crypto/rsa.c
124
MPI m, c = mpi_alloc(0);
crypto/rsa.c
163
MPI c, m = mpi_alloc(0);
crypto/rsa.c
17
MPI n;
crypto/rsa.c
18
MPI e;
crypto/rsa.c
19
MPI d;
crypto/rsa.c
20
MPI p;
crypto/rsa.c
21
MPI q;
crypto/rsa.c
22
MPI dp;
crypto/rsa.c
23
MPI dq;
crypto/rsa.c
235
static int rsa_check_exponent_fips(MPI e)
crypto/rsa.c
237
MPI e_max = NULL;
crypto/rsa.c
24
MPI qinv;
crypto/rsa.c
27
static int rsa_check_payload(MPI x, MPI n)
crypto/rsa.c
29
MPI n1;
crypto/rsa.c
51
static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m)
crypto/rsa.c
72
static int _rsa_dec_crt(const struct rsa_mpi_key *key, MPI m_or_m1_or_h, MPI c)
crypto/rsa.c
74
MPI m2, m12_or_qh;
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c
353
MPI n;
include/linux/mpi.h
104
static inline unsigned int mpi_get_size(MPI a)
include/linux/mpi.h
45
MPI mpi_alloc(unsigned nlimbs);
include/linux/mpi.h
46
void mpi_free(MPI a);
include/linux/mpi.h
47
int mpi_resize(MPI a, unsigned nlimbs);
include/linux/mpi.h
49
MPI mpi_copy(MPI a);
include/linux/mpi.h
52
MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes);
include/linux/mpi.h
53
MPI mpi_read_from_buffer(const void *buffer, unsigned *ret_nread);
include/linux/mpi.h
54
MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int len);
include/linux/mpi.h
55
void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign);
include/linux/mpi.h
56
int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes,
include/linux/mpi.h
58
int mpi_write_to_sgl(MPI a, struct scatterlist *sg, unsigned nbytes,
include/linux/mpi.h
62
int mpi_mod(MPI rem, MPI dividend, MPI divisor);
include/linux/mpi.h
65
int mpi_powm(MPI res, MPI base, MPI exp, MPI mod);
include/linux/mpi.h
68
int mpi_cmp_ui(MPI u, ulong v);
include/linux/mpi.h
69
int mpi_cmp(MPI u, MPI v);
include/linux/mpi.h
72
int mpi_sub_ui(MPI w, MPI u, unsigned long vval);
include/linux/mpi.h
75
void mpi_normalize(MPI a);
include/linux/mpi.h
76
unsigned mpi_get_nbits(MPI a);
include/linux/mpi.h
77
int mpi_test_bit(MPI a, unsigned int n);
include/linux/mpi.h
78
int mpi_set_bit(MPI a, unsigned int n);
include/linux/mpi.h
79
int mpi_rshift(MPI x, MPI a, unsigned int n);
include/linux/mpi.h
82
int mpi_add(MPI w, MPI u, MPI v);
include/linux/mpi.h
83
int mpi_sub(MPI w, MPI u, MPI v);
include/linux/mpi.h
84
int mpi_addm(MPI w, MPI u, MPI v, MPI m);
include/linux/mpi.h
85
int mpi_subm(MPI w, MPI u, MPI v, MPI m);
include/linux/mpi.h
88
int mpi_mul(MPI w, MPI u, MPI v);
include/linux/mpi.h
89
int mpi_mulm(MPI w, MPI u, MPI v, MPI m);
include/linux/mpi.h
92
int mpi_tdiv_r(MPI rem, MPI num, MPI den);
include/linux/mpi.h
93
int mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor);
lib/crypto/mpi/mpi-add.c
108
int mpi_addm(MPI w, MPI u, MPI v, MPI m)
lib/crypto/mpi/mpi-add.c
115
int mpi_subm(MPI w, MPI u, MPI v, MPI m)
lib/crypto/mpi/mpi-add.c
18
int mpi_add(MPI w, MPI u, MPI v)
lib/crypto/mpi/mpi-add.c
91
int mpi_sub(MPI w, MPI u, MPI v)
lib/crypto/mpi/mpi-add.c
94
MPI vv;
lib/crypto/mpi/mpi-bit.c
105
int mpi_rshift(MPI x, MPI a, unsigned int n)
lib/crypto/mpi/mpi-bit.c
32
void mpi_normalize(MPI a)
lib/crypto/mpi/mpi-bit.c
41
unsigned mpi_get_nbits(MPI a)
lib/crypto/mpi/mpi-bit.c
63
int mpi_test_bit(MPI a, unsigned int n)
lib/crypto/mpi/mpi-bit.c
81
int mpi_set_bit(MPI a, unsigned int n)
lib/crypto/mpi/mpi-cmp.c
25
int mpi_cmp_ui(MPI u, unsigned long v)
lib/crypto/mpi/mpi-cmp.c
50
int mpi_cmp(MPI u, MPI v)
lib/crypto/mpi/mpi-div.c
17
int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den);
lib/crypto/mpi/mpi-div.c
19
int mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor)
lib/crypto/mpi/mpi-div.c
22
MPI temp_divisor = NULL;
lib/crypto/mpi/mpi-div.c
56
int mpi_tdiv_r(MPI rem, MPI num, MPI den)
lib/crypto/mpi/mpi-div.c
61
int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den)
lib/crypto/mpi/mpi-internal.h
137
void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs);
lib/crypto/mpi/mpi-internal.h
55
static inline int RESIZE_IF_NEEDED(MPI a, unsigned b)
lib/crypto/mpi/mpi-mod.c
10
int mpi_mod(MPI rem, MPI dividend, MPI divisor)
lib/crypto/mpi/mpi-mul.c
106
int mpi_mulm(MPI w, MPI u, MPI v, MPI m)
lib/crypto/mpi/mpi-mul.c
18
int mpi_mul(MPI w, MPI u, MPI v)
lib/crypto/mpi/mpi-pow.c
26
int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)
lib/crypto/mpi/mpi-sub-ui.c
39
int mpi_sub_ui(MPI w, MPI u, unsigned long vval)
lib/crypto/mpi/mpicoder.c
113
static int count_lzeros(MPI a)
lib/crypto/mpi/mpicoder.c
144
int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes,
lib/crypto/mpi/mpicoder.c
204
void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign)
lib/crypto/mpi/mpicoder.c
248
int mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned nbytes,
lib/crypto/mpi/mpicoder.c
331
MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int nbytes)
lib/crypto/mpi/mpicoder.c
339
MPI val = NULL;
lib/crypto/mpi/mpicoder.c
36
MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes)
lib/crypto/mpi/mpicoder.c
42
MPI val = NULL;
lib/crypto/mpi/mpicoder.c
82
MPI mpi_read_from_buffer(const void *xbuffer, unsigned *ret_nread)
lib/crypto/mpi/mpicoder.c
86
MPI val;
lib/crypto/mpi/mpiutil.c
111
void mpi_free(MPI a)
lib/crypto/mpi/mpiutil.c
131
MPI mpi_copy(MPI a)
lib/crypto/mpi/mpiutil.c
134
MPI b;
lib/crypto/mpi/mpiutil.c
32
MPI mpi_alloc(unsigned nlimbs)
lib/crypto/mpi/mpiutil.c
34
MPI a;
lib/crypto/mpi/mpiutil.c
77
void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs)
lib/crypto/mpi/mpiutil.c
88
int mpi_resize(MPI a, unsigned nlimbs)
lib/digsig.c
74
MPI in = NULL, res = NULL, pkey[2];