Back to index

php5  5.3.10
php_hash_tiger.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Michael Wallner <mike@php.net>                               |
00016    +----------------------------------------------------------------------+
00017 */
00018 
00019 /* $Id: php_hash_tiger.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_HASH_TIGER_H
00022 #define PHP_HASH_TIGER_H
00023 
00024 /* TIGER context */
00025 typedef struct {
00026        php_hash_uint64 state[3];
00027        php_hash_uint64 passed;
00028        unsigned char buffer[64];
00029        unsigned int passes:1;
00030        unsigned int length:7;
00031 } PHP_TIGER_CTX;
00032 
00033 PHP_HASH_API void PHP_3TIGERInit(PHP_TIGER_CTX *context);
00034 PHP_HASH_API void PHP_4TIGERInit(PHP_TIGER_CTX *context);
00035 PHP_HASH_API void PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len);
00036 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context);
00037 PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context);
00038 PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context);
00039 
00040 #endif
00041 
00042 /*
00043  * Local variables:
00044  * tab-width: 4
00045  * c-basic-offset: 4
00046  * End:
00047  * vim600: sw=4 ts=4 fdm=marker
00048  * vim<600: sw=4 ts=4
00049  */