Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_write_file (Results 1 – 11 of 11) sorted by relevance

/third_party/mbedtls/programs/pkey/
Dkey_app.c213 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("N: ", &N, 16, NULL)); in main()
214 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("E: ", &E, 16, NULL)); in main()
215 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("D: ", &D, 16, NULL)); in main()
216 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("P: ", &P, 16, NULL)); in main()
217 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("Q: ", &Q, 16, NULL)); in main()
218 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("DP: ", &DP, 16, NULL)); in main()
219 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("DQ: ", &DQ, 16, NULL)); in main()
220 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("QP: ", &QP, 16, NULL)); in main()
226 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("Q(X): ", in main()
229 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file("Q(Y): ", in main()
[all …]
Dkey_app_writer.c328 mbedtls_mpi_write_file("N: ", &N, 16, NULL); in main()
329 mbedtls_mpi_write_file("E: ", &E, 16, NULL); in main()
330 mbedtls_mpi_write_file("D: ", &D, 16, NULL); in main()
331 mbedtls_mpi_write_file("P: ", &P, 16, NULL); in main()
332 mbedtls_mpi_write_file("Q: ", &Q, 16, NULL); in main()
333 mbedtls_mpi_write_file("DP: ", &DP, 16, NULL); in main()
334 mbedtls_mpi_write_file("DQ: ", &DQ, 16, NULL); in main()
335 mbedtls_mpi_write_file("QP: ", &QP, 16, NULL); in main()
341 mbedtls_mpi_write_file("Q(X): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), 16, NULL); in main()
342 mbedtls_mpi_write_file("Q(Y): ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), 16, NULL); in main()
[all …]
Drsa_genkey.c104 if ((ret = mbedtls_mpi_write_file("N = ", &N, 16, fpub)) != 0 || in main()
105 (ret = mbedtls_mpi_write_file("E = ", &E, 16, fpub)) != 0) { in main()
118 if ((ret = mbedtls_mpi_write_file("N = ", &N, 16, fpriv)) != 0 || in main()
119 (ret = mbedtls_mpi_write_file("E = ", &E, 16, fpriv)) != 0 || in main()
120 (ret = mbedtls_mpi_write_file("D = ", &D, 16, fpriv)) != 0 || in main()
121 (ret = mbedtls_mpi_write_file("P = ", &P, 16, fpriv)) != 0 || in main()
122 (ret = mbedtls_mpi_write_file("Q = ", &Q, 16, fpriv)) != 0 || in main()
123 (ret = mbedtls_mpi_write_file("DP = ", &DP, 16, fpriv)) != 0 || in main()
124 (ret = mbedtls_mpi_write_file("DQ = ", &DQ, 16, fpriv)) != 0 || in main()
125 (ret = mbedtls_mpi_write_file("QP = ", &QP, 16, fpriv)) != 0) { in main()
Dmpi_demo.c55 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file(" N = ", &N, 10, NULL)); in main()
56 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file(" E = ", &E, 10, NULL)); in main()
59 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file(" P = ", &P, 10, NULL)); in main()
60 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file(" Q = ", &Q, 10, NULL)); in main()
68 mbedtls_mpi_write_file(" D = E^-1 mod (P-1)*(Q-1) = ", in main()
78 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file(" X (plaintext) = ", &X, 10, NULL)); in main()
79 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file(" Y (ciphertext) = X^E mod N = ", &Y, 10, NULL)); in main()
80 MBEDTLS_MPI_CHK(mbedtls_mpi_write_file(" Z (decrypted) = Y^D mod N = ", &Z, 10, NULL)); in main()
Dgen_key.c356 mbedtls_mpi_write_file("N: ", &N, 16, NULL); in main()
357 mbedtls_mpi_write_file("E: ", &E, 16, NULL); in main()
358 mbedtls_mpi_write_file("D: ", &D, 16, NULL); in main()
359 mbedtls_mpi_write_file("P: ", &P, 16, NULL); in main()
360 mbedtls_mpi_write_file("Q: ", &Q, 16, NULL); in main()
361 mbedtls_mpi_write_file("DP: ", &DP, 16, NULL); in main()
362 mbedtls_mpi_write_file("DQ: ", &DQ, 16, NULL); in main()
363 mbedtls_mpi_write_file("QP: ", &QP, 16, NULL); in main()
371 mbedtls_mpi_write_file("X_Q: ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), 16, NULL); in main()
372 mbedtls_mpi_write_file("Y_Q: ", &ecp->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), 16, NULL); in main()
[all …]
Ddh_genprime.c152 if (((ret = mbedtls_mpi_write_file("P = ", &P, 16, fout)) != 0) || in main()
153 ((ret = mbedtls_mpi_write_file("G = ", &G, 16, fout)) != 0)) { in main()
/third_party/mbedtls/include/mbedtls/
Dbignum.h523 int mbedtls_mpi_write_file(const char *p, const mbedtls_mpi *X,
/third_party/mbedtls/tests/suites/
Dtest_suite_bignum.function295 ret = mbedtls_mpi_write_file(NULL, &X, 16, file_out);
Dtest_suite_bignum.misc.data121 Base test mbedtls_mpi_write_file #1
/third_party/mbedtls/library/
Dbignum.c630 int mbedtls_mpi_write_file(const char *p, const mbedtls_mpi *X, int radix, FILE *fout) in mbedtls_mpi_write_file() function
/third_party/mbedtls/
DChangeLog395 the error code returned by mbedtls_mpi_write_file() is overwritten