Files
Yaya48 cf256aa081 Import QEMU upstream snapshot d2e570c
Upstream: https://gitlab.com/qemu-project/qemu.git

Upstream-Commit: d2e570cc0f97b936902a5b1b86b73c0f5998b475
2026-08-31 02:15:30 +02:00

31 lines
847 B
C++

/*
* SPDX-License-Identifier: GPL-2.0-or-later
*
* QEMU Crypto cipher impl stub
*
* Copyright (c) 2025 Red Hat, Inc.
*
*/
bool qcrypto_cipher_supports(QCryptoCipherAlgo alg,
QCryptoCipherMode mode)
{
return false;
}
static QCryptoCipher *qcrypto_cipher_ctx_new(QCryptoCipherAlgo alg,
QCryptoCipherMode mode,
const uint8_t *key,
size_t nkey,
Error **errp)
{
if (!qcrypto_cipher_validate_key_length(alg, mode, nkey, errp)) {
return NULL;
}
error_setg(errp,
"Unsupported cipher algorithm %s, no crypto library enabled in build",
QCryptoCipherAlgo_str(alg));
return NULL;
}