tsha512.h - sick - sign and check files using ed25519
 (HTM) git clone git://z3bra.org/sick
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tsha512.h (821B)
       ---
            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  * Tom St Denis, tomstdenis@gmail.com, http://libtom.org
           10  */
           11 
           12 #ifndef SHA512_H
           13 #define SHA512_H
           14 
           15 #include <stddef.h>
           16 #include <stdint.h>
           17 
           18 /* state */
           19 typedef struct sha512_context_ {
           20     uint64_t  length, state[8];
           21     size_t curlen;
           22     unsigned char buf[128];
           23 } sha512_context;
           24 
           25 
           26 int sha512_init(sha512_context * md);
           27 int sha512_final(sha512_context * md, unsigned char *out);
           28 int sha512_update(sha512_context * md, const unsigned char *in, size_t inlen);
           29 int sha512(const unsigned char *message, size_t message_len, unsigned char *out);
           30 
           31 #endif