src/sha1.c
void SHA1Init(sha1_ctx *context) {
    /* SHA1 initialization constants. */
    context->state[0] = 0x67452301;
    context->state[1] = 0xEFCDAB89;
    context->state[2] = 0x98BADCFE;
    context->state[3] = 0x10325476;
    context->state[4] = 0xC3D2E1F0;
    context->count[0] = context->count[1] = 0;
}
/**
 * sha1.c
 *
 * An implementation of the SHA-1 hash digest algorithm for use in PPM file signatures. This is heavily modified
 * version of Steve Reid <steve@edmweb.com>'s public domain SHA-1 implementation, which can be found in the
 * following repository: https://github.com/clibs/sha1
 *
 * Requires stdlib for memcpy and memset.
 */
sha1.c
An implementation of the SHA-1 hash digest algorithm for use in PPM file signatures.

Requires stdlib for memcpy and memset.
sha1 . c An implementation of the SHA - 1 hash digest algorithm for use in PPM file signatures . Requires stdlib for memcpy and memset .
void SHA1Init(sha1_ctx *context) {
    context->state[0] = 0x67452301;
    context->state[1] = 0xEFCDAB89;
    context->state[2] = 0x98BADCFE;
    context->state[3] = 0x10325476;
    context->state[4] = 0xC3D2E1F0;
    context->count[0] = context->count[1] = 0;
}
void SHA1Init ( sha1_ctx * context ) { context -> state [ 0 ] = 0x67452301 ; context -> state [ 1 ] = 0xEFCDAB89 ; context -> state [ 2 ] = 0x98BADCFE ; context -> state [ 3 ] = 0x10325476 ; context -> state [ 4 ] = 0xC3D2E1F0 ; context -> count [ 0 ] = context -> count [ 1 ] = 0 ; }
sha1.c
 An implementation of the SHA-1 hash digest algorithm for use in PPM file signatures.
sha1 . c An implementation of the SHA - 1 hash digest algorithm for use in PPM file signatures .
/* SHA1 initialization constants. */