Home
last modified time | relevance | path

Searched refs:inputs (Results 1 – 25 of 33) sorted by relevance

12

/mbedtls/tests/scripts/
A Dtest_psa_constant_names.py30 inputs = inputs_class()
32 inputs.parse_header(header)
34 inputs.parse_test_cases(test_cases)
35 inputs.add_numerical_values()
36 inputs.gather_arguments()
37 return inputs
84 def collect_values(inputs: InputsForTest,
93 names = inputs.get_names(type_word)
140 self.run_one(inputs, type_word)
183 inputs = gather_inputs(headers, TEST_SUITES)
[all …]
/mbedtls/library/
A Dpsa_crypto_pake.c156 const psa_crypto_driver_pake_inputs_t *inputs) in mbedtls_psa_pake_setup() argument
164 status = psa_crypto_driver_pake_get_password_len(inputs, &password_len); in mbedtls_psa_pake_setup()
169 status = psa_crypto_driver_pake_get_user_len(inputs, &user_len); in mbedtls_psa_pake_setup()
174 status = psa_crypto_driver_pake_get_peer_len(inputs, &peer_len); in mbedtls_psa_pake_setup()
179 status = psa_crypto_driver_pake_get_cipher_suite(inputs, &cipher_suite); in mbedtls_psa_pake_setup()
202 status = psa_crypto_driver_pake_get_password(inputs, operation->password, in mbedtls_psa_pake_setup()
208 status = psa_crypto_driver_pake_get_user(inputs, user, in mbedtls_psa_pake_setup()
214 status = psa_crypto_driver_pake_get_peer(inputs, peer, in mbedtls_psa_pake_setup()
267 (void) inputs; in mbedtls_psa_pake_setup()
A Dpsa_crypto.c8317 memcpy(buffer, inputs->password, inputs->password_len); in psa_crypto_driver_pake_get_password()
8348 memcpy(user_id, inputs->user, inputs->user_len); in psa_crypto_driver_pake_get_user()
8379 memcpy(peer_id, inputs->peer, inputs->peer_len); in psa_crypto_driver_pake_get_peer()
8415 memset(&operation->data.inputs, 0, sizeof(operation->data.inputs)); in psa_pake_setup()
8644 psa_crypto_driver_pake_inputs_t inputs = operation->data.inputs; in psa_pake_complete_inputs() local
8651 if (inputs.user_len == 0 || inputs.peer_len == 0) { in psa_pake_complete_inputs()
8662 mbedtls_zeroize_and_free(inputs.password, inputs.password_len); in psa_pake_complete_inputs()
8665 mbedtls_free(inputs.user); in psa_pake_complete_inputs()
8666 mbedtls_free(inputs.peer); in psa_pake_complete_inputs()
8731 stage->inputs++; in psa_jpake_epilogue()
[all …]
A Dpsa_crypto_pake.h38 const psa_crypto_driver_pake_inputs_t *inputs);
A Dpsa_crypto_driver_wrappers.h2742 const psa_crypto_driver_pake_inputs_t *inputs ) in psa_driver_wrapper_pake_setup() argument
2747 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime( &inputs->attributes ) ); in psa_driver_wrapper_pake_setup()
2759 inputs ); in psa_driver_wrapper_pake_setup()
2769 inputs ); in psa_driver_wrapper_pake_setup()
/mbedtls/include/psa/
A Dcrypto_extra.h1064 const psa_crypto_driver_pake_inputs_t *inputs,
1080 const psa_crypto_driver_pake_inputs_t *inputs,
1094 const psa_crypto_driver_pake_inputs_t *inputs,
1108 const psa_crypto_driver_pake_inputs_t *inputs,
1126 const psa_crypto_driver_pake_inputs_t *inputs,
1144 const psa_crypto_driver_pake_inputs_t *inputs,
1158 const psa_crypto_driver_pake_inputs_t *inputs,
1823 uint8_t MBEDTLS_PRIVATE(inputs);
1862 psa_crypto_driver_pake_inputs_t MBEDTLS_PRIVATE(inputs);
/mbedtls/tests/src/drivers/
A Dtest_driver_pake.c26 const psa_crypto_driver_pake_inputs_t *inputs) in mbedtls_test_transparent_pake_setup() argument
39 operation, (const libtestdriver1_psa_crypto_driver_pake_inputs_t *) inputs); in mbedtls_test_transparent_pake_setup()
43 operation, inputs); in mbedtls_test_transparent_pake_setup()
46 (void) inputs; in mbedtls_test_transparent_pake_setup()
/mbedtls/tests/suites/
A Dtest_suite_psa_crypto_pake.function209 * When injecting errors in inputs, the implementation is
1009 TEST_EQUAL(psa_crypto_driver_pake_get_password(&operation.data.inputs,
1024 TEST_EQUAL(psa_crypto_driver_pake_get_password(&operation.data.inputs,
1030 TEST_EQUAL(psa_crypto_driver_pake_get_password(&operation.data.inputs,
1106 TEST_EQUAL(psa_crypto_driver_pake_get_user(&operation.data.inputs,
1111 TEST_EQUAL(psa_crypto_driver_pake_get_user_len(&operation.data.inputs, &user_len_ret),
1121 TEST_EQUAL(psa_crypto_driver_pake_get_user(&operation.data.inputs,
1127 TEST_EQUAL(psa_crypto_driver_pake_get_user(&operation.data.inputs,
1169 TEST_EQUAL(psa_crypto_driver_pake_get_peer(&operation.data.inputs,
1184 TEST_EQUAL(psa_crypto_driver_pake_get_peer(&operation.data.inputs,
[all …]
A Dtest_suite_psa_crypto.pbkdf2.data10 PSA key derivation: PBKDF2-AES-CMAC-PRF-128, inputs from RFC6070 #4
14 PSA key derivation: PBKDF2-AES-CMAC-PRF-128, inputs from RFC7914 #2
A Dtest_suite_bignum_mod.misc.data22 mpi_mod_sub with modulus too long/both inputs too short
31 mpi_mod_sub with both inputs too long
87 mpi_mod_add with modulus too long/both inputs too short
96 mpi_mod_add with both inputs too long
A Dtest_suite_cmac.function144 /* Validate the test inputs */
225 /* Validate the test inputs */
A Dtest_suite_bignum_mod.function250 /* test_read_residue() normally checks that inputs have the same number of
352 /* test_read_residue() normally checks that inputs have the same number of
402 /* test_read_residue() normally checks that inputs have the same number of
453 /* test_read_residue() normally checks that inputs have the same number of
655 /* Read inputs */
A Dtest_suite_bignum_mod_raw.function566 /* Modulus gives the number of limbs; all inputs must have the same. */
700 /* Read inputs */
764 /* Read inputs */
828 /* Read inputs */
A Dtest_suite_bignum_core.function635 /* All of the inputs are +ve (or zero) */
746 /* All of the inputs are +ve (or zero) */
820 /* All of the inputs are +ve (or zero) */
871 /* All of the inputs are +ve (or zero) */
981 /* Read inputs */
985 /* All of the inputs are +ve (or zero) */
A Dtest_suite_psa_crypto.function791 * When injecting errors in inputs, the implementation is
7958 * verify passes all inputs to start. --- */
8845 data_t *inputs[] = { input1, input2, input3 };
8872 inputs[i]->x, inputs[i]->len,
8895 inputs[i]->x, inputs[i]->len),
9043 data_t *inputs[] = { input1, input2, input3, input4 };
9102 inputs[i]->x, inputs[i]->len),
9115 inputs[i]->x, inputs[i]->len,
9159 inputs[i]->x, inputs[i]->len,
9174 inputs[i]->x, inputs[i]->len,
[all …]
A Dtest_suite_ssl_decrypt.function3 * testing (using malformed inputs). */
/mbedtls/docs/proposed/
A Dpsa-driver-interface.md310 * There are multiple inputs and outputs.
343 #### Key derivation driver initial inputs
426 * `inputs` is an opaque pointer to the [initial inputs](#key-derivation-driver-initial-inputs) for …
428 #### Key derivation driver long inputs
619 #### PAKE driver inputs
631     const psa_crypto_driver_pake_inputs_t *inputs,
635     const psa_crypto_driver_pake_inputs_t *inputs,
639     const psa_crypto_driver_pake_inputs_t *inputs,
670 * `PSA_ERROR_BAD_STATE`: the inputs are not ready
681 * `inputs` is an opaque pointer to the [inputs](#pake-driver-inputs) for the PAKE operation.
[all …]
/mbedtls/programs/fuzz/
A DREADME.md6 They are used with a so-called fuzz driver, which will generate inputs, try to process them with th…
41 These targets use network traffic as inputs :
/mbedtls/tests/include/test/drivers/
A Dpake.h52 const psa_crypto_driver_pake_inputs_t *inputs);
/mbedtls/scripts/data_files/driver_templates/
A DOS-template-opaque.jinja2 Expected inputs:
A DOS-template-transparent.jinja2 Expected inputs:
A Dpsa_crypto_driver_wrappers.h.jinja2705 const psa_crypto_driver_pake_inputs_t *inputs )
2710 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime( &inputs->attributes ) );
2722 inputs );
2732 inputs );
/mbedtls/docs/architecture/
A Dpsa-shared-memory.md35inputs and outputs. This models an ideal world where the content of input and output buffers is no…
162 …* Note that this does not include inputs or outputs that are not processed by an asymmetric primit…
168 #### Symmetric cryptography inputs with small output
174 TODO: what about IV/nonce inputs? They are typically small, but don't necessarily have a static siz…
196 …hall allocate an intermediate buffer for cipher and AEAD plaintext/ciphertext inputs and outputs**.
218 * Plaintext/ciphertext inputs and outputs for cipher and AEAD.
242 * Write a small program that uses a PSA function which copies inputs or outputs.
359 * Not all buffers allocated by tests are used as inputs and outputs to PSA functions being tested.
360 * Those buffers that are inputs to a PSA function need to be unpoisoned right up until the function…
384 …sing on read-read inconsistencies for now, as most of the cases where we aren't copying are inputs.
[all …]
/mbedtls/docs/architecture/testing/
A Ddriver-interface-test-strategy.md25 …lidate that the proper function is called, that it receives the expected inputs and that it produc…
50 #### SE driver inputs
56inputs reach the driver. This may be implicit in a test that checks the outputs if the only realis…
/mbedtls/3rdparty/p256-m/p256-m/
A DREADME.md40 - Each public function fully validates its inputs and returns specific errors.
47 - In addition, crafted inputs are used for negative testing and to reach
284 - While p256-m fully validates all inputs, Tinycrypt's ECDH shared secret
399 This layer builds on the others, but unlike them, all inputs and outputs are

Completed in 66 milliseconds

12