Lines Matching refs:info
16 /* Check the internal consistency of a cipher info structure, and
19 const mbedtls_cipher_info_t *info )
23 TEST_ASSERT( info != NULL );
24 TEST_EQUAL( type, mbedtls_cipher_info_get_type( info ) );
25 TEST_EQUAL( type, info->type );
26 TEST_ASSERT( mbedtls_cipher_info_from_type( type ) == info );
28 TEST_EQUAL( info->mode, mbedtls_cipher_info_get_mode( info ) );
32 TEST_ASSERT( mbedtls_cipher_info_get_name( info ) == info->name );
33 TEST_ASSERT( mbedtls_cipher_info_from_string( info->name ) == info );
35 key_bitlen = mbedtls_cipher_info_get_key_bitlen( info );
36 if( info->type == MBEDTLS_CIPHER_NULL )
38 else if( info->mode == MBEDTLS_MODE_XTS )
44 else if( ! strncmp( info->name, "DES-EDE3-", 9 ) )
48 else if( ! strncmp( info->name, "DES-EDE-", 8 ) )
52 else if( ! strncmp( info->name, "DES-", 4 ) )
138 const mbedtls_cipher_info_t *info =
141 if( ! check_cipher_info( *cipher_type, info ) )
311 /* Check and get info structures */
367 /* Check and get info structures */
499 /* Check and get info structures */