summaryrefslogtreecommitdiffstats
path: root/crypto/sha2.h
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/sha2.h')
-rw-r--r--crypto/sha2.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/sha2.h b/crypto/sha2.h
index 18acf2b..6b2f83c 100644
--- a/crypto/sha2.h
+++ b/crypto/sha2.h
@@ -16,9 +16,7 @@ namespace crypto {
//
// Functions for SHA-384 and SHA-512 can be added when the need arises.
-enum {
- SHA256_LENGTH = 32 // length in bytes of a SHA-256 hash
-};
+static const size_t kSHA256Length = 32; // length in bytes of a SHA-256 hash
// Computes the SHA-256 hash of the input string 'str' and stores the first
// 'len' bytes of the hash in the output buffer 'output'. If 'len' > 32,