]> Git Repo - qemu.git/blobdiff - include/crypto/cipher.h
crypto: add CTR mode support
[qemu.git] / include / crypto / cipher.h
index 97638e7bbf4d469d565e58fe44dd074fe25e48cd..bec9f412b0c2f4ba051ea08ced4a1fd4651837f3 100644 (file)
@@ -215,16 +215,16 @@ int qcrypto_cipher_decrypt(QCryptoCipher *cipher,
 /**
  * qcrypto_cipher_setiv:
  * @cipher: the cipher object
- * @iv: the initialization vector bytes
+ * @iv: the initialization vector or counter (CTR mode) bytes
  * @niv: the length of @iv
  * @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
+ * initialization vectors or counter, this sets the @niv
  * bytes. The @iv data should have the same length as the
  * cipher key used when originally constructing the cipher
  * object. It is an error to set an initialization vector
- * if the cipher mode does not require one.
+ * or counter if the cipher mode does not require one.
  *
  * Returns: 0 on success, -1 on error
  */
This page took 0.023255 seconds and 4 git commands to generate.