mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-02 19:24:31 +00:00
Added deprecated warning to SHA3 classes due to FIPS 202 finalization
This commit is contained in:
parent
2b311f2194
commit
920b23d884
15
sha3.h
15
sha3.h
@ -2,6 +2,12 @@
|
||||
|
||||
//! \file sha3.h
|
||||
//! \brief Classes for SHA-3 message digests
|
||||
//! \details The Crypto++ SHA-3 implementation dates back to January 2013 when NIST
|
||||
//! selected Keccak as SHA-3. In August 2015 NIST finalized SHA-3, and it was a
|
||||
//! modified version of the Keccak selection. Crypto++ 5.6.2 through 5.6.4 provides
|
||||
//! the pre-FIPS 202 version of SHA-3; while Crypto++ 5.7 and above provides
|
||||
//! the FIPS 202 version of SHA-3.
|
||||
//! \sa <a href="http://en.wikipedia.org/wiki/SHA-3">SHA-3</a>
|
||||
|
||||
#ifndef CRYPTOPP_SHA3_H
|
||||
#define CRYPTOPP_SHA3_H
|
||||
@ -13,7 +19,6 @@ NAMESPACE_BEGIN(CryptoPP)
|
||||
|
||||
//! \class SHA3
|
||||
//! \brief SHA3 message digest base class
|
||||
//! \sa <a href="http://en.wikipedia.org/wiki/SHA-3">SHA-3</a>
|
||||
class SHA3 : public HashTransformation
|
||||
{
|
||||
public:
|
||||
@ -48,7 +53,7 @@ public:
|
||||
//! \brief Construct a SHA3-224 message digest
|
||||
SHA3_224() : SHA3(DIGESTSIZE) {}
|
||||
static const char * StaticAlgorithmName() {return "SHA-3-224";}
|
||||
};
|
||||
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
|
||||
|
||||
//! \class SHA3_256
|
||||
//! \brief SHA3-256 message digest
|
||||
@ -60,7 +65,7 @@ public:
|
||||
//! \brief Construct a SHA3-256 message digest
|
||||
SHA3_256() : SHA3(DIGESTSIZE) {}
|
||||
static const char * StaticAlgorithmName() {return "SHA-3-256";}
|
||||
};
|
||||
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
|
||||
|
||||
//! \class SHA3_384
|
||||
//! \brief SHA3-384 message digest
|
||||
@ -72,7 +77,7 @@ public:
|
||||
//! \brief Construct a SHA3-384 message digest
|
||||
SHA3_384() : SHA3(DIGESTSIZE) {}
|
||||
static const char * StaticAlgorithmName() {return "SHA-3-384";}
|
||||
};
|
||||
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
|
||||
|
||||
//! \class SHA3_512
|
||||
//! \brief SHA3-512 message digest
|
||||
@ -84,7 +89,7 @@ public:
|
||||
//! \brief Construct a SHA3-512 message digest
|
||||
SHA3_512() : SHA3(DIGESTSIZE) {}
|
||||
static const char * StaticAlgorithmName() {return "SHA-3-512";}
|
||||
};
|
||||
} CRYPTOPP_DEPRECATED("SHA-3 will be changing in the future due to FIPS 202 finalization");
|
||||
|
||||
NAMESPACE_END
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user