Lines Matching refs:def
72 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_list() local
77 def = mbedtls_cipher_definitions; in mbedtls_cipher_list()
80 while( def->type != 0 ) in mbedtls_cipher_list()
81 *type++ = (*def++).type; in mbedtls_cipher_list()
93 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_type() local
95 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_type()
96 if( def->type == cipher_type ) in mbedtls_cipher_info_from_type()
97 return( def->info ); in mbedtls_cipher_info_from_type()
104 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_string() local
109 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_string()
110 if( ! strcmp( def->info->name, cipher_name ) ) in mbedtls_cipher_info_from_string()
111 return( def->info ); in mbedtls_cipher_info_from_string()
120 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_values() local
122 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_values()
123 if( def->info->base->cipher == cipher_id && in mbedtls_cipher_info_from_values()
124 def->info->key_bitlen == (unsigned) key_bitlen && in mbedtls_cipher_info_from_values()
125 def->info->mode == mode ) in mbedtls_cipher_info_from_values()
126 return( def->info ); in mbedtls_cipher_info_from_values()