Lines Matching full:cipher
2 * QEMU Crypto cipher speed benchmark
16 #include "crypto/cipher.h"
22 QCryptoCipher *cipher; in test_cipher_speed() local
52 cipher = qcrypto_cipher_new(alg, mode, in test_cipher_speed()
54 g_assert(cipher != NULL); in test_cipher_speed()
57 g_assert(qcrypto_cipher_setiv(cipher, in test_cipher_speed()
64 g_assert(qcrypto_cipher_encrypt(cipher, in test_cipher_speed()
81 g_assert(qcrypto_cipher_decrypt(cipher, in test_cipher_speed()
95 qcrypto_cipher_free(cipher); in test_cipher_speed()
175 #define ADD_TEST(mode, cipher, keysize, chunk) \ in main() argument
179 "/crypto/cipher/" #mode "-" #cipher "-" #keysize "/chunk-" #chunk, \ in main()
181 test_cipher_speed_ ## mode ## _ ## cipher ## _ ## keysize) in main()