#include <hasher.hpp>
Public Member Functions | |
| hasher () | |
| hasher (const char *data, int len) | |
| void | update (const char *data, int len) |
| sha1_hash | final () |
| void | reset () |
Private Attributes | |
| SHA1_CTX | m_context |
Definition at line 83 of file hasher.hpp.
| libtorrent::hasher::hasher | ( | ) | [inline] |
| libtorrent::hasher::hasher | ( | const char * | data, | |
| int | len | |||
| ) | [inline] |
| void libtorrent::hasher::update | ( | const char * | data, | |
| int | len | |||
| ) | [inline] |
Definition at line 95 of file hasher.hpp.
References m_context, and SHA1Update().
Referenced by libtorrent::dht::generate_id(), libtorrent::dht::node_impl::generate_token(), libtorrent::piece_manager::impl::identify_data(), libtorrent::torrent_info::parse_info_section(), test_main(), libtorrent::torrent::verify_piece(), and libtorrent::dht::node_impl::verify_token().
| sha1_hash libtorrent::hasher::final | ( | ) | [inline] |
Definition at line 102 of file hasher.hpp.
References libtorrent::big_number::begin(), m_context, and SHA1Final().
Referenced by libtorrent::dht::generate_id(), libtorrent::dht::node_impl::generate_token(), libtorrent::piece_manager::impl::identify_data(), libtorrent::torrent_info::parse_info_section(), test_main(), libtorrent::torrent::verify_piece(), and libtorrent::dht::node_impl::verify_token().
| void libtorrent::hasher::reset | ( | ) | [inline] |
SHA1_CTX libtorrent::hasher::m_context [private] |
1.5.6