summaryrefslogtreecommitdiff
path: root/src/libstdcrypto/sha1_update.c
blob: 8758a4ddd0bb828bedcd2bacee704a6928f07e89 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/sha1.h>
#include "sha1-internal.h"

void sha1_update (SHA1Schedule *ctx, char const *buf, unsigned int len)
{
  register unsigned int i = 0 ;
  for (; i < len ; i++) sha1_feed(ctx, (unsigned char)buf[i]) ;
}