Lines Matching refs:key_len
133 void enc_dec_buf( int cipher_id, char *cipher_string, int key_len,
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 ) );
258 void enc_fail( int cipher_id, int pad_mode, int key_len,
287 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, key_len, MBEDTLS_ENCRYPT ) );
360 void enc_dec_buf_multipart( int cipher_id, int key_len, int first_length_val,
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 ) );
467 size_t key_len, iv_len, cipher_len, clear_len;
485 key_len = unhexify( key, hex_key );
500 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, 8 * key_len, MBEDTLS_DECRYPT ) );
549 size_t key_len, iv_len, cipher_len, clear_len, ad_len, tag_len;
565 key_len = unhexify( key, hex_key );
574 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, 8 * key_len, MBEDTLS_DECRYPT ) );
632 size_t key_len;
648 key_len = unhexify( key, hex_key );
654 TEST_ASSERT( 0 == mbedtls_cipher_setkey( &ctx, key, 8 * key_len, operation ) );