H A D | crypto.c | 10 * $Id: crypto.c 12885 2011-09-16 22:55:58Z jordan $ 28 #include "crypto.h" 94 ensureKeyExists( tr_crypto * crypto) argument 96 if( crypto->dh == NULL ) 125 memset( crypto->myPublicKey, 0, offset ); 126 BN_bn2bin( dh->pub_key, crypto->myPublicKey + offset ); 128 crypto->dh = dh; 133 tr_cryptoConstruct( tr_crypto * crypto, const uint8_t * torrentHash, bool isIncoming ) argument 135 memset( crypto, 0, sizeof ( tr_crypto ) ); 137 crypto 154 tr_cryptoComputeSecret( tr_crypto * crypto, const uint8_t * peerPublicKey ) argument 184 tr_cryptoGetMyPublicKey( const tr_crypto * crypto, int * setme_len ) argument 197 initRC4( tr_crypto * crypto, RC4_KEY * setme, const char * key ) argument 232 tr_cryptoDecrypt( tr_crypto * crypto, size_t buf_len, const void * buf_in, void * buf_out ) argument 253 tr_cryptoEncrypt( tr_crypto * crypto, size_t buf_len, const void * buf_in, void * buf_out ) argument 268 tr_cryptoSetTorrentHash( tr_crypto * crypto, const uint8_t * hash ) argument [all...] |