Fix compile under Visual Studio 2003
parent
9b64112a11
commit
395b163450
6
keccak.h
6
keccak.h
|
|
@ -70,11 +70,11 @@ protected:
|
|||
//! \tparam DigestSize controls the digest size as a template parameter instead of a per-class constant
|
||||
//! \brief Keccak-X message digest, template for more fine-grained typedefs
|
||||
//! \since Crypto++ 5.7.0
|
||||
template<unsigned int digestSize>
|
||||
template<unsigned int T_DigestSize>
|
||||
class Keccak_Final : public Keccak
|
||||
{
|
||||
public:
|
||||
CRYPTOPP_CONSTANT(DIGESTSIZE = digestSize)
|
||||
CRYPTOPP_CONSTANT(DIGESTSIZE = T_DigestSize)
|
||||
CRYPTOPP_CONSTANT(BLOCKSIZE = 200 - 2 * DIGESTSIZE)
|
||||
|
||||
//! \brief Construct a Keccak-X message digest
|
||||
|
|
@ -83,7 +83,7 @@ public:
|
|||
unsigned int BlockSize() const { return BLOCKSIZE; }
|
||||
private:
|
||||
CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE < 200); // ensure there was no underflow in the math
|
||||
CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE > DIGESTSIZE); // this is a general expectation by HMAC
|
||||
CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE > T_DigestSize); // this is a general expectation by HMAC
|
||||
};
|
||||
|
||||
//! \class Keccak_224
|
||||
|
|
|
|||
6
sha3.h
6
sha3.h
|
|
@ -55,11 +55,11 @@ protected:
|
|||
//! \tparam DigestSize controls the digest size as a template parameter instead of a per-class constant
|
||||
//! \brief SHA3-X message digest, template for more fine-grained typedefs
|
||||
//! \since Crypto++ 5.7.0
|
||||
template<unsigned int digestSize>
|
||||
template<unsigned int T_DigestSize>
|
||||
class SHA3_Final : public SHA3
|
||||
{
|
||||
public:
|
||||
CRYPTOPP_CONSTANT(DIGESTSIZE = digestSize)
|
||||
CRYPTOPP_CONSTANT(DIGESTSIZE = T_DigestSize)
|
||||
CRYPTOPP_CONSTANT(BLOCKSIZE = 200 - 2 * DIGESTSIZE)
|
||||
|
||||
//! \brief Construct a SHA3-X message digest
|
||||
|
|
@ -68,7 +68,7 @@ public:
|
|||
unsigned int BlockSize() const { return BLOCKSIZE; }
|
||||
private:
|
||||
CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE < 200); // ensure there was no underflow in the math
|
||||
CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE > DIGESTSIZE); // this is a general expectation by HMAC
|
||||
CRYPTOPP_COMPILE_ASSERT(BLOCKSIZE > T_DigestSize); // this is a general expectation by HMAC
|
||||
};
|
||||
|
||||
//! \class SHA3_224
|
||||
|
|
|
|||
4
stdcpp.h
4
stdcpp.h
|
|
@ -46,8 +46,10 @@ namespace std {
|
|||
#include <climits>
|
||||
|
||||
// uintptr_t and ptrdiff_t
|
||||
#if (__cplusplus < 201103L)
|
||||
#if (__cplusplus < 201103L) && (!defined(_MSC_VER) || (_MSC_VER >= 1400))
|
||||
# include <stdint.h>
|
||||
#elif defined(_MSC_VER) && (_MSC_VER < 1400)
|
||||
# include <stddef.h>
|
||||
#endif
|
||||
|
||||
#ifdef CRYPTOPP_INCLUDE_VECTOR_CC
|
||||
|
|
|
|||
Loading…
Reference in New Issue