Home
last modified time | relevance | path

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

12

/aosp_15_r20/external/mbedtls/library/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dasn1write.c118 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/library/
H A Dpsa_crypto_ffdh.c182 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&GX, data, key_len)); in mbedtls_psa_ffdh_export_public_key()
223 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&X, key_buffer, key_buffer_size)); in mbedtls_psa_ffdh_generate_key()
301 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&K, shared_secret, in mbedtls_psa_ffdh_key_agreement()
H A 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()
H A Drsa.c847 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->N, N, N_len)); in mbedtls_rsa_export_raw()
851 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->P, P, P_len)); in mbedtls_rsa_export_raw()
855 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->Q, Q, Q_len)); in mbedtls_rsa_export_raw()
859 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->D, D, D_len)); in mbedtls_rsa_export_raw()
863 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&ctx->E, E, E_len)); in mbedtls_rsa_export_raw()
1263 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_public()
1571 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&T, output, olen)); in mbedtls_rsa_private()
H A Dpsa_crypto_ecp.c417 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&r, in mbedtls_psa_ecdsa_sign_hash()
420 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&s, in mbedtls_psa_ecdsa_sign_hash()
H A 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()
H A 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()
3328 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(&key->d, buf, buflen)); in mbedtls_ecp_write_key()
3362 return mbedtls_mpi_write_binary(&key->d, buf, len); in mbedtls_ecp_write_key_ext()
H A 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()
H A Dasn1write.c119 MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, *p, len)); in mbedtls_asn1_write_mpi()
H A Dpk_wrap.c781 ret = mbedtls_mpi_write_binary(&ctx->d, buf, key_len); in ecdsa_sign_wrap()
977 ret = mbedtls_mpi_write_binary(&mbedtls_pk_ec_ro(*prv)->d, in eckey_check_pair_psa()
/aosp_15_r20/external/libwebsockets/lib/tls/mbedtls/
H A 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()
H A 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))
H A 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()
/aosp_15_r20/external/openthread/src/core/crypto/
H A 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()
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/include/mbedtls/
H A Dbignum.h583 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/aosp_15_r20/external/mbedtls/include/mbedtls/
H A Dbignum.h583 int mbedtls_mpi_write_binary(const mbedtls_mpi *X, unsigned char *buf,
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/suites/
H A Dtest_suite_bignum.function159 TEST_EQUAL(mbedtls_mpi_write_binary(&X, NULL, 0), 0);
225 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == result);
290 TEST_ASSERT(mbedtls_mpi_write_binary(&X, buf, buflen) == 0);
/aosp_15_r20/external/mbedtls/tests/suites/
H A Dtest_suite_bignum.misc.data91 Base test mbedtls_mpi_write_binary #1
94 Test mbedtls_mpi_write_binary #1 (Buffer just fits)
97 Test mbedtls_mpi_write_binary #2 (Buffer too small)

12