Home
last modified time | relevance | path

Searched refs:mbedtls_pk_rsa (Results 1 – 17 of 17) sorted by relevance

/third_party/mbedtls/tests/suites/
Dtest_suite_pkparse.function36 rsa = mbedtls_pk_rsa(ctx);
62 rsa = mbedtls_pk_rsa(ctx);
Dtest_suite_pk.function42 return mbedtls_rsa_gen_key(mbedtls_pk_rsa(*pk),
504 TEST_ASSERT(mbedtls_pk_setup_rsa_alt(&alt, mbedtls_pk_rsa(prv),
543 rsa = mbedtls_pk_rsa(pk);
583 rsa = mbedtls_pk_rsa(pk);
858 rsa = mbedtls_pk_rsa(pk);
877 rsa = mbedtls_pk_rsa(pk);
932 rsa = mbedtls_pk_rsa(pk);
989 rsa = mbedtls_pk_rsa(pk);
1127 TEST_ASSERT(mbedtls_rsa_copy(&raw, mbedtls_pk_rsa(rsa)) == 0);
1215 TEST_ASSERT(mbedtls_rsa_gen_key(mbedtls_pk_rsa(pk),
[all …]
Dtest_suite_x509write.function380 mbedtls_pk_rsa(issuer_key),
/third_party/mbedtls/library/
Dpkparse.c657 ret = pk_get_rsapubkey(p, end, mbedtls_pk_rsa(*pk)); in mbedtls_pk_parse_subpubkey()
1079 if ((ret = pk_parse_key_pkcs1_der(mbedtls_pk_rsa(*pk), p, len)) != 0) { in pk_parse_key_pkcs8_unencrypted_der()
1244 (ret = pk_parse_key_pkcs1_der(mbedtls_pk_rsa(*pk), in mbedtls_pk_parse_key()
1387 pk_parse_key_pkcs1_der(mbedtls_pk_rsa(*pk), key, keylen) == 0) { in mbedtls_pk_parse_key()
1463 if ((ret = pk_get_rsapubkey(&p, p + pem.buflen, mbedtls_pk_rsa(*ctx))) != 0) { in mbedtls_pk_parse_public_key()
1511 ret = pk_get_rsapubkey(&p, p + keylen, mbedtls_pk_rsa(*ctx)); in mbedtls_pk_parse_public_key()
Dpsa_crypto_rsa.c103 bits = PSA_BYTES_TO_BITS(mbedtls_rsa_get_len(mbedtls_pk_rsa(ctx))); in mbedtls_psa_rsa_load_representation()
108 status = psa_check_rsa_key_byte_aligned(mbedtls_pk_rsa(ctx)); in mbedtls_psa_rsa_load_representation()
115 *p_rsa = mbedtls_pk_rsa(ctx); in mbedtls_psa_rsa_load_representation()
Dpkwrite.c180 MBEDTLS_ASN1_CHK_ADD(len, pk_write_rsa_pubkey(p, start, mbedtls_pk_rsa(*key))); in mbedtls_pk_write_pubkey()
324 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(*key); in mbedtls_pk_write_key_der()
Dpk.c580 ret = mbedtls_rsa_rsassa_pss_verify_ext(mbedtls_pk_rsa(*ctx), in mbedtls_pk_verify_ext()
/third_party/mbedtls/programs/pkey/
Dkey_app.c205 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(pk); in main()
262 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(pk); in main()
Dgen_key.c315 ret = mbedtls_rsa_gen_key(mbedtls_pk_rsa(key), mbedtls_ctr_drbg_random, &ctr_drbg, in main()
348 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(key); in main()
Drsa_verify_pss.c84 if ((ret = mbedtls_rsa_set_padding(mbedtls_pk_rsa(pk), in main()
Dkey_app_writer.c320 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(key); in main()
373 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(key); in main()
Drsa_sign_pss.c101 if ((ret = mbedtls_rsa_set_padding(mbedtls_pk_rsa(pk), in main()
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-x509.c141 mbedtls_rsa_context *rsa = mbedtls_pk_rsa(x509->MBEDTLS_PRIVATE_V30_ONLY(pk)); in lws_tls_mbedtls_cert_info()
394 rsactx = mbedtls_pk_rsa(x509->cert.MBEDTLS_PRIVATE_V30_ONLY(pk)); in lws_x509_public_to_jwk()
485 rsactx = mbedtls_pk_rsa(pk); in lws_x509_jwk_privkey_pem()
Dmbedtls-server.c633 n = mbedtls_rsa_gen_key(mbedtls_pk_rsa(mpk), _rngf, context, in lws_tls_acme_sni_csr_create()
/third_party/mbedtls/programs/fuzz/
Dfuzz_pubkey.c25 rsa = mbedtls_pk_rsa(pk); in LLVMFuzzerTestOneInput()
Dfuzz_privkey.c52 rsa = mbedtls_pk_rsa(pk); in LLVMFuzzerTestOneInput()
/third_party/mbedtls/include/mbedtls/
Dpk.h758 static inline mbedtls_rsa_context *mbedtls_pk_rsa(const mbedtls_pk_context pk) in mbedtls_pk_rsa() function