Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/ray/src/lib/crypto/shashbase.cc

Go to the documentation of this file.
00001 /*
00002  * lib/crypto/shashbase.cc
00003  * 
00004  * Implementation of null-hash algorithm (which does not "hash" at all). 
00005  * 
00006  * Copyright (c) 2001--2004 by Wolfgang Wieser ] wwieser (a) gmx <*> de [ 
00007  * 
00008  * This file may be distributed and/or modified under the terms of the 
00009  * GNU General Public License version 2 as published by the Free Software 
00010  * Foundation. (See COPYING.GPL for details.)
00011  * 
00012  * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00013  * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00014  * 
00015  */
00016 
00017 #include "shashbase.h"
00018 
00019 
00020 const SecureHashBase::Parameters SecureHashBase::par = 
00021 {
00022     INIT_FIELD(hash_size) 1,
00023     INIT_FIELD(block_size) 1,
00024     INIT_FIELD(hash_ID) 0x0000,
00025     INIT_FIELD(name) "null"
00026 };
00027 
00028 
00029 uint64 SecureHashBase::FedBytes() const
00030 {
00031     return(length);
00032 }
00033 
00034 
00035 void SecureHashBase::reset()
00036 {
00037     length=0;
00038 }
00039 
00040 
00041 void SecureHashBase::feed(const char * /*buf*/,size_t len)
00042 {
00043     length+=len;
00044 }
00045 
00046 
00047 void SecureHashBase::final()
00048 {
00049 }
00050 
00051 
00052 void SecureHashBase::GetHash(char *buf) const
00053 {
00054     *buf='\0';
00055 }

Generated on Sat Feb 19 22:33:45 2005 for Ray by doxygen 1.3.5