diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-04-16 06:03:10 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-04-16 06:03:10 -0400 |
commit | 995d287500f1cf0c5ec1b1a185e3987f6c0724fd (patch) | |
tree | c31871b41891be53a784996b559e617a8222b0de /lsh512.cpp | |
parent | 78e37de8433d2211f46aed223491950045d840df (diff) | |
download | cryptopp-git-995d287500f1cf0c5ec1b1a185e3987f6c0724fd.tar.gz |
Clear Clang warnings (GH #1025)
Diffstat (limited to 'lsh512.cpp')
-rw-r--r-- | lsh512.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -74,8 +74,8 @@ struct LSH512_Internal };
const unsigned int MSG_BLK_WORD_LEN = 32;
-const unsigned int CV_WORD_LENN = 16;
-const unsigned int CONST_WORD_LENN = 8;
+// const unsigned int CV_WORD_LEN = 16;
+// const unsigned int CONST_WORD_LEN = 8;
const unsigned int HASH_VAL_MAX_WORD_LEN = 8;
const unsigned int NUM_STEPS = 28;
@@ -89,14 +89,14 @@ const unsigned int LSH_TYPE_512_384 = 0x0010030; const unsigned int LSH_TYPE_512_256 = 0x0010020;
const unsigned int LSH_TYPE_512_224 = 0x001001C;
-const unsigned int LSH_TYPE_384 = LSH_TYPE_512_384;
-const unsigned int LSH_TYPE_512 = LSH_TYPE_512_512;
+// const unsigned int LSH_TYPE_384 = LSH_TYPE_512_384;
+// const unsigned int LSH_TYPE_512 = LSH_TYPE_512_512;
/* LSH AlgType Macro */
inline bool LSH_IS_LSH512(lsh_uint val) {
- return val & 0xf0000 == 0x10000;
+ return (val & 0xf0000) == 0x10000;
}
inline lsh_uint LSH_GET_SMALL_HASHBIT(lsh_uint val) {
@@ -114,15 +114,15 @@ inline lsh_uint LSH_GET_HASHBIT(lsh_uint val) { /* LSH Constants */
const unsigned int LSH512_MSG_BLK_BYTE_LEN = 256;
-const unsigned int LSH512_MSG_BLK_BIT_LEN = 2048;
-const unsigned int LSH512_CV_BYTE_LEN = 128;
+// const unsigned int LSH512_MSG_BLK_BIT_LEN = 2048;
+// const unsigned int LSH512_CV_BYTE_LEN = 128;
const unsigned int LSH512_HASH_VAL_MAX_BYTE_LEN = 64;
/* Error Code */
const unsigned int LSH_SUCCESS = 0x0;
-const unsigned int LSH_ERR_NULL_PTR = 0x2401;
-const unsigned int LSH_ERR_INVALID_ALGTYPE = 0x2402;
+// const unsigned int LSH_ERR_NULL_PTR = 0x2401;
+// const unsigned int LSH_ERR_INVALID_ALGTYPE = 0x2402;
const unsigned int LSH_ERR_INVALID_DATABITLEN = 0x2403;
const unsigned int LSH_ERR_INVALID_STATE = 0x2404;
|