@@ -49,7 +49,7 @@ WALLY_CORE_API int wally_scrypt(
49
49
/**
50
50
* Get the length of encrypted/decrypted data using AES (ECB mode, no padding).
51
51
*
52
- * :param key: Key material for initialisation .
52
+ * :param key: Encryption/decryption key .
53
53
* :param key_len: Length of ``key`` in bytes. Must be one of the :ref:`aes-key-length`.
54
54
* :param bytes: Bytes to encrypt/decrypt.
55
55
* :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(
69
69
/**
70
70
* Encrypt/decrypt data using AES (ECB mode, no padding).
71
71
*
72
- * :param key: Key material for initialisation .
72
+ * :param key: Encryption/decryption key .
73
73
* :param key_len: Length of ``key`` in bytes. Must be one of the :ref:`aes-key-length`.
74
74
* :param bytes: Bytes to encrypt/decrypt.
75
75
* :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(
89
89
/**
90
90
* Get the maximum length of encrypted/decrypted data using AES (CBC mode, PKCS#7 padding).
91
91
*
92
- * :param key: Key material for initialisation .
92
+ * :param key: Encryption/decryption key .
93
93
* :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.
95
96
* :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN`.
96
97
* :param bytes: Bytes to encrypt/decrypt.
97
98
* :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(
111
112
/**
112
113
* Encrypt/decrypt data using AES (CBC mode, PKCS#7 padding).
113
114
*
114
- * :param key: Key material for initialisation .
115
+ * :param key: Encryption/decryption key .
115
116
* :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.
117
119
* :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN`.
118
120
* :param bytes: Bytes to encrypt/decrypt.
119
121
* :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(
896
898
*
897
899
* :param priv_key: The callers private key used for Diffie-Helman exchange.
898
900
* :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.
900
902
* :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN`.
901
903
* :param bytes: Bytes to encrypt/decrypt.
902
904
* :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(
927
929
*
928
930
* :param priv_key: The callers private key used for Diffie-Helman exchange.
929
931
* :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.
931
933
* :param iv_len: Length of ``iv`` in bytes. Must be `AES_BLOCK_LEN` if encrypting otherwise 0.
932
934
* :param bytes: Bytes to encrypt/decrypt.
933
935
* :param bytes_len: Length of ``bytes`` in bytes.
0 commit comments