Lines Matching refs:cipher
653 QCryptoCipher *cipher; in test_cipher() local
676 cipher = qcrypto_cipher_new( in test_cipher()
681 g_assert(cipher != NULL); in test_cipher()
684 g_assert(cipher == NULL); in test_cipher()
703 g_assert(qcrypto_cipher_setiv(cipher, in test_cipher()
707 g_assert(qcrypto_cipher_encrypt(cipher, in test_cipher()
720 g_assert(qcrypto_cipher_setiv(cipher, in test_cipher()
724 g_assert(qcrypto_cipher_decrypt(cipher, in test_cipher()
741 qcrypto_cipher_free(cipher); in test_cipher()
747 QCryptoCipher *cipher; in test_cipher_null_iv() local
752 cipher = qcrypto_cipher_new( in test_cipher_null_iv()
757 g_assert(cipher != NULL); in test_cipher_null_iv()
761 qcrypto_cipher_encrypt(cipher, in test_cipher_null_iv()
767 qcrypto_cipher_free(cipher); in test_cipher_null_iv()
773 QCryptoCipher *cipher; in test_cipher_short_plaintext() local
781 cipher = qcrypto_cipher_new( in test_cipher_short_plaintext()
786 g_assert(cipher != NULL); in test_cipher_short_plaintext()
791 ret = qcrypto_cipher_encrypt(cipher, in test_cipher_short_plaintext()
802 ret = qcrypto_cipher_encrypt(cipher, in test_cipher_short_plaintext()
810 qcrypto_cipher_free(cipher); in test_cipher_short_plaintext()