Lines Matching full:cipher

2  * QEMU Crypto cipher algorithms
48 * QCryptoCipher *cipher;
54 * error_report(errp, "Feature <blah> requires AES cipher support");
58 * cipher = qcrypto_cipher_new(QCRYPTO_CIPHER_ALGO_AES_128,
62 * if (!cipher) {
66 * if (qcrypto_cipher_set_iv(cipher, iv, keylen, errp) < 0) {
70 * if (qcrypto_cipher_encrypt(cipher, rawdata, encdata, datalen, errp) < 0) {
74 * qcrypto_cipher_free(cipher);
88 * @alg: the cipher algorithm
89 * @mode: the cipher mode
91 * Determine if @alg cipher algorithm in @mode is supported by the
101 * @alg: the cipher algorithm
114 * @alg: the cipher algorithm
125 * @alg: the cipher algorithm
126 * @mode: the cipher mode
139 * @alg: the cipher algorithm
140 * @mode: the cipher usage mode
145 * Creates a new cipher object for encrypting/decrypting
154 * The returned cipher object must be released with
157 * Returns: a new cipher object, or NULL on error
166 * @cipher: the cipher object
168 * Release the memory associated with @cipher that
171 void qcrypto_cipher_free(QCryptoCipher *cipher);
177 * @cipher: the cipher object
179 * @out: buffer to fill with the cipher text output data
190 int qcrypto_cipher_encrypt(QCryptoCipher *cipher,
199 * @cipher: the cipher object
200 * @in: buffer holding the cipher text input data
205 * Decrypts the cipher text stored in @in, filling
212 int qcrypto_cipher_decrypt(QCryptoCipher *cipher,
220 * @cipher: the cipher object
225 * If the @cipher object is setup to use a mode that requires
228 * cipher key used when originally constructing the cipher
230 * or counter if the cipher mode does not require one.
234 int qcrypto_cipher_setiv(QCryptoCipher *cipher,