Home
last modified time | relevance | path

Searched refs:MPI (Results 1 – 25 of 28) sorted by relevance

12

/linux-5.19.10/include/linux/
Dmpi.h40 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-5.19.10/lib/mpi/
Dmpi-div.c17 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()
Dmpi-mod.c14 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()
95 void mpi_mod_barrett(MPI r, MPI x, mpi_barrett_t ctx) in mpi_mod_barrett()
97 MPI m = ctx->m; in mpi_mod_barrett()
[all …]
Dmpiutil.c24 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 …]
Dmpi-add.c20 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()
Dec.c114 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 …]
Dmpi-cmp.c23 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()
Dmpi-mul.c16 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()
Dmpi-bit.c30 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()
251 void mpi_lshift_limbs(MPI a, unsigned int count) in mpi_lshift_limbs()
[all …]
Dmpicoder.c36 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 …]
Dmpi-inv.c27 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()
Dmpi-sub-ui.c37 int mpi_sub_ui(MPI w, MPI u, unsigned long vval) in mpi_sub_ui()
Dmpi-pow.c24 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm()
Dmpi-internal.h144 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs);
/linux-5.19.10/Documentation/translations/zh_CN/infiniband/
Dtag_matching.rst20 MPI标准定义了一套规则,称为标签匹配,用于将源发送操作与目的接收匹配。以下参数必
37 为了减少MPI库的内存占用,MPI实现通常使用两种不同的协议来实现这一目的:
50 的接收列表中的MPI接收例程发布接收缓冲区,并使用MPI发送例程发布发送消息。发布的
55 如果合适的话,将数据传送到指定的接收缓冲区。这允许接收方MPI标签匹配与计算重叠。
61 软件要对这个列表进行跟踪,以帮助处理MPI取消操作。此外,由于硬件和软件在标签匹
/linux-5.19.10/crypto/
Dsm2.c66 MPI p, a, b; in sm2_ec_ctx_init()
67 MPI x, y; in sm2_ec_ctx_init()
133 static int sm2_ecc_os2ec(MPI_POINT result, MPI value) in sm2_ecc_os2ec()
138 MPI x, y; in sm2_ecc_os2ec()
182 MPI sig_r;
183 MPI sig_s;
217 MPI m, unsigned int pbytes) in sm2_z_digest_update()
245 MPI x, y; in sm2_z_digest_update_point()
296 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_r, MPI sig_s) in _sm2_verify()
300 MPI t = NULL; in _sm2_verify()
[all …]
Drsa.c17 MPI n;
18 MPI e;
19 MPI d;
26 static int _rsa_enc(const struct rsa_mpi_key *key, MPI c, MPI m) in _rsa_enc()
40 static int _rsa_dec(const struct rsa_mpi_key *key, MPI m, MPI c) in _rsa_dec()
59 MPI m, c = mpi_alloc(0); in rsa_enc()
98 MPI c, m = mpi_alloc(0); in rsa_dec()
Ddh.c17 MPI p; /* Value is guaranteed to be set. */
18 MPI g; /* Value is guaranteed to be set. */
19 MPI xa; /* Value is guaranteed to be set. */
36 static int _compute_val(const struct dh_ctx *ctx, MPI base, MPI val) in _compute_val()
107 static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) in dh_is_pubkey_valid()
129 MPI val, q; in dh_is_pubkey_valid()
170 MPI base, val = mpi_alloc(0); in dh_compute_value()
202 MPI pone; in dh_compute_value()
/linux-5.19.10/Documentation/infiniband/
Dtag_matching.rst5 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-5.19.10/drivers/message/fusion/lsi/
Dmpi_history.txt3 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-5.19.10/Documentation/networking/device_drivers/qlogic/
Dqlge.rst115 When the module parameter qlge_force_coredump is set to be true, the MPI
/linux-5.19.10/lib/
Ddigsig.c78 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa()
DKconfig601 Implementation is done using GnuPG MPI library
/linux-5.19.10/Documentation/security/
Ddigsig.rst23 GnuPG multi-precision integers (MPI) library. The kernel port provides
/linux-5.19.10/drivers/crypto/virtio/
Dvirtio_crypto_akcipher_algs.c23 MPI n;

12