Lines Matching refs:cipher
2 * QEMU Crypto cipher built-in algorithms
48 static void qcrypto_cipher_ctx_free(QCryptoCipher *cipher)
50 g_free(cipher);
53 static int qcrypto_cipher_no_setiv(QCryptoCipher *cipher,
138 static int qcrypto_cipher_aes_encrypt_ecb(QCryptoCipher *cipher,
143 = container_of(cipher, QCryptoCipherBuiltinAES, base);
152 static int qcrypto_cipher_aes_decrypt_ecb(QCryptoCipher *cipher,
157 = container_of(cipher, QCryptoCipherBuiltinAES, base);
166 static int qcrypto_cipher_aes_encrypt_cbc(QCryptoCipher *cipher,
171 = container_of(cipher, QCryptoCipherBuiltinAES, base);
180 static int qcrypto_cipher_aes_decrypt_cbc(QCryptoCipher *cipher,
185 = container_of(cipher, QCryptoCipherBuiltinAES, base);
194 static int qcrypto_cipher_aes_setiv(QCryptoCipher *cipher, const uint8_t *iv,
198 = container_of(cipher, QCryptoCipherBuiltinAES, base);
294 "Unsupported cipher algorithm %s",
300 error_setg(errp, "Unsupported cipher mode %s",