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

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

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