Home
last modified time | relevance | path

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

12

/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dbignum.h186 mbedtls_mpi; argument
252 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y );
260 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y );
580 int mbedtls_mpi_add_abs( mbedtls_mpi *X, const mbedtls_mpi *A,
595 int mbedtls_mpi_sub_abs( mbedtls_mpi *X, const mbedtls_mpi *A,
609 int mbedtls_mpi_add_mpi( mbedtls_mpi *X, const mbedtls_mpi *A,
623 int mbedtls_mpi_sub_mpi( mbedtls_mpi *X, const mbedtls_mpi *A,
637 int mbedtls_mpi_add_int( mbedtls_mpi *X, const mbedtls_mpi *A,
704 int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A,
725 int mbedtls_mpi_div_int( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A,
[all …]
A 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 );
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 );
183 int mbedtls_rsa_validate_params( const mbedtls_mpi *N, const mbedtls_mpi *P,
184 const mbedtls_mpi *Q, const mbedtls_mpi *D,
218 int mbedtls_rsa_validate_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q,
219 const mbedtls_mpi *D, const mbedtls_mpi *DP,
[all …]
A 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. */
202 const mbedtls_mpi *N,
203 const mbedtls_mpi *P, const mbedtls_mpi *Q,
204 const mbedtls_mpi *D, const mbedtls_mpi *E );
322 mbedtls_mpi *N, mbedtls_mpi *P, mbedtls_mpi *Q,
323 mbedtls_mpi *D, mbedtls_mpi *E );
[all …]
A 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. */
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. */
208 const mbedtls_mpi *P,
[all …]
A Decp.h120 mbedtls_mpi X; /*!< The X coordinate of the ECP point. */
121 mbedtls_mpi Y; /*!< The Y coordinate of the ECP point. */
176 mbedtls_mpi N; /*!< The order of \p G. */
829 const mbedtls_mpi *m, const mbedtls_ecp_point *P,
863 const mbedtls_mpi *m, const mbedtls_ecp_point *P,
897 const mbedtls_mpi *m, const mbedtls_ecp_point *P,
898 const mbedtls_mpi *n, const mbedtls_ecp_point *Q );
936 const mbedtls_mpi *m, const mbedtls_ecp_point *P,
937 const mbedtls_mpi *n, const mbedtls_ecp_point *Q,
990 const mbedtls_mpi *d );
[all …]
A Decdh.h87 mbedtls_mpi d; /*!< The private key. */
90 mbedtls_mpi z; /*!< The shared secret. */
108 mbedtls_mpi d; /*!< The private key. */
111 mbedtls_mpi z; /*!< The shared secret. */
115 mbedtls_mpi _d; /*!< The previous \p d. */
167 int mbedtls_ecdh_gen_public( mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q,
205 int mbedtls_ecdh_compute_shared( mbedtls_ecp_group *grp, mbedtls_mpi *z,
206 const mbedtls_ecp_point *Q, const mbedtls_mpi *d,
A Decdsa.h153 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s,
154 const mbedtls_mpi *d, const unsigned char *buf, size_t blen,
193 int mbedtls_ecdsa_sign_det( mbedtls_ecp_group *grp, mbedtls_mpi *r,
194 mbedtls_mpi *s, const mbedtls_mpi *d,
233 const mbedtls_ecp_point *Q, const mbedtls_mpi *r,
234 const mbedtls_mpi *s);
A Decjpake.h84 mbedtls_mpi xm1; /**< My private key 1 C: x1, S: x3 */
85 mbedtls_mpi xm2; /**< My private key 2 C: x2, S: x4 */
87 mbedtls_mpi s; /**< Pre-shared secret (passphrase) */
A Decp_internal.h249 const mbedtls_ecp_point *Q, const mbedtls_mpi *d );
A Dx509_crt.h134 mbedtls_mpi serial;
591 int mbedtls_x509write_crt_set_serial( mbedtls_x509write_cert *ctx, const mbedtls_mpi *serial );
A Dasn1write.h101 const mbedtls_mpi *X );
A Dasn1.h291 mbedtls_mpi *X );
A Ddebug.h184 const char *text, const mbedtls_mpi *X );
/AliOS-Things-master/components/mbedtls/library/
A Drsa_internal.c69 mbedtls_mpi const *E, mbedtls_mpi const *D, in mbedtls_rsa_deduce_primes()
70 mbedtls_mpi *P, mbedtls_mpi *Q ) in mbedtls_rsa_deduce_primes()
209 mbedtls_mpi K, L; in mbedtls_rsa_deduce_private_exponent()
249 int mbedtls_rsa_validate_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q, in mbedtls_rsa_validate_crt()
250 const mbedtls_mpi *D, const mbedtls_mpi *DP, in mbedtls_rsa_validate_crt()
255 mbedtls_mpi K, L; in mbedtls_rsa_validate_crt()
344 mbedtls_mpi K, L; in mbedtls_rsa_validate_params()
458 int mbedtls_rsa_deduce_crt( const mbedtls_mpi *P, const mbedtls_mpi *Q, in mbedtls_rsa_deduce_crt()
459 const mbedtls_mpi *D, mbedtls_mpi *DP, in mbedtls_rsa_deduce_crt()
460 mbedtls_mpi *DQ, mbedtls_mpi *QP ) in mbedtls_rsa_deduce_crt()
[all …]
A Dbignum.c191 int mbedtls_mpi_copy( mbedtls_mpi *X, const mbedtls_mpi *Y ) in mbedtls_mpi_copy()
233 void mbedtls_mpi_swap( mbedtls_mpi *X, mbedtls_mpi *Y ) in mbedtls_mpi_swap()
976 int mbedtls_mpi_add_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_add_abs()
1056 int mbedtls_mpi_sub_abs( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_sub_abs()
1102 int mbedtls_mpi_add_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_add_mpi()
1137 int mbedtls_mpi_sub_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_sub_mpi()
1280 int mbedtls_mpi_mul_mpi( mbedtls_mpi *X, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_mul_mpi()
1434 int mbedtls_mpi_div_mpi( mbedtls_mpi *Q, mbedtls_mpi *R, const mbedtls_mpi *A, in mbedtls_mpi_div_mpi()
1571 int mbedtls_mpi_mod_mpi( mbedtls_mpi *R, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_mod_mpi()
1946 int mbedtls_mpi_gcd( mbedtls_mpi *G, const mbedtls_mpi *A, const mbedtls_mpi *B ) in mbedtls_mpi_gcd()
[all …]
A Decdsa.c254 mbedtls_mpi *r, mbedtls_mpi *s, in ecdsa_sign_restartable()
262 mbedtls_mpi k, e, t; in ecdsa_sign_restartable()
263 mbedtls_mpi *pk = &k, *pr = r; in ecdsa_sign_restartable()
384 int mbedtls_ecdsa_sign( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, in mbedtls_ecdsa_sign()
405 mbedtls_mpi *r, mbedtls_mpi *s, in ecdsa_sign_det_restartable()
416 mbedtls_mpi h; in ecdsa_sign_det_restartable()
470 int mbedtls_ecdsa_sign_det( mbedtls_ecp_group *grp, mbedtls_mpi *r, mbedtls_mpi *s, in mbedtls_ecdsa_sign_det()
492 const mbedtls_mpi *r, const mbedtls_mpi *s, in ecdsa_verify_restartable()
616 static int ecdsa_signature_to_asn1( const mbedtls_mpi *r, const mbedtls_mpi *s, in ecdsa_signature_to_asn1()
649 mbedtls_mpi r, s; in mbedtls_ecdsa_write_signature_restartable()
[all …]
A Decp_curves.c613 static int ecp_mod_p192( mbedtls_mpi * );
616 static int ecp_mod_p224( mbedtls_mpi * );
619 static int ecp_mod_p256( mbedtls_mpi * );
622 static int ecp_mod_p384( mbedtls_mpi * );
625 static int ecp_mod_p521( mbedtls_mpi * );
711 mbedtls_mpi Ns; in ecp_use_curve448()
1026 static inline int fix_negative( mbedtls_mpi *N, signed char c, mbedtls_mpi *C, size_t bits ) in fix_negative()
1188 mbedtls_mpi M; in ecp_mod_p521()
1237 mbedtls_mpi M; in ecp_mod_p255()
1294 mbedtls_mpi M, Q; in ecp_mod_p448()
[all …]
A Decjpake.c200 mbedtls_mpi *h ) in ecjpake_hash()
254 mbedtls_mpi r, h; in ecjpake_zkp_read()
319 const mbedtls_mpi *x, in ecjpake_zkp_write()
329 mbedtls_mpi v; in ecjpake_zkp_write()
330 mbedtls_mpi h; /* later recycled to hold r */ in ecjpake_zkp_write()
417 mbedtls_mpi *x, in ecjpake_kkp_write()
487 mbedtls_mpi *xm1, in ecjpake_kkpp_write()
489 mbedtls_mpi *xm2, in ecjpake_kkpp_write()
557 mbedtls_mpi one; in ecjpake_ecp_add3()
674 mbedtls_mpi xm; /* C: xc, S: xs */ in mbedtls_ecjpake_write_round_two()
[all …]
A Ddhm.c71 static int dhm_read_bignum( mbedtls_mpi *X, in dhm_read_bignum()
106 static int dhm_check_range( const mbedtls_mpi *param, const mbedtls_mpi *P ) in dhm_check_range()
108 mbedtls_mpi L, U; in dhm_check_range()
239 const mbedtls_mpi *P, in mbedtls_dhm_set_group()
240 const mbedtls_mpi *G ) in mbedtls_dhm_set_group()
400 mbedtls_mpi GYb; in mbedtls_dhm_calc_secret()
541 mbedtls_mpi rec; in mbedtls_dhm_parse_dhm()
A Decp.c1085 mbedtls_mpi Zi, ZZi; in ecp_normalize_jac()
1138 mbedtls_mpi *c, u, Zi, ZZi; in ecp_normalize_jac_many()
1228 mbedtls_mpi mQY; in ecp_safe_invert_jac()
1261 mbedtls_mpi M, S, T, U; in ecp_double_jac()
1444 mbedtls_mpi l, ll; in ecp_randomize_jac()
1865 mbedtls_mpi M, mm; in ecp_comb_recode_scalar()
2162 mbedtls_mpi l; in ecp_randomize_mxz()
2268 mbedtls_mpi PX;
2405 mbedtls_mpi YY, RHS;
2677 mbedtls_mpi *d,
[all …]
A Drsa.c98 const mbedtls_mpi *P, const mbedtls_mpi *Q, in mbedtls_rsa_import()
99 const mbedtls_mpi *D, const mbedtls_mpi *E ) in mbedtls_rsa_import()
392 mbedtls_mpi *N, mbedtls_mpi *P, mbedtls_mpi *Q, in mbedtls_rsa_export()
393 mbedtls_mpi *D, mbedtls_mpi *E ) in mbedtls_rsa_export()
437 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP ) in mbedtls_rsa_export_crt()
531 mbedtls_mpi H, G, L; in mbedtls_rsa_gen_key()
724 mbedtls_mpi T; in mbedtls_rsa_public()
839 mbedtls_mpi T; in mbedtls_rsa_private()
847 mbedtls_mpi TP, TQ; in mbedtls_rsa_private()
868 mbedtls_mpi I, C; in mbedtls_rsa_private()
[all …]
A Decdh.c61 mbedtls_mpi *d, mbedtls_ecp_point *Q, in ecdh_gen_public_restartable()
84 int mbedtls_ecdh_gen_public( mbedtls_ecp_group *grp, mbedtls_mpi *d, mbedtls_ecp_point *Q, in mbedtls_ecdh_gen_public()
101 mbedtls_mpi *z, in ecdh_compute_shared_restartable()
102 const mbedtls_ecp_point *Q, const mbedtls_mpi *d, in ecdh_compute_shared_restartable()
132 int mbedtls_ecdh_compute_shared( mbedtls_ecp_group *grp, mbedtls_mpi *z, in mbedtls_ecdh_compute_shared()
133 const mbedtls_ecp_point *Q, const mbedtls_mpi *d, in mbedtls_ecdh_compute_shared()
/AliOS-Things-master/components/mbedtls/platform/yoc/include/
A Drsa_alt.h39 mbedtls_mpi N; /*!< public modulus */
40 mbedtls_mpi E; /*!< public exponent */
42 mbedtls_mpi D; /*!< private exponent */
43 mbedtls_mpi P; /*!< 1st prime factor */
44 mbedtls_mpi Q; /*!< 2nd prime factor */
45 mbedtls_mpi DP; /*!< D % (P - 1) */
46 mbedtls_mpi DQ; /*!< D % (Q - 1) */
47 mbedtls_mpi QP; /*!< 1 / (Q % P) */
/AliOS-Things-master/components/mbedtls/platform/yoc/
A Drsa_alt.c573 const mbedtls_mpi *N, in mbedtls_rsa_import()
574 const mbedtls_mpi *P, const mbedtls_mpi *Q, in mbedtls_rsa_import()
575 const mbedtls_mpi *D, const mbedtls_mpi *E ) in mbedtls_rsa_import()
/AliOS-Things-master/components/mbedtls/programs/pkey/
A Dmpi_demo.c69 mbedtls_mpi E, P, Q, N, H, D, X, Y, Z; in main()

Completed in 48 milliseconds

12