Lines Matching refs:def
66 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_list() local
70 def = mbedtls_cipher_definitions; in mbedtls_cipher_list()
73 while (def->type != 0) { in mbedtls_cipher_list()
74 *type++ = (*def++).type; in mbedtls_cipher_list()
88 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_type() local
90 for (def = mbedtls_cipher_definitions; def->info != NULL; def++) { in mbedtls_cipher_info_from_type()
91 if (def->type == cipher_type) { in mbedtls_cipher_info_from_type()
92 return def->info; in mbedtls_cipher_info_from_type()
102 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_string() local
108 for (def = mbedtls_cipher_definitions; def->info != NULL; def++) { in mbedtls_cipher_info_from_string()
109 if (!strcmp(def->info->name, cipher_name)) { in mbedtls_cipher_info_from_string()
110 return def->info; in mbedtls_cipher_info_from_string()
122 const mbedtls_cipher_definition_t *def; in mbedtls_cipher_info_from_values() local
124 for (def = mbedtls_cipher_definitions; def->info != NULL; def++) { in mbedtls_cipher_info_from_values()
125 if (mbedtls_cipher_get_base(def->info)->cipher == cipher_id && in mbedtls_cipher_info_from_values()
126 mbedtls_cipher_info_get_key_bitlen(def->info) == (unsigned) key_bitlen && in mbedtls_cipher_info_from_values()
127 def->info->mode == mode) { in mbedtls_cipher_info_from_values()
128 return def->info; in mbedtls_cipher_info_from_values()