Home
last modified time | relevance | path

Searched refs:mbedtls_mpi_write_binary (Results 1 – 25 of 42) sorted by relevance

12

/external/mbedtls/library/
Dpsa_crypto_ffdh.c156 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&GX, data, key_len)); in mbedtls_psa_ffdh_export_public_key()
197 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&X, key_buffer, key_buffer_size)); in mbedtls_psa_ffdh_generate_key()
275 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K, shared_secret, in mbedtls_psa_ffdh_key_agreement()
Ddhm.c243 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary((X), \ in mbedtls_dhm_make_params()
327 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->GX, output, olen)); in mbedtls_dhm_make_public()
443 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->K, output, *olen)); in mbedtls_dhm_calc_secret()
Drsa.c482 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->N, N, N_len)); in mbedtls_rsa_export_raw()
486 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->P, P, P_len)); in mbedtls_rsa_export_raw()
490 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->Q, Q, Q_len)); in mbedtls_rsa_export_raw()
494 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->D, D, D_len)); in mbedtls_rsa_export_raw()
498 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->E, E, E_len)); in mbedtls_rsa_export_raw()
891 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_public()
1199 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_private()
Dpsa_crypto_ecp.c382 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&r, in mbedtls_psa_ecdsa_sign_hash()
385 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&s, in mbedtls_psa_ecdsa_sign_hash()
Decdsa.c435 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(d, data, grp_len)); in mbedtls_ecdsa_sign_det_restartable()
437 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, data + grp_len, grp_len)); in mbedtls_ecdsa_sign_det_restartable()
Dasn1write.c118 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
Decjpake.c359 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, *p, len)); /* r */ in ecjpake_zkp_write()
783 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K.X, kx, x_bytes)); in mbedtls_ecjpake_derive_secret()
Decp.c740 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
741 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->Y, buf + 1 + plen, plen)); in mbedtls_ecp_point_write_binary()
750 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
3315 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&key->d, buf, buflen)); in mbedtls_ecp_write_key()
Decdh.c650 return mbedtls_mpi_write_binary(&ctx->z, buf, *olen); in ecdh_calc_secret_internal()
Dx509write_crt.c106 ret = mbedtls_mpi_write_binary(serial, ctx->serial, tmp_len); in mbedtls_x509write_crt_set_serial()
/external/libwebsockets/lib/tls/mbedtls/
Dlws-genec.c299 if (mbedtls_mpi_write_binary(mpi[n - 1], el[n].buf, in lws_genecdh_new_keypair()
374 if (mbedtls_mpi_write_binary(mpi[n - 1], el[n].buf, el[n].len)) { in lws_genecdsa_new_keypair()
438 if (mbedtls_mpi_write_binary(&mpi_r, sig, (unsigned int)keybytes)) in lws_genecdsa_hash_sign_jws()
441 if (mbedtls_mpi_write_binary(&mpi_s, sig + keybytes, (unsigned int)keybytes)) in lws_genecdsa_hash_sign_jws()
Dlws-genrsa.c179 if (mbedtls_mpi_write_binary(mpi[n], el[n].buf,
530 if (mbedtls_mpi_write_binary(mpi[n], p, (unsigned int)m))
534 if (mbedtls_mpi_write_binary(mpi[n], &p[1], (unsigned int)m))
Dmbedtls-x509.c439 mbedtls_mpi_write_binary(mpi[n], jwk->e[n].buf, jwk->e[n].len); in lws_x509_public_to_jwk()
518 mbedtls_mpi_write_binary(mpi[n], jwk->e[n].buf, jwk->e[n].len); in lws_x509_jwk_privkey_pem()
/external/openthread/third_party/mbedtls/repo/library/
Ddhm.c218 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary((X), \ in mbedtls_dhm_make_params()
313 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->GX, output, olen)); in mbedtls_dhm_make_public()
434 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->K, output, *olen)); in mbedtls_dhm_calc_secret()
Dpsa_crypto_ecp.c376 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&r, in mbedtls_psa_ecdsa_sign_hash()
379 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&s, in mbedtls_psa_ecdsa_sign_hash()
Drsa.c340 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->N, N, N_len)); in mbedtls_rsa_export_raw()
344 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->P, P, P_len)); in mbedtls_rsa_export_raw()
348 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->Q, Q, Q_len)); in mbedtls_rsa_export_raw()
352 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->D, D, D_len)); in mbedtls_rsa_export_raw()
356 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->E, E, E_len)); in mbedtls_rsa_export_raw()
726 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_public()
1057 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_private()
Decp.c165 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(secret, in ecp_drbg_seed()
226 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(secret, in ecp_drbg_seed()
900 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
901 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->Y, buf + 1 + plen, plen)); in mbedtls_ecp_point_write_binary()
910 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&P->X, buf + 1, plen)); in mbedtls_ecp_point_write_binary()
3382 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&key->d, buf, buflen)); in mbedtls_ecp_write_key()
Decjpake.c343 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, *p, len)); /* r */ in ecjpake_zkp_write()
768 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K.X, kx, x_bytes)); in mbedtls_ecjpake_derive_secret()
Decdsa.c445 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(d, data, grp_len)); in ecdsa_sign_det_restartable()
447 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&h, data + grp_len, grp_len)); in ecdsa_sign_det_restartable()
Dasn1write.c131 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
Dpk.c646 if ((ret = mbedtls_mpi_write_binary(&ec->d, d, d_len)) != 0) { in mbedtls_pk_wrap_as_opaque()
/external/openthread/src/core/crypto/
Dcrypto_platform.cpp546 ret = mbedtls_mpi_write_binary(&keyPair->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(X), aPublicKey->m8, in otPlatCryptoEcdsaGetPublicKey()
550 ret = mbedtls_mpi_write_binary(&keyPair->MBEDTLS_PRIVATE(Q).MBEDTLS_PRIVATE(Y), in otPlatCryptoEcdsaGetPublicKey()
603 ret = mbedtls_mpi_write_binary(&r, aSignature->m8, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaSign()
606 … ret = mbedtls_mpi_write_binary(&s, aSignature->m8 + Ecdsa::P256::kMpiSize, Ecdsa::P256::kMpiSize); in otPlatCryptoEcdsaSign()
/external/mbedtls/include/mbedtls/
Dbignum.h583 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/external/openthread/third_party/mbedtls/repo/include/mbedtls/
Dbignum.h563 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/external/openthread/third_party/mbedtls/repo/tests/suites/
Dtest_suite_bignum.function226 mbedtls_mpi_write_binary(NULL, u_out,
229 mbedtls_mpi_write_binary(&X, NULL,
463 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == result);
528 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == 0);
1522 TEST_EQUAL(0, mbedtls_mpi_write_binary(&result, &value, 1));

12