16inline void absorb_bytes(
const unsigned char* data,
size_t len,
size_t bs,
size_t bschk,
17 unsigned char* m,
size_t& pos, T& total, TF transform)
19 if (pos && pos + len >= bschk)
21 memcpy(m + pos, data, bs - pos);
30 size_t blocks = (len + bs - bschk) / bs;
31 size_t bytes = blocks * bs;
32 transform(data, blocks);
37 memcpy(m + pos, data, len);
void absorb_bytes(const unsigned char *data, size_t len, size_t bs, size_t bschk, unsigned char *m, size_t &pos, T &total, TF transform)
Definition absorb_data.hpp:16