SHA3-512 hash algorithm.
More...
#include <SHA3.h>
|
| SHA3_512 () |
| Constructs a new SHA3-512 hash object.
|
|
virtual | ~SHA3_512 () |
| Destroys this hash object after clearing sensitive information.
|
|
size_t | hashSize () const |
| Size of the hash result from finalize(). More...
|
|
size_t | blockSize () const |
| Size of the internal block used by the hash algorithm. More...
|
|
void | reset () |
| Resets the hash ready for a new hashing process. More...
|
|
void | update (const void *data, size_t len) |
| Updates the hash with more data. More...
|
|
void | finalize (void *hash, size_t len) |
| Finalizes the hashing process and returns the hash. More...
|
|
void | clear () |
| Clears the hash state, removing all sensitive data, and then resets the hash ready for a new hashing process. More...
|
|
| Hash () |
| Constructs a new hash object.
|
|
virtual | ~Hash () |
| Destroys this hash object. More...
|
|
SHA3-512 hash algorithm.
Reference: http://en.wikipedia.org/wiki/SHA-3
- See Also
- SHA3_256
Definition at line 48 of file SHA3.h.
size_t SHA3_512::blockSize |
( |
| ) |
const |
|
virtual |
Clears the hash state, removing all sensitive data, and then resets the hash ready for a new hashing process.
- See Also
- reset()
Implements Hash.
Definition at line 134 of file SHA3.cpp.
void SHA3_512::finalize |
( |
void * |
hash, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
Finalizes the hashing process and returns the hash.
- Parameters
-
hash | The buffer to return the hash value in. |
len | The length of the hash buffer, normally hashSize(). |
If len is less than hashSize(), then the hash value will be truncated to the first len bytes. If len is greater than hashSize(), then the remaining bytes will left unchanged.
If finalize() is called again, then the returned hash value is undefined. Call reset() first to start a new hashing process.
- See Also
- reset(), update()
Implements Hash.
Definition at line 127 of file SHA3.cpp.
size_t SHA3_512::hashSize |
( |
| ) |
const |
|
virtual |
void SHA3_512::update |
( |
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
|
virtual |
Updates the hash with more data.
- Parameters
-
data | Data to be hashed. |
len | Number of bytes of data to be hashed. |
If finalize() has already been called, then the behavior of update() will be undefined. Call reset() first to start a new hashing process.
- See Also
- reset(), finalize()
Implements Hash.
Definition at line 122 of file SHA3.cpp.
The documentation for this class was generated from the following files: