bc2ec336fe353de3c2bb3853203e659b0a73385e
2 #include <openssl/sha.h>
4 /** \file sha1.c Secure Hash Algorithm, provided by openssl. */
7 * Compute the sha1 hash.
9 * \param data Pointer to the data to compute the hash valure from.
10 * \param len The length of \a data in bytes.
11 * \param sha1 Result pointer
13 * \a sha1 must point to an area at least 20 bytes large.
15 * \sa sha(3), openssl(1).
17 void sha1_hash(const char *data
, unsigned long len
, unsigned char *sha1
)
21 SHA1_Update(&c
, data
, len
);