tsha1.h - libeech - bittorrent library
 (HTM) git clone git://z3bra.org/libeech.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tsha1.h (610B)
       ---
            1 /* LibTomCrypt, modular cryptographic library -- Tom St Denis
            2  *
            3  * LibTomCrypt is a library that provides various cryptographic
            4  * algorithms in a highly modular and flexible manner.
            5  *
            6  * The library is free for all purposes without any express
            7  * guarantee it works.
            8  */
            9 
           10 typedef struct {
           11     uint64_t length;
           12     uint32_t state[5], curlen;
           13     unsigned char buf[64];
           14 } sha1_context;
           15 
           16 int sha1_init(sha1_context * md);
           17 int sha1_process(sha1_context * md, const unsigned char *in, unsigned long inlen);
           18 int sha1_done(sha1_context * md, unsigned char *hash);
           19 int sha1(const char *in, size_t len, char *hash);