Lines Matching full:cipher
2 * QEMU Crypto cipher nettle algorithms
57 static int qcrypto_cipher_no_setiv(QCryptoCipher *cipher,
67 static int NAME##_setiv(QCryptoCipher *cipher, const uint8_t *iv, \
70 TYPE *ctx = container_of(cipher, TYPE, base); \
81 static int NAME##_encrypt_ecb(QCryptoCipher *cipher, const void *in, \
84 TYPE *ctx = container_of(cipher, TYPE, base); \
91 static int NAME##_decrypt_ecb(QCryptoCipher *cipher, const void *in, \
94 TYPE *ctx = container_of(cipher, TYPE, base); \
110 static int NAME##_encrypt_cbc(QCryptoCipher *cipher, const void *in, \
113 TYPE *ctx = container_of(cipher, TYPE, base); \
120 static int NAME##_decrypt_cbc(QCryptoCipher *cipher, const void *in, \
123 TYPE *ctx = container_of(cipher, TYPE, base); \
139 static int NAME##_encrypt_ctr(QCryptoCipher *cipher, const void *in, \
142 TYPE *ctx = container_of(cipher, TYPE, base); \
169 static int NAME##_encrypt_xts(QCryptoCipher *cipher, const void *in, \
172 TYPE *ctx = container_of(cipher, TYPE, base); \
181 static int NAME##_decrypt_xts(QCryptoCipher *cipher, const void *in, \
184 TYPE *ctx = container_of(cipher, TYPE, base); \
195 static int NAME##_encrypt_xts(QCryptoCipher *cipher, const void *in, \
198 TYPE *ctx = container_of(cipher, TYPE, base); \
206 static int NAME##_decrypt_xts(QCryptoCipher *cipher, const void *in, \
209 TYPE *ctx = container_of(cipher, TYPE, base); \
768 error_setg(errp, "Unsupported cipher algorithm %s",
774 error_setg(errp, "Unsupported cipher mode %s",