aboutsummaryrefslogtreecommitdiff
path: root/include/crypto/cipher.h
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-01-13 12:22:33 +0000
committerDaniel P. Berrange <berrange@redhat.com>2016-02-01 14:11:35 +0000
commit07982d2ee9a57bf4f04fc18f77f0f56fa9a33c08 (patch)
treea3c652a94b7516767c6e247337bad4b512741877 /include/crypto/cipher.h
parent0430891ce162b986c6e02a7729a942ecd2a32ca4 (diff)
downloadqemu-arm-07982d2ee9a57bf4f04fc18f77f0f56fa9a33c08.tar.gz
crypto: fix description of @errp parameter initialization
The "Error **errp" parameters must be NULL initialized not uninitialized. Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include/crypto/cipher.h')
-rw-r--r--include/crypto/cipher.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/crypto/cipher.h b/include/crypto/cipher.h
index a812803df1..f90ac79567 100644
--- a/include/crypto/cipher.h
+++ b/include/crypto/cipher.h
@@ -138,7 +138,7 @@ size_t qcrypto_cipher_get_iv_len(QCryptoCipherAlgorithm alg,
* @mode: the cipher usage mode
* @key: the private key bytes
* @nkey: the length of @key
- * @errp: pointer to an uninitialized error object
+ * @errp: pointer to a NULL-initialized error object
*
* Creates a new cipher object for encrypting/decrypting
* data with the algorithm @alg in the usage mode @mode.
@@ -174,7 +174,7 @@ void qcrypto_cipher_free(QCryptoCipher *cipher);
* @in: buffer holding the plain text input data
* @out: buffer to fill with the cipher text output data
* @len: the length of @in and @out buffers
- * @errp: pointer to an uninitialized error object
+ * @errp: pointer to a NULL-initialized error object
*
* Encrypts the plain text stored in @in, filling
* @out with the resulting ciphered text. Both the
@@ -196,7 +196,7 @@ int qcrypto_cipher_encrypt(QCryptoCipher *cipher,
* @in: buffer holding the cipher text input data
* @out: buffer to fill with the plain text output data
* @len: the length of @in and @out buffers
- * @errp: pointer to an uninitialized error object
+ * @errp: pointer to a NULL-initialized error object
*
* Decrypts the cipher text stored in @in, filling
* @out with the resulting plain text. Both the
@@ -216,7 +216,7 @@ int qcrypto_cipher_decrypt(QCryptoCipher *cipher,
* @cipher: the cipher object
* @iv: the initialization vector bytes
* @niv: the length of @iv
- * @errpr: pointer to an uninitialized error object
+ * @errpr: pointer to a NULL-initialized error object
*
* If the @cipher object is setup to use a mode that requires
* initialization vectors, this sets the initialization vector