11 void base64_encode(
const unsigned char *src,
size_t len,
char *destination);
19 void update(
const char *key);
22 static bool is_big_endian;
25 static const uint32_t DIGEST_INTS = 5;
26 static const unsigned int BLOCK_INTS = 16;
27 static const unsigned int BLOCK_BYTES = BLOCK_INTS * 4;
29 uint32_t digest[DIGEST_INTS];
32 void transform(uint32_t block[BLOCK_BYTES]);
34 static void buffer_to_block(
const std::string &buffer, uint32_t block[BLOCK_BYTES]);
35 static void read(std::istream &is, std::string &s,
int max);