Crypto++ 8.9
Free C++ class library of cryptographic schemes
|
#include <sm3.h>
Static Public Member Functions | |
static void | InitState (HashWordType *state) |
Initialize state array. | |
static void | Transform (HashWordType *digest, const HashWordType *data) |
Operate the hash. | |
static const char * | StaticAlgorithmName () |
The algorithm name. | |
Additional Inherited Members | |
Public Member Functions inherited from IteratedHashWithStaticTransform< word32, BigEndian, 64, 32, SM3, 32, true > | |
unsigned int | DigestSize () const |
Provides the digest size of the hash. | |
Public Member Functions inherited from ClonableImpl< DERIVED, BASE > | |
Clonable * | Clone () const |
Create a copy of this object. | |
Static Public Attributes inherited from IteratedHashWithStaticTransform< word32, BigEndian, 64, 32, SM3, 32, true > | |
static const int | DIGESTSIZE |
SM3 hash function.
SM3 is a hash function designed by Xiaoyun Wang, et al. The hash is part of the Chinese State Cryptography Administration portfolio.
|
static |
Initialize state array.
state | the state of the hash |
InitState sets a state array to SM3 initial values
Hashes which derive from IteratedHashWithStaticTransform provide static member functions InitState() and Transform(). External classes, like SEAL and MDC, can initialize state with a user provided key and operate the hash on the data with the user supplied state.
|
static |
Operate the hash.
digest | the state of the hash |
data | the data to be digested |
Transform() operates the hash on data
. When the call is invoked digest
holds initial or current state. Upon return digest
holds the hash or updated state.
Hashes which derive from IteratedHashWithStaticTransform provide static member functions InitState() and Transform(). External classes, like SEAL and MDC, can initialize state with a user provided key and operate the hash on the data with the user supplied state.
|
inlinestatic |