Lines Matching refs:info

13 /* Check the internal consistency of a cipher info structure, and
16 const mbedtls_cipher_info_t *info)
20 TEST_ASSERT(info != NULL);
21 TEST_EQUAL(type, mbedtls_cipher_info_get_type(info));
22 TEST_EQUAL(type, info->type);
23 TEST_ASSERT(mbedtls_cipher_info_from_type(type) == info);
25 TEST_EQUAL(info->mode, mbedtls_cipher_info_get_mode(info));
29 TEST_ASSERT(mbedtls_cipher_info_get_name(info) == info->name);
30 TEST_ASSERT(mbedtls_cipher_info_from_string(info->name) == info);
32 key_bitlen = mbedtls_cipher_info_get_key_bitlen(info);
33 block_size = mbedtls_cipher_info_get_block_size(info);
34 iv_size = mbedtls_cipher_info_get_iv_size(info);
35 if (info->type == MBEDTLS_CIPHER_NULL) {
39 } else if (info->mode == MBEDTLS_MODE_XTS) {
43 } else if (!strncmp(info->name, "DES-EDE3-", 9)) {
45 TEST_ASSERT(!mbedtls_cipher_info_has_variable_key_bitlen(info));
47 } else if (!strncmp(info->name, "DES-EDE-", 8)) {
49 TEST_ASSERT(!mbedtls_cipher_info_has_variable_key_bitlen(info));
51 } else if (!strncmp(info->name, "DES-", 4)) {
53 TEST_ASSERT(!mbedtls_cipher_info_has_variable_key_bitlen(info));
55 } else if (!strncmp(info->name, "AES", 3)) {
59 TEST_ASSERT(!mbedtls_cipher_info_has_variable_key_bitlen(info));
70 if (strstr(info->name, "-ECB") != NULL) {
72 TEST_ASSERT(!mbedtls_cipher_info_has_variable_iv_size(info));
73 } else if (strstr(info->name, "-CBC") != NULL ||
74 strstr(info->name, "-CTR") != NULL) {
76 TEST_ASSERT(!mbedtls_cipher_info_has_variable_iv_size(info));
77 } else if (strstr(info->name, "-GCM") != NULL) {
79 TEST_ASSERT(mbedtls_cipher_info_has_variable_iv_size(info));
156 const mbedtls_cipher_info_t *info =
159 if (!check_cipher_info(*cipher_type, info)) {
333 /* Check and get info structures */
389 /* Check and get info structures */
527 /* Check and get info structures */
1201 /* Check and get info structures */