Lines Matching refs:key
137 unsigned char key[32];
155 memset( key, 0x2a, sizeof( key ) );
166 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_dec, key, key_len, MBEDTLS_DECRYPT ) );
167 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_enc, key, key_len, MBEDTLS_ENCRYPT ) );
262 unsigned char key[32];
273 memset( key, 0, 32 );
287 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, key_len, MBEDTLS_ENCRYPT ) );
312 unsigned char key[32];
323 memset( key, 0, 32 );
337 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_dec, key, 128, MBEDTLS_DECRYPT ) );
367 unsigned char key[32];
381 memset( key, 0, 32 );
398 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_dec, key, key_len, MBEDTLS_DECRYPT ) );
399 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx_enc, key, key_len, MBEDTLS_ENCRYPT ) );
461 unsigned char key[50];
477 memset( key, 0x00, sizeof( key ) );
485 key_len = unhexify( key, hex_key );
500 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, 8 * key_len, MBEDTLS_DECRYPT ) );
542 unsigned char key[50];
556 memset( key, 0x00, sizeof( key ) );
565 key_len = unhexify( key, hex_key );
574 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, 8 * key_len, MBEDTLS_DECRYPT ) );
629 unsigned char key[50];
639 memset( key, 0x00, sizeof( key ) );
648 key_len = unhexify( key, hex_key );
654 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, 8 * key_len, operation ) );