Home
last modified time | relevance | path

Searched refs:key_length (Results 1 – 13 of 13) sorted by relevance

/openthread-2.7.6/third_party/mbedtls/repo/tests/src/drivers/
Dcipher.c48 const uint8_t *key, size_t key_length, in test_transparent_cipher_oneshot() argument
85 key_length * 8, in test_transparent_cipher_oneshot()
115 key_length * 8, direction ); in test_transparent_cipher_oneshot()
175 const uint8_t *key, size_t key_length, in test_transparent_cipher_encrypt() argument
184 key, key_length, in test_transparent_cipher_encrypt()
192 const uint8_t *key, size_t key_length, in test_transparent_cipher_decrypt() argument
201 key, key_length, in test_transparent_cipher_decrypt()
211 const uint8_t *key, size_t key_length, in test_transparent_cipher_setup() argument
241 key_length * 8, in test_transparent_cipher_setup()
255 key_length * 8, direction ); in test_transparent_cipher_setup()
[all …]
Dsignature.c47 const uint8_t *key, size_t key_length, in test_transparent_signature_sign_hash() argument
110 key, key_length ) ); in test_transparent_signature_sign_hash()
138 (void) key_length; in test_transparent_signature_sign_hash()
150 const uint8_t *key, size_t key_length, in test_opaque_signature_sign_hash() argument
157 (void) key_length; in test_opaque_signature_sign_hash()
169 const uint8_t *key, size_t key_length, in test_transparent_signature_verify_hash() argument
240 key, key_length ) ); in test_transparent_signature_verify_hash()
243 MBEDTLS_MPI_CHK( mbedtls_mpi_read_binary( &ecp.d, key, key_length ) ); in test_transparent_signature_verify_hash()
261 (void) key_length; in test_transparent_signature_verify_hash()
275 const uint8_t *key, size_t key_length, in test_opaque_signature_verify_hash() argument
[all …]
Dkey_management.c44 uint8_t *key, size_t key_size, size_t *key_length ) in test_transparent_generate_key() argument
62 *key_length = test_driver_key_management_hooks.forced_output_length; in test_transparent_generate_key()
113 *key_length = bytes; in test_transparent_generate_key()
131 uint8_t *key, size_t key_size, size_t *key_length ) in test_opaque_generate_key() argument
136 (void) key_length; in test_opaque_generate_key()
254 const uint8_t *key, size_t key_length, in test_transparent_export_public_key() argument
272 if( key == NULL || key_length == 0 ) in test_transparent_export_public_key()
311 key_length ) ); in test_transparent_export_public_key()
343 const uint8_t *key, size_t key_length, in test_opaque_export_public_key() argument
348 (void) key_length; in test_opaque_export_public_key()
/openthread-2.7.6/third_party/mbedtls/repo/tests/include/test/drivers/
Dcipher.h70 const uint8_t *key, size_t key_length,
77 const uint8_t *key, size_t key_length,
85 const uint8_t *key, size_t key_length,
91 const uint8_t *key, size_t key_length,
127 const uint8_t *key, size_t key_length,
134 const uint8_t *key, size_t key_length,
142 const uint8_t *key, size_t key_length,
148 const uint8_t *key, size_t key_length,
Dkey_management.h55 uint8_t *key, size_t key_size, size_t *key_length );
59 uint8_t *key, size_t key_size, size_t *key_length );
69 const uint8_t *key, size_t key_length,
74 const uint8_t *key, size_t key_length,
Dsignature.h55 const uint8_t *key, size_t key_length,
62 const uint8_t *key, size_t key_length,
69 const uint8_t *key, size_t key_length,
76 const uint8_t *key, size_t key_length,
/openthread-2.7.6/third_party/mbedtls/repo/include/psa/
Dcrypto_accel_driver.h196 size_t key_length);
313 size_t key_length,
344 size_t key_length,
560 size_t key_length,
612 size_t key_length,
/openthread-2.7.6/third_party/mbedtls/repo/library/
Dpkcs5.c222 uint32_t key_length, unsigned char *output ) in mbedtls_pkcs5_pbkdf2_hmac() argument
244 while( key_length ) in mbedtls_pkcs5_pbkdf2_hmac()
281 use_len = ( key_length < md_size ) ? key_length : md_size; in mbedtls_pkcs5_pbkdf2_hmac()
284 key_length -= (uint32_t) use_len; in mbedtls_pkcs5_pbkdf2_hmac()
Dcmac.c421 int mbedtls_aes_cmac_prf_128( const unsigned char *key, size_t key_length, in mbedtls_aes_cmac_prf_128() argument
441 if( key_length == MBEDTLS_AES_BLOCK_SIZE ) in mbedtls_aes_cmac_prf_128()
451 key_length, int_key ); in mbedtls_aes_cmac_prf_128()
Dpsa_crypto.c3211 size_t key_length, in psa_hmac_setup_internal() argument
3233 if( key_length > block_size ) in psa_hmac_setup_internal()
3235 status = psa_hash_compute( hash_alg, key, key_length, in psa_hmac_setup_internal()
3236 ipad, sizeof( ipad ), &key_length ); in psa_hmac_setup_internal()
3244 else if( key_length != 0 ) in psa_hmac_setup_internal()
3245 memcpy( ipad, key, key_length ); in psa_hmac_setup_internal()
3249 for( i = 0; i < key_length; i++ ) in psa_hmac_setup_internal()
3251 memset( ipad + key_length, 0x36, block_size - key_length ); in psa_hmac_setup_internal()
3255 for( i = 0; i < key_length; i++ ) in psa_hmac_setup_internal()
3257 memset( hmac->opad + key_length, 0x5C, block_size - key_length ); in psa_hmac_setup_internal()
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dpkcs5.h90 uint32_t key_length, unsigned char *output );
/openthread-2.7.6/third_party/mbedtls/repo/tests/suites/
Dtest_suite_psa_crypto.function306 size_t key_length,
317 PSA_ASSERT( psa_import_key( &attributes, key_bytes, key_length, &key ) );
339 size_t key_length,
350 PSA_ASSERT( psa_import_key( &attributes, key_bytes, key_length, &key ) );
/openthread-2.7.6/third_party/mbedtls/repo/
DChangeLog2357 mbedtls_cipher_info_t.key_length -> key_bitlen
2358 mbedtls_cipher_context_t.key_length -> key_bitlen