Lines Matching refs:hw_bignum_mpi

23 struct hw_bignum_mpi  struct
33 struct hw_bignum_mpi *x, argument
34 const struct hw_bignum_mpi *a,
35 const struct hw_bignum_mpi *b); /**< x = a + b */
37 struct hw_bignum_mpi *x,
38 const struct hw_bignum_mpi *a,
39 const struct hw_bignum_mpi *b); /**< x = a - b */
41 struct hw_bignum_mpi *x,
42 const struct hw_bignum_mpi *a,
43 const struct hw_bignum_mpi *b); /**< x = a * b */
45 struct hw_bignum_mpi *x,
46 const struct hw_bignum_mpi *a,
47 const struct hw_bignum_mpi *b,
48 const struct hw_bignum_mpi *c); /**< x = a * b (mod c) */
50 struct hw_bignum_mpi *x,
51 const struct hw_bignum_mpi *a,
52 const struct hw_bignum_mpi *b,
53 const struct hw_bignum_mpi *c); /**< x = a ^ b (mod c) */
75 void rt_hwcrypto_bignum_init(struct hw_bignum_mpi *n);
82 void rt_hwcrypto_bignum_free(struct hw_bignum_mpi *n);
91 int rt_hwcrypto_bignum_get_len(const struct hw_bignum_mpi *n);
102 int rt_hwcrypto_bignum_export_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf, int len);
113 int rt_hwcrypto_bignum_import_bin(struct hw_bignum_mpi *n, rt_uint8_t *buf, int len);
124 rt_err_t rt_hwcrypto_bignum_add(struct hw_bignum_mpi *x,
125 const struct hw_bignum_mpi *a,
126 const struct hw_bignum_mpi *b);
137 rt_err_t rt_hwcrypto_bignum_sub(struct hw_bignum_mpi *x,
138 const struct hw_bignum_mpi *a,
139 const struct hw_bignum_mpi *b);
150 rt_err_t rt_hwcrypto_bignum_mul(struct hw_bignum_mpi *x,
151 const struct hw_bignum_mpi *a,
152 const struct hw_bignum_mpi *b);
163 rt_err_t rt_hwcrypto_bignum_mulmod(struct hw_bignum_mpi *x,
164 const struct hw_bignum_mpi *a,
165 const struct hw_bignum_mpi *b,
166 const struct hw_bignum_mpi *c);
177 rt_err_t rt_hwcrypto_bignum_exptmod(struct hw_bignum_mpi *x,
178 const struct hw_bignum_mpi *a,
179 const struct hw_bignum_mpi *b,
180 const struct hw_bignum_mpi *c);