Home
last modified time | relevance | path

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

12

/mbedtls-latest/tests/scripts/
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)
95 for expr in inputs.generate_expressions(names)
112 def run_one(self, inputs: InputsForTest, type_word: str) -> None:
[all …]
/mbedtls-latest/library/
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()
Dpsa_crypto.c8386 const psa_crypto_driver_pake_inputs_t *inputs, argument
8389 if (inputs->password_len == 0) {
8393 *password_len = inputs->password_len;
8399 const psa_crypto_driver_pake_inputs_t *inputs, argument
8402 if (inputs->password_len == 0) {
8406 if (buffer_size < inputs->password_len) {
8410 memcpy(buffer, inputs->password, inputs->password_len);
8411 *buffer_length = inputs->password_len;
8417 const psa_crypto_driver_pake_inputs_t *inputs, argument
8420 if (inputs->user_len == 0) {
[all …]
Dpsa_crypto_pake.h38 const psa_crypto_driver_pake_inputs_t *inputs);
Dpsa_crypto_driver_wrappers.h3197 const psa_crypto_driver_pake_inputs_t *inputs ) in psa_driver_wrapper_pake_setup() argument
3202 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime( &inputs->attributes ) ); in psa_driver_wrapper_pake_setup()
3217 inputs ); in psa_driver_wrapper_pake_setup()
3227 inputs ); in psa_driver_wrapper_pake_setup()
/mbedtls-latest/include/psa/
Dcrypto_extra.h1082 const psa_crypto_driver_pake_inputs_t *inputs,
1098 const psa_crypto_driver_pake_inputs_t *inputs,
1112 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,
1162 const psa_crypto_driver_pake_inputs_t *inputs,
1176 const psa_crypto_driver_pake_inputs_t *inputs,
1841 uint8_t MBEDTLS_PRIVATE(inputs);
1880 psa_crypto_driver_pake_inputs_t MBEDTLS_PRIVATE(inputs);
/mbedtls-latest/tests/suites/
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,
1014 TEST_EQUAL(psa_crypto_driver_pake_get_password_len(&operation.data.inputs, &password_len_ret),
1019 TEST_EQUAL(psa_crypto_driver_pake_get_password_len(&operation.data.inputs, &password_len_ret),
1024 TEST_EQUAL(psa_crypto_driver_pake_get_password(&operation.data.inputs,
1030 TEST_EQUAL(psa_crypto_driver_pake_get_password(&operation.data.inputs,
1061 TEST_EQUAL(psa_crypto_driver_pake_get_cipher_suite(&operation.data.inputs, &cipher_suite_ret),
1066 TEST_EQUAL(psa_crypto_driver_pake_get_cipher_suite(&operation.data.inputs, &cipher_suite_ret),
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),
[all …]
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
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
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 */
Dtest_suite_cmac.function144 /* Validate the test inputs */
225 /* Validate the test inputs */
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 */
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) */
Dtest_suite_psa_crypto.function769 * When injecting errors in inputs, the implementation is
1812 /* Run sanity checks on the exported key. For non-canonical inputs,
1813 * this validates the canonical representations. For canonical inputs,
7937 /* --- Change function inputs mid run, to cause an error (sign only,
7938 * verify passes all inputs to start. --- */
8825 data_t *inputs[] = { input1, input2, input3 };
8852 inputs[i]->x, inputs[i]->len,
8870 mbedtls_test_parse_binary_string(inputs[i])),
8875 inputs[i]->x, inputs[i]->len),
9023 data_t *inputs[] = { input1, input2, input3, input4 };
[all …]
Dtest_suite_ssl_decrypt.function3 * testing (using malformed inputs). */
/mbedtls-latest/tests/src/drivers/
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-latest/docs/proposed/
Dpsa-driver-interface.md310 * There are multiple inputs and outputs.
330 … to be called. This entry point provides the [initial inputs](#key-derivation-driver-initial-input…
331inputs, otherwise ignored): provide an extra input for the key derivation. This entry point is onl…
343 #### Key derivation driver initial inputs
345 The core conveys the initial inputs for a key derivation via an opaque data structure of type `psa_…
365 const psa_crypto_driver_key_derivation_inputs_t *inputs,
371 …NPUT_TYPE_INVALID`: the step is invalid for the algorithm of the operation that the inputs are for.
372 …ITTED`: the step is optional for the algorithm of the operation that the inputs are for, and has b…
373 …ake a copy of the input data (design note: [why a copy?](#key-derivation-inputs-and-buffer-ownersh…
379 const psa_crypto_driver_key_derivation_inputs_t *inputs,
[all …]
/mbedtls-latest/docs/architecture/
Dpsa-shared-memory.md21 …I function may be in shared memory (as opposed to environments where the inputs are always copied …
35inputs and outputs. This models an ideal world where the content of input and output buffers is no…
107 …in many circumstances. It is ok to write data that is independent of the inputs (and not otherwise…
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
170 Message inputs to hash, MAC and key derivation operations are at a low risk of [read-read inconsist…
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**.
206 …ollow the same rules as [symmetric cryptography inputs with small output](#symmetric-cryptography-
218 * Plaintext/ciphertext inputs and outputs for cipher and AEAD.
[all …]
/mbedtls-latest/programs/fuzz/
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-latest/docs/architecture/testing/
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-latest/tests/include/test/drivers/
Dpake.h52 const psa_crypto_driver_pake_inputs_t *inputs);
/mbedtls-latest/scripts/data_files/driver_templates/
DOS-template-opaque.jinja2 Expected inputs:
DOS-template-transparent.jinja2 Expected inputs:
Dpsa_crypto_driver_wrappers.h.jinja2706 const psa_crypto_driver_pake_inputs_t *inputs )
2711 PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime( &inputs->attributes ) );
2723 inputs );
2733 inputs );
/mbedtls-latest/3rdparty/p256-m/p256-m/
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

12