Home
last modified time | relevance | path

Searched refs:mbedtls_mpi (Results 1 – 18 of 18) sorted by relevance

/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/
Dbignum.h185 typedef struct mbedtls_mpi struct
191 mbedtls_mpi; typedef
201 void mbedtls_mpi_init( mbedtls_mpi *X );
210 void mbedtls_mpi_free( mbedtls_mpi *X );
225 int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs );
242 int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs );
257 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
265 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
291 int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned char assign );
316 int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char assign );
[all …]
Drsa_internal.h97 int mbedtls_rsa_deduce_primes( mbedtls_mpi const *N, mbedtls_mpi const *E,
98 mbedtls_mpi const *D,
99 mbedtls_mpi *P, mbedtls_mpi *Q );
122 int mbedtls_rsa_deduce_private_exponent( mbedtls_mpi const *P,
123 mbedtls_mpi const *Q,
124 mbedtls_mpi const *E,
125 mbedtls_mpi *D );
148 int mbedtls_rsa_deduce_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q,
149 const mbedtls_mpi *D, mbedtls_mpi *DP,
150 mbedtls_mpi *DQ, mbedtls_mpi *QP );
[all …]
Drsa.h105 mbedtls_mpi N; /*!< The public modulus. */
106 mbedtls_mpi E; /*!< The public exponent. */
108 mbedtls_mpi D; /*!< The private exponent. */
109 mbedtls_mpi P; /*!< The first prime factor. */
110 mbedtls_mpi Q; /*!< The second prime factor. */
112 mbedtls_mpi DP; /*!< <code>D % (P - 1)</code>. */
113 mbedtls_mpi DQ; /*!< <code>D % (Q - 1)</code>. */
114 mbedtls_mpi QP; /*!< <code>1 / (Q % P)</code>. */
116 mbedtls_mpi RN; /*!< cached <code>R^2 mod N</code>. */
118 mbedtls_mpi RP; /*!< cached <code>R^2 mod P</code>. */
[all …]
Ddhm.h105 mbedtls_mpi P; /*!< The prime modulus. */
106 mbedtls_mpi G; /*!< The generator. */
107 mbedtls_mpi X; /*!< Our secret value. */
108 mbedtls_mpi GX; /*!< Our public key = \c G^X mod \c P. */
109 mbedtls_mpi GY; /*!< The public key of the peer = \c G^Y mod \c P. */
110 mbedtls_mpi K; /*!< The shared secret = \c G^(XY) mod \c P. */
111 mbedtls_mpi RP; /*!< The cached value = \c R^2 mod \c P. */
112 mbedtls_mpi Vi; /*!< The blinding value. */
113 mbedtls_mpi Vf; /*!< The unblinding value. */
114 mbedtls_mpi pX; /*!< The previous \c X. */
[all …]
Decp.h126 mbedtls_mpi X; /*!< The X coordinate of the ECP point. */
127 mbedtls_mpi Y; /*!< The Y coordinate of the ECP point. */
128 mbedtls_mpi Z; /*!< The Z coordinate of the ECP point. */
176 mbedtls_mpi P; /*!< The prime modulus of the base field. */
177 mbedtls_mpi A; /*!< For Short Weierstrass: \p A in the equation. For
179 mbedtls_mpi B; /*!< For Short Weierstrass: \p B in the equation.
182 mbedtls_mpi N; /*!< The order of \p G. */
188 int (*modp)(mbedtls_mpi *); /*!< The function for fast pseudo-reduction
335 mbedtls_mpi d; /*!< our secret value */
835 const mbedtls_mpi *m, const mbedtls_ecp_point *P,
[all …]
Decdsa.h159 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s,
160 const mbedtls_mpi *d, const unsigned char *buf, size_t blen,
212 int mbedtls_ecdsa_sign_det( mbedtls_ecp_group *grp, mbedtls_mpi *r,
213 mbedtls_mpi *s, const mbedtls_mpi *d,
255 int mbedtls_ecdsa_sign_det_ext( mbedtls_ecp_group *grp, mbedtls_mpi *r,
256 mbedtls_mpi *s, const mbedtls_mpi *d,
298 const mbedtls_ecp_point *Q, const mbedtls_mpi *r,
299 const mbedtls_mpi *s);
Decdh.h93 mbedtls_mpi d; /*!< The private key. */
96 mbedtls_mpi z; /*!< The shared secret. */
114 mbedtls_mpi d; /*!< The private key. */
117 mbedtls_mpi z; /*!< The shared secret. */
121 mbedtls_mpi _d; /*!< The previous \p d. */
173 int mbedtls_ecdh_gen_public( mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q,
211 int mbedtls_ecdh_compute_shared( mbedtls_ecp_group *grp, mbedtls_mpi *z,
212 const mbedtls_ecp_point *Q, const mbedtls_mpi *d,
Decp_alt.h83 mbedtls_mpi P; /*!< The prime modulus of the base field. */
84 mbedtls_mpi A; /*!< For Short Weierstrass: \p A in the equation. For
86 mbedtls_mpi B; /*!< For Short Weierstrass: \p B in the equation.
89 mbedtls_mpi N; /*!< The order of \p G. */
95 int (*modp)(mbedtls_mpi *); /*!< The function for fast pseudo-reduction
Decjpake.h89 mbedtls_mpi xm1; /**< My private key 1 C: x1, S: x3 */
90 mbedtls_mpi xm2; /**< My private key 2 C: x2, S: x4 */
92 mbedtls_mpi s; /**< Pre-shared secret (passphrase) */
Dx509_crt.h134 mbedtls_mpi serial;
573 int mbedtls_x509write_crt_set_serial( mbedtls_x509write_cert *ctx, const mbedtls_mpi *serial );
Decp_internal.h255 const mbedtls_ecp_point *Q, const mbedtls_mpi *d );
Dasn1write.h108 const mbedtls_mpi *X );
Dasn1.h291 mbedtls_mpi *X );
Ddebug.h184 const char *text, const mbedtls_mpi *X );
Dssl.h922 mbedtls_mpi dhm_P; /*!< prime modulus for DHM */
923 mbedtls_mpi dhm_G; /*!< generator for DHM */
Dcompat-1.3.h2050 #define mpi mbedtls_mpi
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/mbedtls_prepare/
Dhisi_mbedtls-2.16.10.patch43 @@ -842,6 +844,11 @@ int mbedtls_mpi_exp_mod( mbedtls_mpi *X, const mbedtls_mpi *A,
44 const mbedtls_mpi *E, const mbedtls_mpi *N,
45 mbedtls_mpi *_RR );
48 +int mbedtls_mpi_exp_mod_sw( mbedtls_mpi *X, const mbedtls_mpi *A,
49 + const mbedtls_mpi *E, const mbedtls_mpi *N,
50 + mbedtls_mpi *_RR );
1146 @@ -169,6 +168,7 @@ int mbedtls_mpi_grow( mbedtls_mpi *X, size_t nblimbs )
1154 @@ -210,6 +210,7 @@ int mbedtls_mpi_shrink( mbedtls_mpi *X, size_t nblimbs )
1170 @@ -369,7 +371,9 @@ int mbedtls_mpi_safe_cond_assign( mbedtls_mpi *X, const mbedtls_mpi *Y, unsigned
1180 @@ -422,6 +426,7 @@ int mbedtls_mpi_safe_cond_swap( mbedtls_mpi *X, mbedtls_mpi *Y, unsigned char sw
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/crypto/
Dcryp_rsa.c57 static hi_void mbedtls_mpi_print(const mbedtls_mpi *x, const char *name) in mbedtls_mpi_print()
152 static int cryp_ifep_rsa_exp_mod(hi_u32 ca_type, mbedtls_mpi *x, const mbedtls_mpi *a, in cryp_ifep_rsa_exp_mod()
153 const mbedtls_mpi *e, const mbedtls_mpi *n) in cryp_ifep_rsa_exp_mod()
163 mbedtls_mpi tmp_a; in cryp_ifep_rsa_exp_mod()
218 int mbedtls_mpi_exp_mod(mbedtls_mpi *x, const mbedtls_mpi *a, const mbedtls_mpi *e, const mbedtls_m… in mbedtls_mpi_exp_mod()
219 mbedtls_mpi *rr) in mbedtls_mpi_exp_mod()