diff options
author | Brad King <brad.king@kitware.com> | 2016-11-10 21:31:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-11-10 21:38:34 (GMT) |
commit | c326209fa351ca236778c462bcb0b85f6fa392f7 (patch) | |
tree | 88a72e93820237586240a634f03df764c0268a5f /Source/cmCryptoHash.h | |
parent | 979e8ba6c6c6ed538b1dd9d60d89d863e7c4273c (diff) | |
download | CMake-c326209fa351ca236778c462bcb0b85f6fa392f7.zip CMake-c326209fa351ca236778c462bcb0b85f6fa392f7.tar.gz CMake-c326209fa351ca236778c462bcb0b85f6fa392f7.tar.bz2 |
cmCryptoHash: Add support for SHA-3 algorithms
Diffstat (limited to 'Source/cmCryptoHash.h')
-rw-r--r-- | Source/cmCryptoHash.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/cmCryptoHash.h b/Source/cmCryptoHash.h index 95080ac..26d55b3 100644 --- a/Source/cmCryptoHash.h +++ b/Source/cmCryptoHash.h @@ -22,7 +22,11 @@ public: AlgoSHA224, AlgoSHA256, AlgoSHA384, - AlgoSHA512 + AlgoSHA512, + AlgoSHA3_224, + AlgoSHA3_256, + AlgoSHA3_384, + AlgoSHA3_512 }; cmCryptoHash(Algo algo); @@ -30,7 +34,8 @@ public: /// @brief Returns a new hash generator of the requested type /// @arg algo Hash type name. Supported hash types are - /// MD5, SHA1, SHA224, SHA256, SHA384, SHA512 + /// MD5, SHA1, SHA224, SHA256, SHA384, SHA512, + /// SHA3_224, SHA3_256, SHA3_384, SHA3_512 /// @return A valid auto pointer if algo is supported or /// an invalid/NULL pointer otherwise static CM_AUTO_PTR<cmCryptoHash> New(const char* algo); |