about summary refs log tree commit diff
path: root/src/libstdcrypto/sha256_update.c
blob: c87644ed0ff85acfeea433f93d8af6cc174e8b4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

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

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