Browse Source

sha256: Force constants to be compile-time

master
Daniel Scharrer 1 year ago
parent
commit
3e5ac04d5b
  1. 8
      src/crypto/sha256.hpp

8
src/crypto/sha256.hpp

@ -39,9 +39,11 @@ public:
typedef boost::uint32_t hash_word;
typedef util::big_endian byte_order;
static const size_t offset = 1;
static const size_t block_size = 64;
static const size_t hash_size = 32;
enum constants {
offset = 1,
block_size = 64,
hash_size = 32,
};
static void init(hash_word * state);

Loading…
Cancel
Save