Lines Matching refs:def
102 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_list() local
107 def = mbedtls_cipher_definitions; in mbedtls_cipher_list()
110 while( def->type != 0 ) in mbedtls_cipher_list()
111 *type++ = (*def++).type; in mbedtls_cipher_list()
124 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_type() local
126 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_type()
127 if( def->type == cipher_type ) in mbedtls_cipher_info_from_type()
128 return( def->info ); in mbedtls_cipher_info_from_type()
136 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_string() local
141 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_string()
142 if( ! strcmp( def->info->name, cipher_name ) ) in mbedtls_cipher_info_from_string()
143 return( def->info ); in mbedtls_cipher_info_from_string()
153 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_values() local
155 for( def = mbedtls_cipher_definitions; def->info != NULL; def++ ) in mbedtls_cipher_info_from_values()
156 if( def->info->base->cipher == cipher_id && in mbedtls_cipher_info_from_values()
157 def->info->key_bitlen == (unsigned) key_bitlen && in mbedtls_cipher_info_from_values()
158 def->info->mode == mode ) in mbedtls_cipher_info_from_values()
159 return( def->info ); in mbedtls_cipher_info_from_values()