thash.h - dedup - data deduplication program
 (HTM) git clone git://bitreich.org/dedup/ git://hg6vgqziawt5s4dj.onion/dedup/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
       thash.h (397B)
       ---
            1 enum hash_algo {
            2         BLAKE2B_ALGO,
            3         BLAKE2BP_ALGO,
            4         NR_ALGOS,
            5 };
            6 
            7 struct hash_ctx {
            8         union {
            9                 blake2b_state blake2b_ctx;
           10                 blake2bp_state blake2bp_ctx;
           11         } u;
           12         struct hash_ops *ops;
           13 };
           14 
           15 int hash_init(struct hash_ctx *ctx, int type, size_t n);
           16 int hash_update(struct hash_ctx *ctx, const void *buf, size_t n);
           17 int hash_final(struct hash_ctx *ctx, void *buf, size_t n);
           18 int hash_name2type(char *name);