summaryrefslogtreecommitdiff
path: root/src/libstdcrypto/sha512_update.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstdcrypto/sha512_update.c')
-rw-r--r--src/libstdcrypto/sha512_update.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstdcrypto/sha512_update.c b/src/libstdcrypto/sha512_update.c
index 4c8029e..63bc6fb 100644
--- a/src/libstdcrypto/sha512_update.c
+++ b/src/libstdcrypto/sha512_update.c
@@ -1,12 +1,13 @@
/* ISC license. */
+#include <sys/types.h>
#include <skalibs/bytestr.h>
#include <skalibs/sha512.h>
#include "sha512-internal.h"
-void sha512_update (SHA512Schedule *ctx, char const *buf, unsigned int len)
+void sha512_update (SHA512Schedule *ctx, char const *buf, size_t len)
{
- register unsigned int pad = ctx->len & 0x7fu ;
+ register unsigned int pad = ctx->len & 0x7fU ;
ctx->len += len ;
if (pad && len >= 128 - pad)
{