Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, March 29, 2024

File: [Platon] / libplaton / platon / hash / tiger.h (download)

Revision 1.1, Fri Aug 27 19:18:55 2004 UTC (19 years, 7 months ago) by nepto

Added new "hash" subdirectory with initial Tiger hash function.

/**
 * Tiger cryptographic hash function implementation
 *
 * @file    platon/hash/tiger.h
 * @author    Ross Anderson <rja14 AT cl.cam.ac.uk>
 * @author  Eli Biham <biham AT cs.technion.ac.il>
 * @version    \$Platon: $
 * @date    2004
 *
 * These subroutines are extracted from public source codes located at
 * http://www.cs.technion.ac.il/~biham/Reports/Tiger/
 */

#ifndef _PLATON_HASH_TIGER_H
#define _PLATON_HASH_TIGER_H

#ifndef PLATON_FUNC
# define PLATON_FUNC(_name) _name
#endif
#ifndef PLATON_FUNC_STR
# define PLATON_FUNC_STR(_name) #_name
#endif

/* This should be probably moved into some general header file.
   -- Nepto [2004-08-27] */
typedef unsigned long long int word64;
typedef unsigned long word32;
typedef unsigned char byte;

#ifdef __cplusplus
extern "C" {
#endif

    void PLATON_FUNC(tiger_compress)
        (word64 *str, word64 state[3]);

    void PLATON_FUNC(tiger)
        (word64 *str, word64 length, word64 res[3]);

#ifdef __cplusplus
}
#endif

#endif /* #ifndef _PLATON_HASH_TIGER_H */


Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top