32 void update(
const std::string &s);
33 void update(std::istream &is);
35 static std::string
from_file(
const std::string &filename);
49 static void read(std::istream &is, std::string &s,
size_t max);
53 std::string
sha1(
const std::string &
string);
void transform(uint32_t block[BLOCK_BYTES])
std::string sha1(const std::string &string)
static void read(std::istream &is, std::string &s, size_t max)
uint32_t digest[DIGEST_INTS]
static const unsigned int BLOCK_INTS
static const unsigned int DIGEST_INTS
static std::string from_file(const std::string &filename)
static const unsigned int BLOCK_BYTES
static void buffer_to_block(const std::string &buffer, uint32_t block[BLOCK_INTS])
void update(const std::string &s)