Skip to content

Commit

Permalink
More static array bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Jan 7, 2019
1 parent 1c8fbec commit 93eb34e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/util/md4.c
Expand Up @@ -18,7 +18,7 @@ RCSID("$Id$")
* @param[in] in Data to hash.
* @param[in] inlen Length of the data.
*/
void fr_md4_calc(uint8_t out[MD4_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
void fr_md4_calc(uint8_t out[static MD4_DIGEST_LENGTH], uint8_t const *in, size_t inlen)
{
FR_MD4_CTX ctx;

Expand Down Expand Up @@ -177,7 +177,7 @@ void fr_md4_update(FR_MD4_CTX *ctx, uint8_t const *in, size_t inlen)
* @param[out] out Where to write the MD4 digest. Minimum length of MD4_DIGEST_LENGTH.
* @param[in,out] ctx to finalise.
*/
void fr_md4_final(uint8_t out[MD4_DIGEST_LENGTH], FR_MD4_CTX *ctx)
void fr_md4_final(uint8_t out[static MD4_DIGEST_LENGTH], FR_MD4_CTX *ctx)
{
uint32_t count;
unsigned char *p;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util/md5.c
Expand Up @@ -135,7 +135,7 @@ void fr_md5_update(FR_MD5_CTX *ctx, uint8_t const *in, size_t inlen)
* @param[out] out Where to write the MD5 digest. Minimum length of MD5_DIGEST_LENGTH.
* @param[in,out] ctx to finalise.
*/
void fr_md5_final(uint8_t out[MD5_DIGEST_LENGTH], FR_MD5_CTX *ctx)
void fr_md5_final(uint8_t out[static MD5_DIGEST_LENGTH], FR_MD5_CTX *ctx)
{
uint8_t count[8];
size_t padlen;
Expand Down

0 comments on commit 93eb34e

Please sign in to comment.