/Linux-v5.10/include/linux/ |
D | mpi.h | 40 typedef struct gcry_mpi *MPI; typedef 46 MPI mpi_alloc(unsigned nlimbs); 47 void mpi_clear(MPI a); 48 void mpi_free(MPI a); 49 int mpi_resize(MPI a, unsigned nlimbs); 51 static inline MPI mpi_new(unsigned int nbits) in mpi_new() 56 MPI mpi_copy(MPI a); 57 MPI mpi_alloc_like(MPI a); 58 void mpi_snatch(MPI w, MPI u); 59 MPI mpi_set(MPI w, MPI u); [all …]
|
/Linux-v5.10/lib/mpi/ |
D | mpi-div.c | 17 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den); 18 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor); 20 void mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_r() 23 MPI temp_divisor = NULL; in mpi_fdiv_r() 43 void mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor) in mpi_fdiv_q() 45 MPI tmp = mpi_alloc(mpi_get_nlimbs(quot)); in mpi_fdiv_q() 50 void mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor) in mpi_fdiv_qr() 53 MPI temp_divisor = NULL; in mpi_fdiv_qr() 78 void mpi_tdiv_r(MPI rem, MPI num, MPI den) in mpi_tdiv_r() 83 void mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den) in mpi_tdiv_qr()
|
D | mpi-mod.c | 14 MPI m; /* The modulus - may not be modified. */ 17 MPI y; 18 MPI r1; /* Helper MPI. */ 19 MPI r2; /* Helper MPI. */ 20 MPI r3; /* Helper MPI allocated on demand. */ 25 void mpi_mod(MPI rem, MPI dividend, MPI divisor) in mpi_mod() 36 mpi_barrett_t mpi_barrett_init(MPI m, int copy) in mpi_barrett_init() 39 MPI tmp; in mpi_barrett_init() 93 void mpi_mod_barrett(MPI r, MPI x, mpi_barrett_t ctx) in mpi_mod_barrett() 95 MPI m = ctx->m; in mpi_mod_barrett() [all …]
|
D | mpiutil.c | 24 static MPI constants[MPI_NUMBER_OF_CONSTANTS]; 70 MPI mpi_const(enum gcry_mpi_constants no) in mpi_const() 87 MPI mpi_alloc(unsigned nlimbs) in mpi_alloc() 89 MPI a; in mpi_alloc() 132 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs) in mpi_assign_limb_space() 143 int mpi_resize(MPI a, unsigned nlimbs) in mpi_resize() 166 void mpi_clear(MPI a) in mpi_clear() 175 void mpi_free(MPI a) in mpi_free() 195 MPI mpi_copy(MPI a) in mpi_copy() 198 MPI b; in mpi_copy() [all …]
|
D | mpi-add.c | 20 void mpi_add_ui(MPI w, MPI u, unsigned long v) in mpi_add_ui() 67 void mpi_add(MPI w, MPI u, MPI v) in mpi_add() 134 void mpi_sub(MPI w, MPI u, MPI v) in mpi_sub() 136 MPI vv = mpi_copy(v); in mpi_sub() 143 void mpi_addm(MPI w, MPI u, MPI v, MPI m) in mpi_addm() 150 void mpi_subm(MPI w, MPI u, MPI v, MPI m) in mpi_subm()
|
D | mpi-cmp.c | 23 int mpi_cmp_ui(MPI u, unsigned long v) in mpi_cmp_ui() 44 static int do_mpi_cmp(MPI u, MPI v, int absmode) in do_mpi_cmp() 84 int mpi_cmp(MPI u, MPI v) in mpi_cmp() 90 int mpi_cmpabs(MPI u, MPI v) in mpi_cmpabs()
|
D | ec.c | 114 static void ec_mod(MPI w, struct mpi_ec_ctx *ec) in ec_mod() 122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm() 128 static void ec_subm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ec) in ec_subm() 136 static void ec_mulm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_mulm() 143 static void ec_mul2(MPI w, MPI u, struct mpi_ec_ctx *ctx) in ec_mul2() 149 static void ec_powm(MPI w, const MPI b, const MPI e, in ec_powm() 160 static void ec_pow2(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow2() 171 static void ec_pow3(MPI w, const MPI b, struct mpi_ec_ctx *ctx) in ec_pow3() 176 static void ec_invm(MPI x, MPI a, struct mpi_ec_ctx *ctx) in ec_invm() 199 static void ec_addm_25519(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) in ec_addm_25519() [all …]
|
D | mpi-mul.c | 16 void mpi_mul(MPI w, MPI u, MPI v) in mpi_mul() 86 void mpi_mulm(MPI w, MPI u, MPI v, MPI m) in mpi_mulm()
|
D | mpi-bit.c | 30 void mpi_normalize(MPI a) in mpi_normalize() 40 unsigned mpi_get_nbits(MPI a) in mpi_get_nbits() 62 int mpi_test_bit(MPI a, unsigned int n) in mpi_test_bit() 80 void mpi_set_bit(MPI a, unsigned int n) in mpi_set_bit() 99 void mpi_set_highbit(MPI a, unsigned int n) in mpi_set_highbit() 122 void mpi_clear_highbit(MPI a, unsigned int n) in mpi_clear_highbit() 140 void mpi_clear_bit(MPI a, unsigned int n) in mpi_clear_bit() 158 void mpi_rshift_limbs(MPI a, unsigned int count) in mpi_rshift_limbs() 178 void mpi_rshift(MPI x, MPI a, unsigned int n) in mpi_rshift() 250 void mpi_lshift_limbs(MPI a, unsigned int count) in mpi_lshift_limbs() [all …]
|
D | mpicoder.c | 36 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) in mpi_read_raw_data() 42 MPI val = NULL; in mpi_read_raw_data() 82 MPI mpi_read_from_buffer(const void *xbuffer, unsigned *ret_nread) in mpi_read_from_buffer() 86 MPI val; in mpi_read_from_buffer() 116 int mpi_fromstr(MPI val, const char *str) in mpi_fromstr() 202 MPI mpi_scanval(const char *string) in mpi_scanval() 204 MPI a; in mpi_scanval() 219 static int count_lzeros(MPI a) in count_lzeros() 250 int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, in mpi_read_buffer() 310 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) in mpi_get_buffer() [all …]
|
D | mpi-inv.c | 27 int mpi_invm(MPI x, MPI a, MPI n) in mpi_invm() 33 MPI u, v, u1, u2 = NULL, u3, v1, v2 = NULL, v3, t1, t2 = NULL, t3; in mpi_invm()
|
D | mpi-sub-ui.c | 37 int mpi_sub_ui(MPI w, MPI u, unsigned long vval) in mpi_sub_ui()
|
D | mpi-pow.c | 24 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm()
|
D | mpi-internal.h | 144 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs);
|
/Linux-v5.10/crypto/ |
D | dh.c | 16 MPI p; /* Value is guaranteed to be set. */ 17 MPI q; /* Value is optional. */ 18 MPI g; /* Value is guaranteed to be set. */ 19 MPI xa; /* Value is guaranteed to be set. */ 37 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val() 110 static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) in dh_is_pubkey_valid() 126 MPI val = mpi_alloc(0); in dh_is_pubkey_valid() 154 MPI base, val = mpi_alloc(0); in dh_compute_value() 186 MPI pone; in dh_compute_value()
|
D | sm2.c | 66 MPI p, a, b; in sm2_ec_ctx_init() 67 MPI x, y; in sm2_ec_ctx_init() 131 static int sm2_ecc_os2ec(MPI_POINT result, MPI value) in sm2_ecc_os2ec() 137 MPI x, y; in sm2_ecc_os2ec() 187 MPI sig_r; 188 MPI sig_s; 222 MPI m, unsigned int pbytes) in sm2_z_digest_update() 250 MPI x, y; in sm2_z_digest_update_point() 301 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify() 305 MPI t = NULL; in _sm2_verify() [all …]
|
D | rsa.c | 16 MPI n; 17 MPI e; 18 MPI d; 25 static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m) in _rsa_enc() 39 static int _rsa_dec(const struct rsa_mpi_key *key, MPI m, MPI c) in _rsa_dec() 58 MPI m, c = mpi_alloc(0); in rsa_enc() 97 MPI c, m = mpi_alloc(0); in rsa_dec()
|
/Linux-v5.10/Documentation/infiniband/ |
D | tag_matching.rst | 5 The MPI standard defines a set of rules, known as tag-matching, for matching 28 To keep MPI library memory footprint down, MPI implementations typically use 46 to the MPI receive routines in the posted receive list and posts send messages 47 using the MPI send routines. The head of the posted receive list may be 54 specified receive buffer. This allows overlapping receive-side MPI tag 64 Software is expected to shadow this list, to help with processing MPI cancel
|
/Linux-v5.10/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-v5.10/Documentation/security/ |
D | digsig.rst | 23 GnuPG multi-precision integers (MPI) library. The kernel port provides
|
/Linux-v5.10/lib/ |
D | digsig.c | 78 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa()
|
D | Kconfig | 571 Implementation is done using GnuPG MPI library
|
/Linux-v5.10/Documentation/crypto/ |
D | asymmetric-keys.rst | 138 MPI mpi[2];
|
/Linux-v5.10/Documentation/filesystems/ |
D | orangefs.rst | 23 * Direct MPI support
|
/Linux-v5.10/drivers/usb/serial/ |
D | Kconfig | 70 - Siemens USB/MPI adapter.
|