MPI 57 include/crypto/public_key.h MPI mpi[5]; MPI 59 include/crypto/public_key.h MPI p; /* DSA prime */ MPI 60 include/crypto/public_key.h MPI q; /* DSA group order */ MPI 61 include/crypto/public_key.h MPI g; /* DSA group generator */ MPI 62 include/crypto/public_key.h MPI y; /* DSA public-key value = g^x mod p */ MPI 63 include/crypto/public_key.h MPI x; /* DSA secret exponent (if present) */ MPI 66 include/crypto/public_key.h MPI n; /* RSA public modulus */ MPI 67 include/crypto/public_key.h MPI e; /* RSA public encryption exponent */ MPI 68 include/crypto/public_key.h MPI d; /* RSA secret encryption exponent (if present) */ MPI 69 include/crypto/public_key.h MPI p; /* RSA secret prime (if present) */ MPI 70 include/crypto/public_key.h MPI q; /* RSA secret prime (if present) */ MPI 87 include/crypto/public_key.h MPI mpi[2]; MPI 89 include/crypto/public_key.h MPI s; /* m^d mod n */ MPI 92 include/crypto/public_key.h MPI r; MPI 93 include/crypto/public_key.h MPI s; MPI 58 include/linux/mpi.h typedef struct gcry_mpi *MPI; MPI 64 include/linux/mpi.h MPI mpi_alloc(unsigned nlimbs); MPI 65 include/linux/mpi.h MPI mpi_alloc_secure(unsigned nlimbs); MPI 66 include/linux/mpi.h MPI mpi_alloc_like(MPI a); MPI 67 include/linux/mpi.h void mpi_free(MPI a); MPI 68 include/linux/mpi.h int mpi_resize(MPI a, unsigned nlimbs); MPI 69 include/linux/mpi.h int mpi_copy(MPI *copy, const MPI a); MPI 70 include/linux/mpi.h void mpi_clear(MPI a); MPI 71 include/linux/mpi.h int mpi_set(MPI w, MPI u); MPI 72 include/linux/mpi.h int mpi_set_ui(MPI w, ulong u); MPI 73 include/linux/mpi.h MPI mpi_alloc_set_ui(unsigned long u); MPI 74 include/linux/mpi.h void mpi_m_check(MPI a); MPI 75 include/linux/mpi.h void mpi_swap(MPI a, MPI b); MPI 78 include/linux/mpi.h MPI do_encode_md(const void *sha_buffer, unsigned nbits); MPI 79 include/linux/mpi.h MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes); MPI 80 include/linux/mpi.h MPI mpi_read_from_buffer(const void *buffer, unsigned *ret_nread); MPI 81 include/linux/mpi.h int mpi_fromstr(MPI val, const char *str); MPI 82 include/linux/mpi.h u32 mpi_get_keyid(MPI a, u32 *keyid); MPI 83 include/linux/mpi.h void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign); MPI 84 include/linux/mpi.h void *mpi_get_secure_buffer(MPI a, unsigned *nbytes, int *sign); MPI 85 include/linux/mpi.h int mpi_set_buffer(MPI a, const void *buffer, unsigned nbytes, int sign); MPI 90 include/linux/mpi.h int mpi_add_ui(MPI w, MPI u, ulong v); MPI 91 include/linux/mpi.h int mpi_add(MPI w, MPI u, MPI v); MPI 92 include/linux/mpi.h int mpi_addm(MPI w, MPI u, MPI v, MPI m); MPI 93 include/linux/mpi.h int mpi_sub_ui(MPI w, MPI u, ulong v); MPI 94 include/linux/mpi.h int mpi_sub(MPI w, MPI u, MPI v); MPI 95 include/linux/mpi.h int mpi_subm(MPI w, MPI u, MPI v, MPI m); MPI 98 include/linux/mpi.h int mpi_mul_ui(MPI w, MPI u, ulong v); MPI 99 include/linux/mpi.h int mpi_mul_2exp(MPI w, MPI u, ulong cnt); MPI 100 include/linux/mpi.h int mpi_mul(MPI w, MPI u, MPI v); MPI 101 include/linux/mpi.h int mpi_mulm(MPI w, MPI u, MPI v, MPI m); MPI 104 include/linux/mpi.h ulong mpi_fdiv_r_ui(MPI rem, MPI dividend, ulong divisor); MPI 105 include/linux/mpi.h int mpi_fdiv_r(MPI rem, MPI dividend, MPI divisor); MPI 106 include/linux/mpi.h int mpi_fdiv_q(MPI quot, MPI dividend, MPI divisor); MPI 107 include/linux/mpi.h int mpi_fdiv_qr(MPI quot, MPI rem, MPI dividend, MPI divisor); MPI 108 include/linux/mpi.h int mpi_tdiv_r(MPI rem, MPI num, MPI den); MPI 109 include/linux/mpi.h int mpi_tdiv_qr(MPI quot, MPI rem, MPI num, MPI den); MPI 110 include/linux/mpi.h int mpi_tdiv_q_2exp(MPI w, MPI u, unsigned count); MPI 111 include/linux/mpi.h int mpi_divisible_ui(const MPI dividend, ulong divisor); MPI 114 include/linux/mpi.h int mpi_gcd(MPI g, const MPI a, const MPI b); MPI 117 include/linux/mpi.h int mpi_pow(MPI w, MPI u, MPI v); MPI 118 include/linux/mpi.h int mpi_powm(MPI res, MPI base, MPI exp, MPI mod); MPI 121 include/linux/mpi.h int mpi_mulpowm(MPI res, MPI *basearray, MPI *exparray, MPI mod); MPI 124 include/linux/mpi.h int mpi_cmp_ui(MPI u, ulong v); MPI 125 include/linux/mpi.h int mpi_cmp(MPI u, MPI v); MPI 128 include/linux/mpi.h int mpi_getbyte(MPI a, unsigned idx); MPI 129 include/linux/mpi.h void mpi_putbyte(MPI a, unsigned idx, int value); MPI 130 include/linux/mpi.h unsigned mpi_trailing_zeros(MPI a); MPI 133 include/linux/mpi.h void mpi_normalize(MPI a); MPI 134 include/linux/mpi.h unsigned mpi_get_nbits(MPI a); MPI 135 include/linux/mpi.h int mpi_test_bit(MPI a, unsigned n); MPI 136 include/linux/mpi.h int mpi_set_bit(MPI a, unsigned n); MPI 137 include/linux/mpi.h int mpi_set_highbit(MPI a, unsigned n); MPI 138 include/linux/mpi.h void mpi_clear_highbit(MPI a, unsigned n); MPI 139 include/linux/mpi.h void mpi_clear_bit(MPI a, unsigned n); MPI 140 include/linux/mpi.h int mpi_rshift(MPI x, MPI a, unsigned n); MPI 143 include/linux/mpi.h int mpi_invm(MPI x, MPI u, MPI v);