Holds state for SHA1 calculations.
More...
#include "hash.h"
Holds state for SHA1 calculations.
It is intended to be used like this:
...incrementally calculate the hash.
FSL_EXPORT void fsl_sha1_update(fsl_sha1_cx *context, void const *data, fsl_size_t len)
Updates the given context to include the hash of the first len bytes of the given data.
FSL_EXPORT void fsl_sha1_init(fsl_sha1_cx *context)
Initializes the given context with the initial SHA1 state.
FSL_EXPORT void fsl_sha1_digest_to_base16(unsigned char const *digest, char *zBuf)
Convert a digest into base-16.
@ FSL_STRLEN_SHA1
The length, in bytes, of a hex-format SHA1 hash string.
FSL_EXPORT int fsl_sha1_final(fsl_sha1_cx *context, unsigned char *digest)
Add padding and finalizes the message digest.
Holds state for SHA1 calculations.
Definition at line 251 of file hash.h.
◆ buffer
| unsigned char fsl_sha1_cx::buffer[64] |
◆ count
| unsigned int fsl_sha1_cx::count[2] |
◆ state
| unsigned int fsl_sha1_cx::state[5] |
The documentation for this struct was generated from the following file: