Skip to content

Commit

Permalink
updating rest of the types to c++ fixed size
Browse files Browse the repository at this point in the history
  • Loading branch information
slowriot committed Nov 20, 2014
1 parent be50249 commit e1e5e36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sha1.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ class SHA1
static const unsigned int BLOCK_INTS = 16; /* number of 32bit integers per SHA1 block */
static const unsigned int BLOCK_BYTES = BLOCK_INTS * 4;

uint32 digest[DIGEST_INTS];
uint32_t digest[DIGEST_INTS];
std::string buffer;
uint64 transforms;
uint64_t transforms;

void reset();
void transform(uint32 block[BLOCK_BYTES]);
void transform(uint32_t block[BLOCK_BYTES]);

static void buffer_to_block(const std::string &buffer, uint32 block[BLOCK_INTS]);
static void buffer_to_block(const std::string &buffer, uint32_t block[BLOCK_INTS]);
static void read(std::istream &is, std::string &s, size_t max);
};

Expand Down

0 comments on commit e1e5e36

Please sign in to comment.