summaryrefslogtreecommitdiff
path: root/src/libstdcrypto/sha1_update.c
blob: 1b3c4de2f0669faa67e182d0ae256980b32c92cd (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_ref ctx, char const *buf, unsigned int len)
{
  register unsigned int i = 0 ;
  for (; i < len ; i++) sha1_feed(ctx, (unsigned char)buf[i]) ;
}