/mbedtls-development/tests/suites/ |
A D | test_suite_oid.data | 10 OID get Ext Key Usage - id-kp-serverAuth 13 OID get Ext Key Usage - id-kp-clientAuth 16 OID get Ext Key Usage - id-kp-codeSigning 61 OID hash id - id-md5 65 OID hash id - id-sha1 69 OID hash id - id-sha224 73 OID hash id - id-sha256 77 OID hash id - id-sha384 81 OID hash id - id-sha512 85 OID hash id - id-ripemd160 [all …]
|
A D | test_suite_psa_crypto_se_driver_hal_mocks.function | 91 psa_key_id_t id; 97 for( id = 0; id <= MAX_KEY_ID_FOR_TEST; id++ ) 353 psa_set_key_id( &attributes, id ); 368 mock_import_data.attributes.core.id, id ) ); 424 psa_set_key_id( &attributes, id ); 432 TEST_ASSERT( psa_export_key( id, 474 psa_set_key_id( &attributes, id ); 487 mock_generate_data.attributes.core.id, id ) ); 544 psa_set_key_id( &attributes, id ); 601 psa_set_key_id( &attributes, id ); [all …]
|
A D | test_suite_psa_crypto_attributes.data | 5 PSA key attributes: id only 11 PSA key attributes: id then back to volatile 14 PSA key attributes: id then back to non local volatile 17 PSA key attributes: id then lifetime 20 PSA key attributes: lifetime then id 23 PSA key attributes: non local volatile lifetime then id
|
A D | test_suite_ecp.function | 98 void ecp_test_vect_restart( int id, 380 void ecp_test_mul( int id, data_t * n_hex, 430 void ecp_test_mul_rng( int id, data_t * d_hex) 456 void ecp_muladd( int id, 503 void ecp_fast_mod( int id, char * N_str ) 647 void ecp_tls_write_read_point( int id ) 723 void ecp_tls_write_read_group( int id ) 744 TEST_ASSERT( grp1.id == grp2.id ); 789 if( id != MBEDTLS_ECP_DP_NONE ) 804 void mbedtls_ecp_gen_keypair( int id ) [all …]
|
A D | test_suite_psa_crypto_slot_management.data | 16 Persistent slot, check after closing, id=min 22 Persistent slot, check after destroying, id=min 28 Persistent slot, check after purging, id=min 37 Persistent slot, check after closing, id=max 40 Persistent slot, check after destroying, id=max 43 Persistent slot, check after purging, id=max 46 Persistent slot, check after restart, id=max 147 Create failure: invalid key id (1) for a volatile key 150 Create failure: invalid key id (random seed UID) 154 Create failure: invalid key id (reserved range) [all …]
|
A D | test_suite_psa_crypto_slot_management.function | 221 TEST_USES_KEY_ID( id ); 226 psa_set_key_id( &attributes, id ); 252 PSA_ASSERT( psa_close_key( id ) ); 368 TEST_USES_KEY_ID( id ); 373 psa_set_key_id( &attributes, id ); 383 PSA_ASSERT( psa_close_key( id ) ); 392 PSA_ASSERT( psa_close_key( id ) ); 405 PSA_ASSERT( psa_export_key( id, 411 PSA_ASSERT( psa_close_key( id ) ); 454 TEST_USES_KEY_ID( id ); [all …]
|
A D | test_suite_psa_crypto_se_driver_hal.function | 870 TEST_USES_KEY_ID( id ); 1004 TEST_USES_KEY_ID( id ); 1091 TEST_USES_KEY_ID( id ); 1122 if( ! smoke_test_key( id ) ) 1132 if( ! smoke_test_key( id ) ) 1162 TEST_USES_KEY_ID( id ); 1204 TEST_USES_KEY_ID( id ); 1287 TEST_USES_KEY_ID( id ); 1427 psa_destroy_key( id ); 1454 TEST_USES_KEY_ID( id ); [all …]
|
A D | test_suite_ecdsa.function | 11 void ecdsa_prim_zero( int id ) 25 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 ); 43 void ecdsa_prim_random( int id ) 60 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 ); 93 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 ); 159 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 ); 187 void ecdsa_write_read_zero( int id ) 201 TEST_ASSERT( mbedtls_ecdsa_genkey( &ctx, id, 247 void ecdsa_write_read_random( int id ) 265 TEST_ASSERT( mbedtls_ecdsa_genkey( &ctx, id, [all …]
|
A D | test_suite_ecdh.function | 63 void ecdh_primitive_random( int id ) 76 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 ); 102 void ecdh_primitive_testvec( int id, data_t * rnd_buf_A, char * xA_str, 118 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 ); 193 void ecdh_exchange( int id ) 207 TEST_ASSERT( mbedtls_ecdh_setup( &srv, id ) == 0 ); 237 void ecdh_restart( int id, data_t *dA, data_t *dB, data_t *z, 267 TEST_ASSERT( mbedtls_ecp_group_load( &grp, id ) == 0 ); 273 TEST_ASSERT( mbedtls_ecdh_setup( &srv, id ) == 0 );
|
A D | test_suite_psa_crypto_persistent_key.data | 55 Persistent key import (RSA) invalid key id (VENDOR_MIN) 59 Persistent key import (RSA) invalid key id (VOLATILE_MIN) 63 Persistent key import (RSA) invalid key id (VENDOR_MAX) 123 Destroy invalid id: 0 129 Destroy invalid id: 0xffffffff
|
A D | test_suite_psa_crypto_attributes.function | 16 mbedtls_svc_key_id_t id = mbedtls_svc_key_id_make( owner_id_arg, id_arg ); 33 psa_set_key_id( &attributes, id ); 41 psa_get_key_id( &attributes ), id ) );
|
A D | test_suite_psa_crypto_se_driver_hal.data | 165 Key registration: key id out of range 168 Key registration: key id min vendor 171 Key registration: key id max vendor except volatile 174 Key registration: key id min volatile 177 Key registration: key id max volatile
|
/mbedtls-development/library/ |
A D | mps_trace.c | 57 void mbedtls_mps_trace_print_msg( int id, int line, const char *format, ... ) in mbedtls_mps_trace_print_msg() argument 69 mbedtls_printf( "[%d|L%d]: %s\n", id, line, str ); in mbedtls_mps_trace_print_msg() 86 void mbedtls_mps_trace_color( int id ) in mbedtls_mps_trace_color() argument 88 if( id > (int) ( sizeof( colors ) / sizeof( *colors ) ) ) in mbedtls_mps_trace_color() 90 printf( "%s", colors[ id ] ); in mbedtls_mps_trace_color()
|
A D | psa_crypto_slot_management.c | 132 if( mbedtls_svc_key_id_equal( key, slot->attr.id ) ) in psa_get_and_lock_key_slot_in_memory() 289 MBEDTLS_SVC_KEY_ID_GET_KEY_ID( slot->attr.id ) ) ) in psa_load_builtin_key_into_slot() 296 slot->attr.id, &lifetime, &slot_number ); in psa_load_builtin_key_into_slot() 302 psa_set_key_id( &attributes, slot->attr.id ); in psa_load_builtin_key_into_slot() 374 (*p_slot)->attr.id = key; in psa_get_and_lock_key_slot() 568 psa_key_id_t id = MBEDTLS_SVC_KEY_ID_GET_KEY_ID( slot->attr.id ); in mbedtls_psa_get_stats() local 570 if( id > stats->max_open_internal_key_id ) in mbedtls_psa_get_stats() 571 stats->max_open_internal_key_id = id; in mbedtls_psa_get_stats() 576 psa_key_id_t id = MBEDTLS_SVC_KEY_ID_GET_KEY_ID( slot->attr.id ); in mbedtls_psa_get_stats() local 578 if( id > stats->max_open_external_key_id ) in mbedtls_psa_get_stats() [all …]
|
A D | psa_crypto_driver_wrappers.c | 1145 switch( operation->id ) in psa_driver_wrapper_cipher_set_iv() 1183 switch( operation->id ) in psa_driver_wrapper_cipher_update() 1227 switch( operation->id ) in psa_driver_wrapper_cipher_finish() 1264 switch( operation->id ) in psa_driver_wrapper_cipher_abort() 1398 switch( operation->id ) in psa_driver_wrapper_hash_update() 1424 switch( operation->id ) in psa_driver_wrapper_hash_finish() 1448 switch( operation->id ) in psa_driver_wrapper_hash_abort() 1671 switch( operation->id ) in psa_driver_wrapper_aead_set_nonce() 1705 switch( operation->id ) in psa_driver_wrapper_aead_set_lengths() 1739 switch( operation->id ) in psa_driver_wrapper_aead_update_ad() [all …]
|
A D | ecjpake.c | 153 ctx->grp.id == MBEDTLS_ECP_DP_NONE || in mbedtls_ecjpake_check() 205 const char *id, in ecjpake_hash() argument 212 const size_t id_len = strlen( id ); in ecjpake_hash() 229 memcpy( p, id, id_len ); in ecjpake_hash() 252 const char *id, in ecjpake_zkp_read() argument 325 const char *id, in ecjpake_zkp_write() argument 385 const char *id, in ecjpake_kkp_read() argument 423 const char *id, in ecjpake_kkp_write() argument 460 const char *id, in ecjpake_kkpp_read() argument 495 const char *id, in ecjpake_kkpp_write() argument [all …]
|
A D | mps_trace.h | 125 void mbedtls_mps_trace_color( int id ); 128 void mbedtls_mps_trace_print_msg( int id, int line, const char *format, ... );
|
A D | psa_crypto.c | 1076 psa_crypto_transaction.key.id = slot->attr.id; in psa_destroy_key() 1646 psa_crypto_transaction.key.id = slot->attr.id; in psa_start_key_creation() 2111 if( operation->id == 0 ) in psa_hash_abort() 2115 operation->id = 0; in psa_hash_abort() 2126 if( operation->id != 0 ) in psa_hash_setup() 2157 if( operation->id == 0 ) in psa_hash_update() 2183 if( operation->id == 0 ) in psa_hash_finish() 2283 if( operation->id == 0 ) in psa_mac_abort() 2289 operation->id = 0; in psa_mac_abort() 2344 if( operation->id != 0 ) in psa_mac_setup() [all …]
|
A D | pkparse.c | 389 const mbedtls_ecp_group_id *id; in pk_group_id_from_group() local 393 for( id = mbedtls_ecp_grp_id_list(); *id != MBEDTLS_ECP_DP_NONE; id++ ) in pk_group_id_from_group() 397 MBEDTLS_MPI_CHK( mbedtls_ecp_group_load( &ref, *id ) ); in pk_group_id_from_group() 418 *grp_id = *id; in pk_group_id_from_group() 420 if( ret == 0 && *id == MBEDTLS_ECP_DP_NONE ) in pk_group_id_from_group() 480 if( grp->id != MBEDTLS_ECP_DP_NONE && grp->id != grp_id ) in pk_use_ecparams()
|
/mbedtls-development/include/psa/ |
A D | crypto_struct.h | 90 unsigned int MBEDTLS_PRIVATE(id); 109 unsigned int MBEDTLS_PRIVATE(id); 138 unsigned int MBEDTLS_PRIVATE(id); 160 unsigned int MBEDTLS_PRIVATE(id); 327 mbedtls_svc_key_id_t MBEDTLS_PRIVATE(id); 364 attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id) = key; in psa_set_key_id() 378 return( attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id) ); in psa_get_key_id() 385 attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id).MBEDTLS_PRIVATE(owner) = owner; in mbedtls_set_key_owner_id() 396 attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id).MBEDTLS_PRIVATE(key_id) = 0; in psa_set_key_lifetime() 398 attributes->MBEDTLS_PRIVATE(core).MBEDTLS_PRIVATE(id) = 0; in psa_set_key_lifetime()
|
A D | crypto_values.h | 2202 #define MBEDTLS_SVC_KEY_ID_GET_KEY_ID( id ) ( id ) argument 2203 #define MBEDTLS_SVC_KEY_ID_GET_OWNER_ID( id ) ( 0 ) argument 2245 #define MBEDTLS_SVC_KEY_ID_GET_KEY_ID( id ) ( ( id ).key_id ) argument 2246 #define MBEDTLS_SVC_KEY_ID_GET_OWNER_ID( id ) ( ( id ).owner ) argument
|
/mbedtls-development/scripts/mbedtls_dev/ |
A D | psa_storage.py | 106 id: Optional[int] = None, #pylint: disable=redefined-builtin 114 self.id = id #pylint: disable=invalid-name #type: Optional[int] 178 id=1, lifetime=0x00000001, 189 id=1, lifetime='PSA_KEY_LIFETIME_PERSISTENT',
|
/mbedtls-development/tests/include/alt-dummy/ |
A D | ecp_alt.h | 24 const mbedtls_ecp_group_id id; member
|
/mbedtls-development/programs/test/ |
A D | udp_proxy.c | 706 size_t id; in handle_message() local 725 id = cur.len % sizeof( held ); in handle_message() 767 held[id] < HOLD_MAX && in handle_message() 770 ++held[id]; in handle_message() 780 held[id] < HOLD_MAX && in handle_message() 783 ++held[id]; in handle_message()
|
/mbedtls-development/include/mbedtls/ |
A D | pkcs12.h | 103 mbedtls_md_type_t mbedtls_md, int id, int iterations );
|