Searched refs:QP (Results 1 – 5 of 5) sorted by relevance
| /optee_os/lib/libmbedtls/mbedtls/library/ |
| H A D | rsa_alt_helpers.h | 130 mbedtls_mpi *DQ, mbedtls_mpi *QP); 200 const mbedtls_mpi *DQ, const mbedtls_mpi *QP);
|
| H A D | rsa_alt_helpers.c | 227 mbedtls_mpi *DQ, mbedtls_mpi *QP) in mbedtls_rsa_deduce_crt() argument 246 if (QP != NULL) { in mbedtls_rsa_deduce_crt() 247 MBEDTLS_MPI_CHK(mbedtls_mpi_inv_mod(QP, Q, P)); in mbedtls_rsa_deduce_crt() 374 const mbedtls_mpi *DQ, const mbedtls_mpi *QP) in mbedtls_rsa_validate_crt() argument 417 if (QP != NULL) { in mbedtls_rsa_validate_crt() 423 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&K, QP, Q)); in mbedtls_rsa_validate_crt()
|
| H A D | rsa.c | 187 (ret = mbedtls_mpi_copy(&rsa->QP, &T)) != 0) { in mbedtls_rsa_parse_key() 716 mbedtls_mpi_cmp_int(&ctx->QP, 0) <= 0) { in rsa_check_context() 742 have_QP = (mbedtls_mpi_cmp_int(&ctx->QP, 0) != 0); in mbedtls_rsa_complete() 808 &ctx->DP, &ctx->DQ, &ctx->QP); in mbedtls_rsa_complete() 918 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP) in mbedtls_rsa_export_crt() argument 939 (QP != NULL && (ret = mbedtls_mpi_copy(QP, &ctx->QP)) != 0)) { in mbedtls_rsa_export_crt() 944 DP, DQ, QP)) != 0) { in mbedtls_rsa_export_crt() 1142 &ctx->DP, &ctx->DQ, &ctx->QP)); in mbedtls_rsa_gen_key() 1207 &ctx->DP, &ctx->DQ, &ctx->QP) != 0) { in mbedtls_rsa_check_privkey() 1549 MBEDTLS_MPI_CHK(mbedtls_mpi_mul_mpi(&TP, &T, &ctx->QP)); in mbedtls_rsa_private() [all …]
|
| /optee_os/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | rsa.h | 101 mbedtls_mpi MBEDTLS_PRIVATE(QP); /*!< <code>1 / (Q % P)</code>. */ 427 mbedtls_mpi *DP, mbedtls_mpi *DQ, mbedtls_mpi *QP);
|
| /optee_os/lib/libmbedtls/core/ |
| H A D | rsa.c | 113 rsa->QP = *(mbedtls_mpi *)key->qp; in rsa_complete_from_key_pair() 119 mbedtls_mpi_init_mempool(&rsa->QP); in rsa_complete_from_key_pair() 132 &rsa->DP, &rsa->DQ, &rsa->QP); in rsa_complete_from_key_pair() 144 mbedtls_mpi_free(&rsa->QP); in rsa_complete_from_key_pair() 173 mbedtls_mpi_init(&rsa->QP); in mbd_rsa_free() 319 crypto_bignum_copy(key->qp, (void *)&rsa.QP); in sw_crypto_acipher_gen_rsa_key()
|