5 SHA1_Init, SHA1_Update_SHA1_Final - Compute SHA1 hash
9 #include <openssl/sha.h>
11 void SHA1_Init(SHA_CTX *c);
12 void SHA1_Update(SHA_CTX *c, const unsigned char *data,
14 void SHA1_Final(unsigned char *md, SHA_CTX *c);
18 SHA1_Init() initializes a B<SHA_CTX> structure.
20 SHA1_Update() can be called repeatedly with chunks of the message to
21 be hashed (B<len> bytes at B<data>).
23 SHA1_Final() places the message digest in B<md>, which must have space
24 for SHA_DIGEST_LENGTH == 20 bytes of output, and erases the B<SHA_CTX>.
26 When the entire message is available at one time, L<SHA1(3)|SHA(1)>
31 SHA1_Init(), SHA1_Update() and SHA1_Final() do not return values.
35 SHA1_Init(), SHA1_Update() and SHA1_Final()are available in all
36 versions of SSLeay and OpenSSL.
40 sha(3), ripemd(3), SHA1(3)