skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

sha256_update.c (231B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/sha256.h>
      4 #include "sha256-internal.h"
      5 
      6 void sha256_update (SHA256Schedule *ctx, char const *buf, size_t len)
      7 {
      8   for (size_t i = 0 ; i < len ; i++) sha256_feed(ctx, (unsigned char)buf[i]) ;
      9 }