Patterned after sha.c by A.M. Kuchling and others.
To use:
Requires the tiger() function as defined in the reference implementation provided by the creators of the Tiger algorithm. See
http://www.cs.technion.ac.il/~biham/Reports/Tiger/
Inclusion in gtk-gnutella is:
THE WORK IS PROVIDED "AS IS," AND COMES WITH ABSOLUTELY NO WARRANTY, EXPRESS OR IMPLIED, TO THE EXTENT PERMITTED BY APPLICABLE LAW, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
(PD) 2001 The Bitzi Corporation Please see file COPYING or http://bitzi.com/publicdomain for more info.
#include "common.h"
#include "endian.h"
#include "misc.h"
#include "tigertree.h"
#include "override.h"
Functions | |
RCSID ("$Id:tigertree.c, v 1.9 2005/10/28 17:35:26 cbiere Exp $") | |
void | tt_endian (gchar *s) |
void | tt_init (TT_CONTEXT *ctx) |
Initialize the tigertree context. | |
void | tt_compose (TT_CONTEXT *ctx) |
void | tt_block (TT_CONTEXT *ctx) |
void | tt_update (TT_CONTEXT *ctx, gchar *buffer, gint32 len) |
void | tt_final (TT_CONTEXT *ctx) |
No need to call this directly; tt_digest calls it for you. | |
void | tt_digest (TT_CONTEXT *ctx, gchar *s) |
void | tt_copy (TT_CONTEXT *dest, TT_CONTEXT *src) |
This code untested; use at own risk. |
|
|
|
|
|
|
|
This code untested; use at own risk.
|
|
|
|
|
|
No need to call this directly; tt_digest calls it for you.
|
|
Initialize the tigertree context.
|
|
|