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 }