Lines Matching refs:plain
43 const u8 *plain; member
121 .plain = (in), \
127 #define CIPHER_TEST(algo, mode, key, iv, plain, cipher) \ argument
128 CIPHER_XTS_TEST(algo, mode, key, NULL, iv, plain, cipher)
140 .plain = (in), \
384 u8 *plain = NULL, *cipher = NULL; in test_cipher_perf() local
390 plain = (u8 *)memalign(CONFIG_SYS_CACHELINE_SIZE, data_size); in test_cipher_perf()
391 if (!plain) { in test_cipher_perf()
401 free(plain); in test_cipher_perf()
405 memset(plain, 0xab, data_size); in test_cipher_perf()
412 ret = crypto_mac(dev, ctx, plain, data_size, cipher); in test_cipher_perf()
414 ret = crypto_ae(dev, ctx, plain, data_size, in test_cipher_perf()
417 ret = crypto_cipher(dev, ctx, plain, cipher, in test_cipher_perf()
430 free(plain); in test_cipher_perf()
546 ret = crypto_mac(dev, &ctx, test_data->plain, in test_cipher_result()
550 test_data->plain, test_data->plain_len, in test_cipher_result()
554 ret = crypto_cipher(dev, &ctx, test_data->plain, in test_cipher_result()
581 test_data->plain, out, in test_cipher_result()