Function SHA.start

SHA initialization. Begins an SHA1/SHA2 operation.

Prototype

void start();

Note

For this SHA Digest implementation calling start after default construction is not necessary. Calling start is only necessary to reset the Digest.

Generic code which deals with different Digest types should always call start though.

Examples

SHA1 digest;
//digest.start(); //Not necessary
digest.put(0);

Authors

The routines and algorithms are derived from the Secure Hash Signature Standard (SHS) (FIPS PUB 180-2). Kai Nacke, Johannes Pfau, Nick Sabalausky

Copyright

License

Boost License 1.0