File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,15 @@ void cipher_special_behaviours( )
98
98
mbedtls_cipher_context_t ctx;
99
99
unsigned char input[32];
100
100
unsigned char output[32];
101
+ #if defined (MBEDTLS_CIPHER_MODE_CBC)
101
102
unsigned char iv[32];
103
+ #endif
102
104
size_t olen = 0;
103
105
104
106
mbedtls_cipher_init( &ctx );
105
107
memset( input, 0, sizeof( input ) );
106
108
memset( output, 0, sizeof( output ) );
109
+ #if defined (MBEDTLS_CIPHER_MODE_CBC)
107
110
memset( iv, 0, sizeof( iv ) );
108
111
109
112
/* Check and get info structures */
@@ -121,6 +124,7 @@ void cipher_special_behaviours( )
121
124
== MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA );
122
125
123
126
mbedtls_cipher_free( &ctx );
127
+ #endif /* MBEDTLS_CIPHER_MODE_CBC */
124
128
cipher_info = mbedtls_cipher_info_from_type( MBEDTLS_CIPHER_AES_128_ECB );
125
129
TEST_ASSERT( NULL != cipher_info );
126
130
You can’t perform that action at this time.
0 commit comments