Searched refs:mbedtls_mpi (Results 1 – 18 of 18) sorted by relevance
| /device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/mbedtls/include/mbedtls/ |
| D | bignum.h | 185 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 …]
|
| D | rsa_internal.h | 97 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 …]
|
| D | rsa.h | 105 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 …]
|
| D | dhm.h | 105 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 …]
|
| D | ecp.h | 126 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 …]
|
| D | ecdsa.h | 159 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);
|
| D | ecdh.h | 93 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,
|
| D | ecp_alt.h | 83 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
|
| D | ecjpake.h | 89 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) */
|
| D | x509_crt.h | 134 mbedtls_mpi serial; 573 int mbedtls_x509write_crt_set_serial( mbedtls_x509write_cert *ctx, const mbedtls_mpi *serial );
|
| D | ecp_internal.h | 255 const mbedtls_ecp_point *Q, const mbedtls_mpi *d );
|
| D | asn1write.h | 108 const mbedtls_mpi *X );
|
| D | asn1.h | 291 mbedtls_mpi *X );
|
| D | debug.h | 184 const char *text, const mbedtls_mpi *X );
|
| D | ssl.h | 922 mbedtls_mpi dhm_P; /*!< prime modulus for DHM */ 923 mbedtls_mpi dhm_G; /*!< generator for DHM */
|
| D | compat-1.3.h | 2050 #define mpi mbedtls_mpi
|
| /device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/mbedtls_prepare/ |
| D | hisi_mbedtls-2.16.10.patch | 43 @@ -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/ |
| D | cryp_rsa.c | 57 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()
|