Searched refs:MPI (Results 1 – 12 of 12) sorted by relevance
/linux-4.19.296/include/linux/ |
D | mpi.h | 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, [all …]
|
/linux-4.19.296/crypto/ |
D | rsa.c | 20 MPI n; 21 MPI e; 22 MPI d; 29 static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m) in _rsa_enc() 43 static int _rsa_dec(const struct rsa_mpi_key *key, MPI m, MPI c) in _rsa_dec() 57 static int _rsa_sign(const struct rsa_mpi_key *key, MPI s, MPI m) in _rsa_sign() 71 static int _rsa_verify(const struct rsa_mpi_key *key, MPI m, MPI s) in _rsa_verify() 90 MPI m, c = mpi_alloc(0); in rsa_enc() 129 MPI c, m = mpi_alloc(0); in rsa_dec() 167 MPI m, s = mpi_alloc(0); in rsa_sign() [all …]
|
D | dh.c | 19 MPI p; /* Value is guaranteed to be set. */ 20 MPI q; /* Value is optional. */ 21 MPI g; /* Value is guaranteed to be set. */ 22 MPI xa; /* Value is guaranteed to be set. */ 40 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val() 113 static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) in dh_is_pubkey_valid() 129 MPI val = mpi_alloc(0); in dh_is_pubkey_valid() 157 MPI base, val = mpi_alloc(0); in dh_compute_value()
|
/linux-4.19.296/lib/mpi/ |
D | mpiutil.c | 30 MPI mpi_alloc(unsigned nlimbs) in mpi_alloc() 32 MPI a; in mpi_alloc() 75 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs) in mpi_assign_limb_space() 86 int mpi_resize(MPI a, unsigned nlimbs) in mpi_resize() 109 void mpi_free(MPI a) in mpi_free()
|
D | mpicoder.c | 35 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) in mpi_read_raw_data() 41 MPI val = NULL; in mpi_read_raw_data() 81 MPI mpi_read_from_buffer(const void *xbuffer, unsigned *ret_nread) in mpi_read_from_buffer() 85 MPI val; in mpi_read_from_buffer() 112 static int count_lzeros(MPI a) in count_lzeros() 143 int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, in mpi_read_buffer() 203 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) in mpi_get_buffer() 247 int mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned nbytes, in mpi_write_to_sgl() 330 MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int nbytes) in mpi_read_raw_from_sgl() 338 MPI val = NULL; in mpi_read_raw_from_sgl()
|
D | mpi-cmp.c | 23 int mpi_cmp_ui(MPI u, unsigned long v) in mpi_cmp_ui() 48 int mpi_cmp(MPI u, MPI v) in mpi_cmp()
|
D | mpi-bit.c | 30 void mpi_normalize(MPI a) in mpi_normalize() 39 unsigned mpi_get_nbits(MPI a) in mpi_get_nbits()
|
D | mpi-pow.c | 37 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm()
|
D | mpi-internal.h | 111 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs);
|
/linux-4.19.296/drivers/message/fusion/lsi/ |
D | mpi_history.txt | 3 MPI Header File Change History 77 * 05-11-04 01.03.01 Bumped MPI_VERSION_MINOR for MPI v1.3. 151 * 05-11-04 01.03.01 Original release for MPI v1.3. 244 * 12-04-00 01.01.03 Config page changes to match MPI rev 1.00.01. 269 * defines to make them compatible to MPI version 1.0. 549 * 05-11-04 01.03.01 Original release for MPI v1.3. 593 * of MPI. 605 * 05-11-04 01.03.01 Original release for MPI v1.3. 626 * 01-09-01 01.01.03 Modified some of the new flags to have an MPI prefix 644 * 05-11-04 01.03.01 Original release for MPI v1.3. [all …]
|
/linux-4.19.296/lib/ |
D | digsig.c | 81 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa()
|
D | Kconfig | 540 Implementation is done using GnuPG MPI library
|