Group PJLIB_UTIL_SHA1
- group PJLIB_UTIL_SHA1
Defines
-
PJ_SHA1_DIGEST_SIZE
SHA1 digest size is 20 bytes
Functions
-
void pj_sha1_init(pj_sha1_context *ctx)
Initialize the algorithm.
- Parameters:
ctx – SHA1 context.
-
void pj_sha1_update(pj_sha1_context *ctx, const pj_uint8_t *data, pj_size_t nbytes)
Append a stream to the message.
- Parameters:
ctx – SHA1 context.
data – Data.
nbytes – Length of data.
-
void pj_sha1_final(pj_sha1_context *ctx, pj_uint8_t digest[20])
Finish the message and return the digest.
- Parameters:
ctx – SHA1 context.
digest – 16 byte digest.
-
struct pj_sha1_context
- #include <sha1.h>
SHA1 context
Public Members
-
pj_uint32_t state[5]
State
-
pj_uint32_t count[2]
Count
-
pj_uint8_t buffer[64]
Buffer
-
pj_uint32_t state[5]
-
PJ_SHA1_DIGEST_SIZE