aboutsummaryrefslogtreecommitdiffstats
path: root/src/hash/sha2/sha2_32.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-10 12:39:04 +0000
committerlloyd <[email protected]>2008-10-10 12:39:04 +0000
commitfb609aabd8710227244027aa8e91257ed8442256 (patch)
treeec811c5eb406f4e35a56ce44d2f4099751048d53 /src/hash/sha2/sha2_32.h
parentea0ab5f4d4dab9952565efd7d42d8fe9091f6f13 (diff)
Rename SHA-{384,512} base class SHA_64_BASE to SHA_384_512_BASE. Rename SHA_224256_BASE SHA_224_256_BASE
Diffstat (limited to 'src/hash/sha2/sha2_32.h')
-rw-r--r--src/hash/sha2/sha2_32.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/hash/sha2/sha2_32.h b/src/hash/sha2/sha2_32.h
index a767b3d10..220767c1b 100644
--- a/src/hash/sha2/sha2_32.h
+++ b/src/hash/sha2/sha2_32.h
@@ -14,11 +14,11 @@ namespace Botan {
/*************************************************
* SHA-{224,256} Base *
*************************************************/
-class BOTAN_DLL SHA_224256_BASE : public MDx_HashFunction
+class BOTAN_DLL SHA_224_256_BASE : public MDx_HashFunction
{
protected:
void clear() throw();
- SHA_224256_BASE(u32bit out) :
+ SHA_224_256_BASE(u32bit out) :
MDx_HashFunction(out, 64, true, true) { clear(); }
SecureBuffer<u32bit, 64> W;
@@ -31,25 +31,25 @@ class BOTAN_DLL SHA_224256_BASE : public MDx_HashFunction
/*************************************************
* SHA-224 *
*************************************************/
-class BOTAN_DLL SHA_224 : public SHA_224256_BASE
+class BOTAN_DLL SHA_224 : public SHA_224_256_BASE
{
public:
void clear() throw();
std::string name() const { return "SHA-224"; }
HashFunction* clone() const { return new SHA_224; }
- SHA_224() : SHA_224256_BASE(28) { clear(); }
+ SHA_224() : SHA_224_256_BASE(28) { clear(); }
};
/*************************************************
* SHA-256 *
*************************************************/
-class BOTAN_DLL SHA_256 : public SHA_224256_BASE
+class BOTAN_DLL SHA_256 : public SHA_224_256_BASE
{
public:
void clear() throw();
std::string name() const { return "SHA-256"; }
HashFunction* clone() const { return new SHA_256; }
- SHA_256() : SHA_224256_BASE(32) { clear (); }
+ SHA_256() : SHA_224_256_BASE(32) { clear (); }
};
}