Searched refs:x_size (Results 1 – 4 of 4) sorted by relevance
/openthread-3.7.0/third_party/mbedtls/repo/tests/suites/ |
D | test_suite_dhm.data | 1 Diffie-Hellman full exchange: tiny x_size 4 Diffie-Hellman full exchange: 5-bit, x_size=3 7 Diffie-Hellman full exchange: 5-bit, x_size=2 27 ## This is x_size = P_size + 1. Arguably x_size > P_size makes no sense, 29 ## x_size = P_size. If this behavior changes in the future, change the expected 31 Diffie-Hellman full exchange: 97-bit, x_size=14 49 Diffie-Hellman full exchange: 97-bit, x_size=12 52 Diffie-Hellman full exchange: 97-bit, x_size=11 55 Diffie-Hellman full exchange: 97-bit, x_size=1 #1 58 Diffie-Hellman full exchange: 97-bit, x_size=1 #2 [all …]
|
D | test_suite_dhm.function | 56 size_t x_size, 64 TEST_ASSERT(mbedtls_mpi_size(&ctx->X) <= x_size); 94 void dhm_do_dhm(char *input_P, int x_size, 132 TEST_ASSERT(mbedtls_dhm_make_params(&ctx_srv, x_size, ske, &ske_len, 138 if (!check_dhm_params(&ctx_srv, x_size, ske, ske_len)) { 149 TEST_ASSERT(mbedtls_dhm_make_public(&ctx_cli, x_size, pub_cli, pub_cli_len, 198 TEST_ASSERT(mbedtls_dhm_make_params(&ctx_srv, x_size, ske, &ske_len, 201 if (!check_dhm_params(&ctx_srv, x_size, ske, ske_len)) { 208 TEST_ASSERT(mbedtls_dhm_make_public(&ctx_cli, x_size, pub_cli, pub_cli_len,
|
/openthread-3.7.0/third_party/mbedtls/repo/library/ |
D | dhm.c | 180 static int dhm_make_common(mbedtls_dhm_context *ctx, int x_size, in dhm_make_common() argument 189 if (x_size < 0) { in dhm_make_common() 193 if ((unsigned) x_size < mbedtls_mpi_size(&ctx->P)) { in dhm_make_common() 194 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&ctx->X, x_size, f_rng, p_rng)); in dhm_make_common() 223 int mbedtls_dhm_make_params(mbedtls_dhm_context *ctx, int x_size, in mbedtls_dhm_make_params() argument 232 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_params() 308 int mbedtls_dhm_make_public(mbedtls_dhm_context *ctx, int x_size, in mbedtls_dhm_make_public() argument 319 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_public()
|
/openthread-3.7.0/third_party/mbedtls/repo/include/mbedtls/ |
D | dhm.h | 184 int mbedtls_dhm_make_params(mbedtls_dhm_context *ctx, int x_size, 251 int mbedtls_dhm_make_public(mbedtls_dhm_context *ctx, int x_size,
|