Home
last modified time | relevance | path

Searched refs:mbedtls_rsa_get_len (Results 1 – 8 of 8) sorted by relevance

/third_party/mbedtls/library/
Dpsa_crypto_rsa.c103 bits = PSA_BYTES_TO_BITS(mbedtls_rsa_get_len(mbedtls_pk_rsa(ctx))); in mbedtls_psa_rsa_load_representation()
150 *bits = (psa_key_bits_t) PSA_BYTES_TO_BITS(mbedtls_rsa_get_len(rsa)); in mbedtls_psa_rsa_import_key()
367 if (signature_size < mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_rsa_sign_hash()
408 *signature_length = mbedtls_rsa_get_len(rsa); in mbedtls_psa_rsa_sign_hash()
429 int klen = (int) mbedtls_rsa_get_len(rsa); // known to fit in rsa_pss_expected_salt_len()
466 if (signature_length != mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_rsa_verify_hash()
571 if (output_size < mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_asymmetric_encrypt()
616 *output_length = mbedtls_rsa_get_len(rsa); in mbedtls_psa_asymmetric_encrypt()
667 if (input_length != mbedtls_rsa_get_len(rsa)) { in mbedtls_psa_asymmetric_decrypt()
Dpk_wrap.c197 return 8 * mbedtls_rsa_get_len(rsa); in rsa_get_bitlen()
215 size_t rsa_len = mbedtls_rsa_get_len(rsa); in rsa_verify_wrap()
269 size_t rsa_len = mbedtls_rsa_get_len(rsa); in rsa_verify_wrap()
314 *sig_len = mbedtls_rsa_get_len(rsa_ctx); in mbedtls_pk_psa_rsa_sign_ext()
388 *sig_len = mbedtls_rsa_get_len(rsa); in rsa_sign_wrap()
423 if (ilen != mbedtls_rsa_get_len(rsa)) { in rsa_decrypt_wrap()
476 if (ilen != mbedtls_rsa_get_len(rsa)) { in rsa_decrypt_wrap()
509 if (mbedtls_rsa_get_len(rsa) > osize) { in rsa_encrypt_wrap()
560 *olen = mbedtls_rsa_get_len(rsa); in rsa_encrypt_wrap()
Drsa.c524 size_t mbedtls_rsa_get_len(const mbedtls_rsa_context *ctx) in mbedtls_rsa_get_len() function
/third_party/mbedtls/tests/suites/
Dtest_suite_pkcs1_v21.function38 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
91 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
154 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
206 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
242 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
Dtest_suite_rsa.function187 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
225 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
266 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
309 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
345 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
386 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
436 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
482 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
542 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) (mod / 8));
950 buf_orig = mbedtls_calloc(1, mbedtls_rsa_get_len(&ctx));
[all …]
Dtest_suite_pkcs1_v15.function45 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
99 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
303 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
344 TEST_ASSERT(mbedtls_rsa_get_len(&ctx) == (size_t) ((mod + 7) / 8));
Dtest_suite_pk.function887 TEST_ASSERT(mbedtls_rsa_get_len(rsa) == (size_t) (mod / 8));
942 TEST_ASSERT(mbedtls_rsa_get_len(rsa) == (size_t) (mod / 8));
999 TEST_EQUAL(mbedtls_rsa_get_len(rsa), (size_t) (mod / 8));
/third_party/mbedtls/include/mbedtls/
Drsa.h443 size_t mbedtls_rsa_get_len(const mbedtls_rsa_context *ctx);