Lines Matching refs:cipher
2 * QEMU Crypto cipher libgcrypt algorithms
119 static void qcrypto_gcrypt_ctx_free(QCryptoCipher *cipher)
121 QCryptoCipherGcrypt *ctx = container_of(cipher, QCryptoCipherGcrypt, base);
127 static int qcrypto_gcrypt_encrypt(QCryptoCipher *cipher, const void *in,
130 QCryptoCipherGcrypt *ctx = container_of(cipher, QCryptoCipherGcrypt, base);
149 static int qcrypto_gcrypt_decrypt(QCryptoCipher *cipher, const void *in,
152 QCryptoCipherGcrypt *ctx = container_of(cipher, QCryptoCipherGcrypt, base);
171 static int qcrypto_gcrypt_setiv(QCryptoCipher *cipher,
175 QCryptoCipherGcrypt *ctx = container_of(cipher, QCryptoCipherGcrypt, base);
194 static int qcrypto_gcrypt_ctr_setiv(QCryptoCipher *cipher,
198 QCryptoCipherGcrypt *ctx = container_of(cipher, QCryptoCipherGcrypt, base);
248 error_setg(errp, "Unsupported cipher algorithm %s",
255 error_setg(errp, "Unsupported cipher mode %s",
271 error_setg(errp, "Cannot initialize cipher: %s",