D:/opendownloadmanager/ODM-1.x/Bittorrent/libtorrent-0.12/include/libtorrent/hasher.hpp File Reference

#include <cassert>
#include <boost/cstdint.hpp>
#include "libtorrent/peer_id.hpp"
#include "libtorrent/config.hpp"

Go to the source code of this file.

Namespaces

namespace  libtorrent

Classes

struct  SHA1_CTX
class  libtorrent::adler32_crc
class  libtorrent::hasher

Functions

TORRENT_EXPORT void SHA1Init (SHA1_CTX *context)
TORRENT_EXPORT void SHA1Update (SHA1_CTX *context, boost::uint8_t const *data, boost::uint32_t len)
TORRENT_EXPORT void SHA1Final (SHA1_CTX *context, boost::uint8_t *digest)
unsigned long adler32 (unsigned long adler, const char *data, unsigned int len)


Function Documentation

unsigned long adler32 ( unsigned long  adler,
const char *  data,
unsigned int  len 
)

TORRENT_EXPORT void SHA1Final ( SHA1_CTX context,
boost::uint8_t digest 
)

void SHA1Init ( SHA1_CTX context  ) 

Definition at line 162 of file sha1.cpp.

References SHA1_CTX::count, and SHA1_CTX::state.

Referenced by libtorrent::hasher::hasher(), and libtorrent::hasher::reset().

TORRENT_EXPORT void SHA1Update ( SHA1_CTX context,
boost::uint8_t const *  data,
boost::uint32_t  len 
)


Generated on Sun May 25 00:19:42 2008 by  doxygen 1.5.6