Home
last modified time | relevance | path

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

/linux-4.4.14/include/linux/
Dmpi.h53 typedef struct gcry_mpi *MPI; typedef
59 MPI mpi_alloc(unsigned nlimbs);
60 MPI mpi_alloc_secure(unsigned nlimbs);
61 MPI mpi_alloc_like(MPI a);
62 void mpi_free(MPI a);
63 int mpi_resize(MPI a, unsigned nlimbs);
64 int mpi_copy(MPI *copy, const MPI a);
65 void mpi_clear(MPI a);
66 int mpi_set(MPI w, MPI u);
67 int mpi_set_ui(MPI w, ulong u);
[all …]
/linux-4.4.14/include/crypto/
Dpublic_key.h71 MPI mpi[5];
73 MPI p; /* DSA prime */
74 MPI q; /* DSA group order */
75 MPI g; /* DSA group generator */
76 MPI y; /* DSA public-key value = g^x mod p */
77 MPI x; /* DSA secret exponent (if present) */
80 MPI n; /* RSA public modulus */
81 MPI e; /* RSA public encryption exponent */
82 MPI d; /* RSA secret encryption exponent (if present) */
83 MPI p; /* RSA secret prime (if present) */
[all …]
/linux-4.4.14/crypto/
Drsa.c21 static int _rsa_enc(const struct rsa_key *key, MPI c, MPI m) in _rsa_enc()
35 static int _rsa_dec(const struct rsa_key *key, MPI m, MPI c) in _rsa_dec()
49 static int _rsa_sign(const struct rsa_key *key, MPI s, MPI m) in _rsa_sign()
63 static int _rsa_verify(const struct rsa_key *key, MPI m, MPI s) in _rsa_verify()
82 MPI m, c = mpi_alloc(0); in rsa_enc()
127 MPI c, m = mpi_alloc(0); in rsa_dec()
171 MPI m, s = mpi_alloc(0); in rsa_sign()
216 MPI s, m = mpi_alloc(0); in rsa_verify()
/linux-4.4.14/lib/mpi/
Dmpiutil.c30 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()
Dmpicoder.c32 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) in mpi_read_raw_data()
38 MPI val = NULL; in mpi_read_raw_data()
80 MPI mpi_read_from_buffer(const void *xbuffer, unsigned *ret_nread) in mpi_read_from_buffer()
86 MPI val = NULL; in mpi_read_from_buffer()
131 static int count_lzeros(MPI a) in count_lzeros()
160 int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, in mpi_read_buffer()
228 void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) in mpi_get_buffer()
260 int mpi_set_buffer(MPI a, const void *xbuffer, unsigned nbytes, int sign) in mpi_set_buffer()
350 int mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned *nbytes, in mpi_write_to_sgl()
437 MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int len) in mpi_read_raw_from_sgl()
[all …]
Dmpi-cmp.c23 int mpi_cmp_ui(MPI u, unsigned long v) in mpi_cmp_ui()
44 int mpi_cmp(MPI u, MPI v) in mpi_cmp()
Dmpi-bit.c30 void mpi_normalize(MPI a) in mpi_normalize()
39 unsigned mpi_get_nbits(MPI a) in mpi_get_nbits()
Dmpi-internal.h68 static inline int RESIZE_IF_NEEDED(MPI a, unsigned b) in RESIZE_IF_NEEDED()
164 void mpi_assign_limb_space(MPI a, mpi_ptr_t ap, unsigned nlimbs);
167 void mpi_rshift_limbs(MPI a, unsigned int count);
168 int mpi_lshift_limbs(MPI a, unsigned int count);
Dmpi-pow.c36 int mpi_powm(MPI res, MPI base, MPI exp, MPI mod) in mpi_powm()
/linux-4.4.14/include/crypto/internal/
Drsa.h18 MPI n;
19 MPI e;
20 MPI d;
/linux-4.4.14/crypto/asymmetric_keys/
Drsa.c90 static int RSAVP1(const struct public_key *key, MPI s, MPI *_m) in RSAVP1()
92 MPI m; in RSAVP1()
123 static int RSA_I2OSP(MPI x, size_t xLen, u8 **pX) in RSA_I2OSP()
219 MPI m = NULL; in RSA_verify_signature()
Dpkcs7_parser.c619 MPI mpi; in pkcs7_sig_note_signature()
Dx509_cert_parser.c415 MPI mpi; in rsa_extract_mpi()
/linux-4.4.14/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-4.4.14/Documentation/
Ddigsig.txt16 GnuPG multi-precision integers (MPI) library. The kernel port provides
/linux-4.4.14/lib/
Ddigsig.c81 MPI in = NULL, res = NULL, pkey[2]; in digsig_verify_rsa()
DKconfig496 Implementation is done using GnuPG MPI library
/linux-4.4.14/Documentation/mic/
Dscif_overview.txt9 runtime and OFED support for MPI implementations for MIC coprocessors.
/linux-4.4.14/Documentation/crypto/
Dasymmetric-keys.txt138 MPI mpi[2];
/linux-4.4.14/drivers/usb/serial/
DKconfig67 - Siemens USB/MPI adapter.