| /mbedtls/tests/scripts/ |
| A D | test_psa_constant_names.py | 30 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 D | psa_crypto_pake.c | 156 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 D | psa_crypto.c | 8317 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 D | psa_crypto_pake.h | 38 const psa_crypto_driver_pake_inputs_t *inputs);
|
| A D | psa_crypto_driver_wrappers.h | 2742 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 D | crypto_extra.h | 1064 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 D | test_driver_pake.c | 26 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 D | test_suite_psa_crypto_pake.function | 209 * 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 D | test_suite_psa_crypto.pbkdf2.data | 10 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 D | test_suite_bignum_mod.misc.data | 22 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 D | test_suite_cmac.function | 144 /* Validate the test inputs */ 225 /* Validate the test inputs */
|
| A D | test_suite_bignum_mod.function | 250 /* 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 D | test_suite_bignum_mod_raw.function | 566 /* Modulus gives the number of limbs; all inputs must have the same. */ 700 /* Read inputs */ 764 /* Read inputs */ 828 /* Read inputs */
|
| A D | test_suite_bignum_core.function | 635 /* 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 D | test_suite_psa_crypto.function | 791 * 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 D | test_suite_ssl_decrypt.function | 3 * testing (using malformed inputs). */
|
| /mbedtls/docs/proposed/ |
| A D | psa-driver-interface.md | 310 * 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 D | README.md | 6 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 D | pake.h | 52 const psa_crypto_driver_pake_inputs_t *inputs);
|
| /mbedtls/scripts/data_files/driver_templates/ |
| A D | OS-template-opaque.jinja | 2 Expected inputs:
|
| A D | OS-template-transparent.jinja | 2 Expected inputs:
|
| A D | psa_crypto_driver_wrappers.h.jinja | 2705 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 D | psa-shared-memory.md | 35 …inputs 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 D | driver-interface-test-strategy.md | 25 …lidate that the proper function is called, that it receives the expected inputs and that it produc… 50 #### SE driver inputs 56 …inputs 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 D | README.md | 40 - 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
|