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