Lines Matching refs:tvi
1839 int tvi, idx;
1852 for (tvi=0; tvi < DIM (tv); tvi++)
1853 if (tv[tvi].mode == requested_mode)
1855 if (tvi == DIM (tv))
1858 err = _gcry_cipher_open (&hdenc, GCRY_CIPHER_AES, tv[tvi].mode, 0);
1861 err = _gcry_cipher_open (&hddec, GCRY_CIPHER_AES, tv[tvi].mode, 0);
1864 err = _gcry_cipher_setkey (hdenc, tv[tvi].key, sizeof tv[tvi].key);
1866 err = _gcry_cipher_setkey (hddec, tv[tvi].key, sizeof tv[tvi].key);
1869 err = _gcry_cipher_setiv (hdenc, tv[tvi].iv, sizeof tv[tvi].iv);
1871 err = _gcry_cipher_setiv (hddec, tv[tvi].iv, sizeof tv[tvi].iv);
1874 for (idx=0; idx < DIM (tv[tvi].data); idx++)
1877 tv[tvi].data[idx].input,
1878 sizeof tv[tvi].data[idx].input);
1881 if (memcmp (scratch, tv[tvi].data[idx].output, sizeof scratch))
1884 tv[tvi].data[idx].output,
1885 sizeof tv[tvi].data[idx].output);
1888 if (memcmp (scratch, tv[tvi].data[idx].input, sizeof scratch))