/linux-master/include/linux/ |
H A D | mpi.h | 40 typedef struct gcry_mpi *MPI; typedef in typeref:struct:gcry_mpi 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) 56 MPI mpi_copy(MPI a); 57 MPI mpi_alloc_like(MPI [all...] |
/linux-master/lib/crypto/mpi/ |
H A 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 dividen [all...] |
H A D | mpi-cmp.c | 1 /* mpi-cmp.c - MPI functions 23 int mpi_cmp_ui(MPI u, unsigned long v) 48 static int do_mpi_cmp(MPI u, MPI v, int absmode) 88 int mpi_cmp(MPI u, MPI v) 94 int mpi_cmpabs(MPI u, MPI v)
|
H A D | mpi-div.c | 1 /* mpi-div.c - MPI functions 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 re [all...] |
H A D | mpi-add.c | 1 /* mpi-add.c - MPI functions 20 void mpi_add_ui(MPI w, MPI u, unsigned long v) 67 void mpi_add(MPI w, MPI u, MPI v) 134 void mpi_sub(MPI w, MPI u, MPI v) 136 MPI v [all...] |
H A D | mpiutil.c | 1 /* mpiutil.ac - Utility functions for MPI 24 static MPI constants[MPI_NUMBER_OF_CONSTANTS]; 26 /* Initialize the MPI subsystem. This is called early and allows to 55 pr_err("MPI: invalid mpi_const selector %d\n", idx); 66 /* Return a constant MPI descripbed by NO which is one of the 70 MPI mpi_const(enum gcry_mpi_constants no) 73 pr_err("MPI: invalid mpi_const selector %d\n", no); 75 pr_err("MPI: MPI subsystem not initialized\n"); 87 MPI mpi_allo [all...] |
H A D | mpi-mul.c | 1 /* mpi-mul.c - MPI functions 16 void mpi_mul(MPI w, MPI u, MPI v) 87 void mpi_mulm(MPI w, MPI u, MPI v, MPI m)
|
H A D | mpi-bit.c | 1 /* mpi-bit.c - MPI bit level functions 30 void mpi_normalize(MPI a) 40 unsigned mpi_get_nbits(MPI a) 62 int mpi_test_bit(MPI a, unsigned int n) 80 void mpi_set_bit(MPI a, unsigned int n) 99 void mpi_set_highbit(MPI a, unsigned int n) 122 void mpi_clear_highbit(MPI a, unsigned int n) 140 void mpi_clear_bit(MPI a, unsigned int n) 156 * This is used only within the MPI library 158 void mpi_rshift_limbs(MPI [all...] |
H A D | ec.c | 114 static void ec_mod(MPI w, struct mpi_ec_ctx *ec) 122 static void ec_addm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ctx) 128 static void ec_subm(MPI w, MPI u, MPI v, struct mpi_ec_ctx *ec) 136 static void ec_mulm(MPI w, MPI u, MPI [all...] |
H A D | mpi-sub-ui.c | 2 /* mpi-sub-ui.c - Subtract an unsigned integer from an MPI. 37 int mpi_sub_ui(MPI w, MPI u, unsigned long vval)
|
H A D | mpi-inv.c | 1 /* mpi-inv.c - MPI functions 27 int mpi_invm(MPI x, MPI a, MPI n) 33 MPI u, v, u1, u2 = NULL, u3, v1, v2 = NULL, v3, t1, t2 = NULL, t3;
|
H A D | mpicoder.c | 36 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) 42 MPI val = NULL; 51 pr_info("MPI: mpi too large (%u bits)\n", nbits); 82 MPI mpi_read_from_buffer(const void *xbuffer, unsigned *ret_nread) 86 MPI val; 93 pr_info("MPI: mpi too large (%u bits)\n", nbits); 99 pr_info("MPI: mpi larger than buffer nbytes=%u ret_nread=%u\n", 116 int mpi_fromstr(MPI val, const char *str) 202 MPI mpi_scanval(const char *string) 204 MPI [all...] |
H A D | mpi-pow.c | 2 /* mpi-pow.c - MPI functions 24 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod)
|
H A D | mpi-internal.h | 144 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs);
|
/linux-master/crypto/ |
H A D | rsa.c | 17 MPI n; 18 MPI e; 19 MPI d; 20 MPI p; 21 MPI q; 22 MPI dp; 23 MPI dq; 24 MPI qinv; 27 static int rsa_check_payload(MPI x, MPI [all...] |
H A D | sm2.c | 72 MPI p, a, b; 73 MPI x, y; 139 static int sm2_ecc_os2ec(MPI_POINT result, MPI value) 144 MPI x, y; 188 MPI sig_r; 189 MPI sig_s; 223 MPI m, unsigned int pbytes) 253 MPI x, y; 326 static int _sm2_verify(struct mpi_ec_ctx *ec, MPI hash, MPI sig_ [all...] |
H A D | dh.c | 17 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) 77 /* Free the old MPI key if any */ 107 static int dh_is_pubkey_valid(struct dh_ctx *ctx, MPI y) 109 MPI val, q; 171 MPI base, val = mpi_alloc(0); 203 MPI pon [all...] |
/linux-master/lib/ |
H A D | digsig.c | 78 MPI in = NULL, res = NULL, pkey[2];
|
/linux-master/drivers/crypto/virtio/ |
H A D | virtio_crypto_akcipher_algs.c | 24 MPI n;
|