@@ -174,7 +174,8 @@ int wc_PKCS12_PBKDF(byte* output, const byte* passwd, int passLen,
174174 \brief Extended version of PBKDF1 with heap hint.
175175
176176 \return 0 on success
177- \return BAD_FUNC_ARG on invalid arguments
177+ \return BAD_FUNC_ARG on invalid arguments or iterations is greater than
178+ WC_PBKDF_MAX_ITERATIONS
178179 \return MEMORY_E on memory allocation error
179180
180181 \param key Output key buffer
@@ -209,7 +210,8 @@ int wc_PBKDF1_ex(byte* key, int keyLen, byte* iv, int ivLen,
209210 \brief Extended version of PBKDF2 with heap hint and device ID.
210211
211212 \return 0 on success
212- \return BAD_FUNC_ARG on invalid arguments
213+ \return BAD_FUNC_ARG on invalid arguments or iterations is greater than
214+ WC_PBKDF_MAX_ITERATIONS
213215 \return MEMORY_E on memory allocation error
214216
215217 \param output Output key buffer
@@ -244,7 +246,8 @@ int wc_PBKDF2_ex(byte* output, const byte* passwd, int pLen,
244246 \brief Extended version of PKCS12_PBKDF with heap hint.
245247
246248 \return 0 on success
247- \return BAD_FUNC_ARG on invalid arguments
249+ \return BAD_FUNC_ARG on invalid arguments or iterations is greater than
250+ WC_PBKDF_MAX_ITERATIONS
248251 \return MEMORY_E on memory allocation error
249252
250253 \param output Output key buffer
0 commit comments