]> git.tdb.fi Git - libs/crypto.git/blobdiff - source/sha2.h
Slightly shorten the names of the constant structs
[libs/crypto.git] / source / sha2.h
index 060b8d79af5cc2d72010821957dd28d88645faf9..88dee9a03563d2103695db25d9039a789e94bc4e 100644 (file)
@@ -34,7 +34,7 @@ private:
 };
 
 
-struct SHA2_256Constants
+struct SHA256Constants
 {
        typedef UInt32 WordType;
 
@@ -52,7 +52,7 @@ struct SHA2_256Constants
        static const unsigned sigma_constants[12];
 };
 
-struct SHA2_512Constants
+struct SHA512Constants
 {
        typedef UInt64 WordType;
 
@@ -70,8 +70,8 @@ struct SHA2_512Constants
        static const unsigned sigma_constants[12];
 };
 
-typedef SHA2<SHA2_256Constants> SHA256;
-typedef SHA2<SHA2_512Constants> SHA512;
+typedef SHA2<SHA256Constants> SHA256;
+typedef SHA2<SHA512Constants> SHA512;
 
 } // namespace Crypto
 } // namespace Msp