tigertree.h File Reference
Detailed Description
Implementation of the TigerTree algorithm.
This file comes from http://sourceforge.net/projects/tigertree/
Inclusion in gtk-gnutella is:
- Author:
- Jeroen Asselman
- Date:
- 2003
Copyright (C) 2001 Bitzi (aka Bitcollider) Inc. and Gordon Mohr Released into the public domain by same; permission is explicitly granted to copy, modify, and use freely.
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.
#include "common.h"
#include "lib/tiger.h"
#include "lib/misc.h"
Go to the source code of this file.
Define Documentation
| #define TTH_BLOCKSIZE 1024 |
|
| #define TTH_MAX_LEAVES (1 << TTH_MAX_DEPTH) |
|
Typedef Documentation
Function Documentation
|
|
Runs some test cases to check whether the implementation is alright.
|
| size_t tt_compute_parents |
( |
struct tth * |
dst, |
|
|
const struct tth * |
src, |
|
|
size_t |
src_leaves |
|
) |
|
|
|
|
- Parameters:
-
| dst | must be (src_leaves + 1) / 2 elements large. |
| src | the nodes to compute the parents for. |
| src_leaves | the number of 'src' nodes. return The number of parents. |
|
| struct tth tt_root_hash |
( |
const struct tth * |
src, |
|
|
size_t |
n_leaves |
|
) |
|
|
| void tt_update |
( |
TTH_CONTEXT * |
ctx, |
|
|
gconstpointer |
data, |
|
|
size_t |
len |
|
) |
|
|
Generated on Sat Jun 30 17:53:31 2007 for gtk-gnutella by
1.3.9.1