Home
last modified time | relevance | path

Searched refs:QCryptoCipher (Results 1 – 21 of 21) sorted by relevance

/openbmc/qemu/include/crypto/
H A Dcipher.h26 typedef struct QCryptoCipher QCryptoCipher; typedef
80 struct QCryptoCipher { struct
159 QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgo alg,
171 void qcrypto_cipher_free(QCryptoCipher *cipher);
173 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QCryptoCipher, qcrypto_cipher_free)
190 int qcrypto_cipher_encrypt(QCryptoCipher *cipher,
212 int qcrypto_cipher_decrypt(QCryptoCipher *cipher,
234 int qcrypto_cipher_setiv(QCryptoCipher *cipher,
H A Dblock.h267 QCryptoCipher *qcrypto_block_get_cipher(QCryptoBlock *block);
/openbmc/qemu/crypto/
H A Dcipherpriv.h21 int (*cipher_encrypt)(QCryptoCipher *cipher,
27 int (*cipher_decrypt)(QCryptoCipher *cipher,
33 int (*cipher_setiv)(QCryptoCipher *cipher,
37 void (*cipher_free)(QCryptoCipher *cipher);
44 extern QCryptoCipher *
H A Dcipher.c151 QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgo alg, in qcrypto_cipher_new()
156 QCryptoCipher *cipher = NULL; in qcrypto_cipher_new()
176 int qcrypto_cipher_encrypt(QCryptoCipher *cipher, in qcrypto_cipher_encrypt()
187 int qcrypto_cipher_decrypt(QCryptoCipher *cipher, in qcrypto_cipher_decrypt()
198 int qcrypto_cipher_setiv(QCryptoCipher *cipher, in qcrypto_cipher_setiv()
207 void qcrypto_cipher_free(QCryptoCipher *cipher) in qcrypto_cipher_free()
H A Dblock.c222 QCryptoCipher *qcrypto_block_get_cipher(QCryptoBlock *block) in qcrypto_block_get_cipher()
235 static QCryptoCipher *qcrypto_block_pop_cipher(QCryptoBlock *block, in qcrypto_block_pop_cipher()
253 QCryptoCipher *cipher) in qcrypto_block_push_cipher()
259 block->free_ciphers = g_renew(QCryptoCipher *, in qcrypto_block_push_cipher()
275 QCryptoCipher *cipher; in qcrypto_block_init_cipher()
368 typedef int (*QCryptoCipherEncDecFunc)(QCryptoCipher *cipher,
374 static int do_qcrypto_block_cipher_encdec(QCryptoCipher *cipher, in do_qcrypto_block_cipher_encdec()
428 int qcrypto_block_cipher_decrypt_helper(QCryptoCipher *cipher, in qcrypto_block_cipher_decrypt_helper()
443 int qcrypto_block_cipher_encrypt_helper(QCryptoCipher *cipher, in qcrypto_block_cipher_encrypt_helper()
465 QCryptoCipher *cipher = qcrypto_block_pop_cipher(block, errp); in qcrypto_block_decrypt_helper()
[all …]
H A Dcipher-nettle.c.inc46 static void qcrypto_cipher_ctx_free(QCryptoCipher *ctx)
51 static int qcrypto_cipher_no_setiv(QCryptoCipher *cipher,
61 static int NAME##_setiv(QCryptoCipher *cipher, const uint8_t *iv, \
75 static int NAME##_encrypt_ecb(QCryptoCipher *cipher, const void *in, \
85 static int NAME##_decrypt_ecb(QCryptoCipher *cipher, const void *in, \
104 static int NAME##_encrypt_cbc(QCryptoCipher *cipher, const void *in, \
114 static int NAME##_decrypt_cbc(QCryptoCipher *cipher, const void *in, \
133 static int NAME##_encrypt_ctr(QCryptoCipher *cipher, const void *in, \
152 static int NAME##_encrypt_xts(QCryptoCipher *cipher, const void *in, \
163 static int NAME##_decrypt_xts(QCryptoCipher *ciphe
[all...]
H A Dcipher-afalg.c62 QCryptoCipher *
118 qcrypto_afalg_cipher_setiv(QCryptoCipher *cipher, in qcrypto_afalg_cipher_setiv()
201 qcrypto_afalg_cipher_encrypt(QCryptoCipher *cipher, in qcrypto_afalg_cipher_encrypt()
211 qcrypto_afalg_cipher_decrypt(QCryptoCipher *cipher, in qcrypto_afalg_cipher_decrypt()
220 static void qcrypto_afalg_comm_ctx_free(QCryptoCipher *cipher) in qcrypto_afalg_comm_ctx_free()
H A Dblockpriv.h41 QCryptoCipher **free_ciphers;
102 int qcrypto_block_cipher_decrypt_helper(QCryptoCipher *cipher,
111 int qcrypto_block_cipher_encrypt_helper(QCryptoCipher *cipher,
H A Dcipher-gcrypt.c.inc113 QCryptoCipher base;
119 static void qcrypto_gcrypt_ctx_free(QCryptoCipher *cipher)
127 static int qcrypto_gcrypt_encrypt(QCryptoCipher *cipher, const void *in,
149 static int qcrypto_gcrypt_decrypt(QCryptoCipher *cipher, const void *in,
171 static int qcrypto_gcrypt_setiv(QCryptoCipher *cipher,
194 static int qcrypto_gcrypt_ctr_setiv(QCryptoCipher *cipher,
231 static QCryptoCipher *qcrypto_cipher_ctx_new(QCryptoCipherAlgo alg,
H A Dcipher-gnutls.c.inc58 QCryptoCipher base;
68 qcrypto_gnutls_cipher_free(QCryptoCipher *cipher)
81 qcrypto_gnutls_cipher_encrypt(QCryptoCipher *cipher,
141 qcrypto_gnutls_cipher_decrypt(QCryptoCipher *cipher,
201 qcrypto_gnutls_cipher_setiv(QCryptoCipher *cipher,
226 static QCryptoCipher *qcrypto_cipher_ctx_new(QCryptoCipherAlgo alg,
H A Dafalgpriv.h36 QCryptoCipher base;
H A Dcipher-stub.c.inc16 static QCryptoCipher *qcrypto_cipher_ctx_new(QCryptoCipherAlgo alg,
H A Divgen-essiv.c27 QCryptoCipher *cipher;
H A Dsecret_common.c42 g_autoptr(QCryptoCipher) aes = NULL; in qcrypto_secret_decrypt()
H A Dblock-luks.c716 g_autoptr(QCryptoCipher) cipher = NULL; in qcrypto_block_luks_store_key()
889 g_autoptr(QCryptoCipher) cipher = NULL; in qcrypto_block_luks_load_key()
/openbmc/qemu/tests/unit/
H A Dtest-crypto-cipher.c653 QCryptoCipher *cipher; in test_cipher()
747 QCryptoCipher *cipher; in test_cipher_null_iv()
773 QCryptoCipher *cipher; in test_cipher_short_plaintext()
H A Dtest-crypto-block.c251 QCryptoCipher *cipher; in test_block_assert_setup()
/openbmc/qemu/tests/bench/
H A Dbenchmark-crypto-cipher.c22 QCryptoCipher *cipher; in test_cipher_speed()
/openbmc/qemu/backends/
H A Dcryptodev-builtin.c44 QCryptoCipher *cipher;
223 QCryptoCipher *cipher; in cryptodev_builtin_create_cipher_session()
/openbmc/qemu/hw/vmapple/
H A Daes.c276 g_autoptr(QCryptoCipher) cipher = NULL; in cmd_data()
/openbmc/qemu/ui/
H A Dvnc.c2816 QCryptoCipher *cipher = NULL; in protocol_client_auth_vnc()