@@ -49,7 +49,7 @@ WALLY_CORE_API int wally_scrypt(
4949/**
5050 * Get the length of encrypted/decrypted data using AES (ECB mode, no padding).
5151 *
52- * :param key: Key material for initialisation .
52+ * :param key: Encryption/decryption key .
5353 * :param key_len: Length of ``key`` in bytes. Must be one of the :ref:`aes-key-length`.
5454 * :param bytes: Bytes to encrypt/decrypt.
5555 * :param bytes_len: Length of ``bytes`` in bytes. Must be a multiple of `AES_BLOCK_LEN`.
@@ -69,7 +69,7 @@ WALLY_CORE_API int wally_aes_len(
6969/**
7070 * Encrypt/decrypt data using AES (ECB mode, no padding).
7171 *
72- * :param key: Key material for initialisation .
72+ * :param key: Encryption/decryption key .
7373 * :param key_len: Length of ``key`` in bytes. Must be one of the :ref:`aes-key-length`.
7474 * :param bytes: Bytes to encrypt/decrypt.
7575 * :param bytes_len: Length of ``bytes`` in bytes. Must be a multiple of `AES_BLOCK_LEN`.
@@ -89,9 +89,10 @@ WALLY_CORE_API int wally_aes(
8989/**
9090 * Get the maximum length of encrypted/decrypted data using AES (CBC mode, PKCS#7 padding).
9191 *
92- * :param key: Key material for initialisation .
92+ * :param key: Encryption/decryption key .
9393 * :param key_len: Length of ``key`` in bytes. Must be one of the :ref:`aes-key-length`.
94- * :param iv: Initialisation vector.
94+ * :param iv: Initialization vector. For encryption this should be secure entropy. For
95+ *| decryption the bytes used when encrypting must be given.
9596 * :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN`.
9697 * :param bytes: Bytes to encrypt/decrypt.
9798 * :param bytes_len: Length of ``bytes`` in bytes. Can be of any length for encryption, must be a multiple of `AES_BLOCK_LEN` for decryption.
@@ -111,9 +112,10 @@ WALLY_CORE_API int wally_aes_cbc_get_maximum_length(
111112/**
112113 * Encrypt/decrypt data using AES (CBC mode, PKCS#7 padding).
113114 *
114- * :param key: Key material for initialisation .
115+ * :param key: Encryption/decryption key .
115116 * :param key_len: Length of ``key`` in bytes. Must be one of the :ref:`aes-key-length`.
116- * :param iv: Initialisation vector.
117+ * :param iv: Initialization vector. For encryption this should be secure entropy. For
118+ *| decryption the bytes used when encrypting must be given.
117119 * :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN`.
118120 * :param bytes: Bytes to encrypt/decrypt.
119121 * :param bytes_len: Length of ``bytes`` in bytes. Can be of any length for encryption, must be a multiple of `AES_BLOCK_LEN` for decryption.
@@ -896,7 +898,7 @@ WALLY_CORE_API int wally_s2c_commitment_verify(
896898 *
897899 * :param priv_key: The callers private key used for Diffie-Helman exchange.
898900 * :param priv_key_len: The length of ``priv_key`` in bytes. Must be `EC_PRIVATE_KEY_LEN`.
899- * :param iv: Initialisation vector. Only required when encrypting, otherwise pass NULL.
901+ * :param iv: Initialization vector. Only required when encrypting, otherwise pass NULL.
900902 * :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN`.
901903 * :param bytes: Bytes to encrypt/decrypt.
902904 * :param bytes_len: Length of ``bytes`` in bytes.
@@ -927,7 +929,7 @@ WALLY_CORE_API int wally_aes_cbc_with_ecdh_key_get_maximum_length(
927929 *
928930 * :param priv_key: The callers private key used for Diffie-Helman exchange.
929931 * :param priv_key_len: The length of ``priv_key`` in bytes. Must be `EC_PRIVATE_KEY_LEN`.
930- * :param iv: Initialisation vector. Only required when encrypting, otherwise pass NULL.
932+ * :param iv: Initialization vector. Only required when encrypting, otherwise pass NULL.
931933 * :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN` if encrypting otherwise 0.
932934 * :param bytes: Bytes to encrypt/decrypt.
933935 * :param bytes_len: Length of ``bytes`` in bytes.
0 commit comments