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

#include <sys/types.h>
#include <skalibs/sha256.h>
#include "sha256-internal.h"

void sha256_update (SHA256Schedule *ctx, char const *buf, size_t len)
{
  size_t i = 0 ;
  for (; i < len ; i++) sha256_feed(ctx, (unsigned char)buf[i]) ;
}