Searched refs:torrentHash (Results 1 - 7 of 7) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/transmission/transmission-2.73/libtransmission/
H A Dcrypto.h45 uint8_t torrentHash[SHA_DIGEST_LENGTH]; member in struct:__anon7331
53 void tr_cryptoConstruct( tr_crypto * crypto, const uint8_t * torrentHash, bool isIncoming );
59 void tr_cryptoSetTorrentHash( tr_crypto * crypto, const uint8_t * torrentHash );
H A Dcrypto.c133 tr_cryptoConstruct( tr_crypto * crypto, const uint8_t * torrentHash, bool isIncoming ) argument
139 tr_cryptoSetTorrentHash( crypto, torrentHash );
210 && SHA1_Update( &sha, crypto->torrentHash, SHA_DIGEST_LENGTH )
274 memcpy( crypto->torrentHash, hash, SHA_DIGEST_LENGTH );
276 memset( crypto->torrentHash, 0, SHA_DIGEST_LENGTH );
285 return crypto->torrentHash;
H A Dtorrent.h319 tr_torrentExists( const tr_session * session, const uint8_t * torrentHash )
321 return tr_torrentFindFromHash( (tr_session*)session, torrentHash ) != NULL;
H A Dpeer-io.h129 const uint8_t * torrentHash,
H A Dpeer-io.c591 const uint8_t * torrentHash,
617 tr_cryptoConstruct( &io->crypto, torrentHash, isIncoming );
676 const uint8_t * torrentHash,
685 assert( torrentHash );
699 torrentHash, false, isSeed, fd, utp_socket );
587 tr_peerIoNew( tr_session * session, tr_bandwidth * parent, const tr_address * addr, tr_port port, const uint8_t * torrentHash, bool isIncoming, bool isSeed, int socket, struct UTPSocket * utp_socket) argument
672 tr_peerIoNewOutgoing( tr_session * session, tr_bandwidth * parent, const tr_address * addr, tr_port port, const uint8_t * torrentHash, bool isSeed, bool utp ) argument
H A Dhandshake.c214 const uint8_t * torrentHash = tr_cryptoGetTorrentHash( handshake->crypto ); local
215 const tr_torrent * tor = tr_torrentFindFromHash( handshake->session, torrentHash );
231 memcpy( walk, torrentHash, SHA_DIGEST_LENGTH );
H A Dtorrent.c111 tr_torrentFindFromHash( tr_session * session, const uint8_t * torrentHash )
116 if( *tor->info.hash == *torrentHash )
117 if( !memcmp( tor->info.hash, torrentHash, SHA_DIGEST_LENGTH ) )

Completed in 168 milliseconds