Lines Matching defs:crypto
22 #include "crypto.h"
105 tr_crypto * crypto;
189 str = "awaiting crypto select"; break;
214 const uint8_t * torrentHash = tr_cryptoGetTorrentHash( handshake->crypto );
330 public_key = tr_cryptoGetMyPublicKey( handshake->crypto, &len );
432 secret = tr_cryptoComputeSecret( handshake->crypto, yb );
453 tr_cryptoGetTorrentHash( handshake->crypto ),
468 tr_cryptoEncryptInit( handshake->crypto );
488 tr_cryptoDecryptInit( handshake->crypto );
517 tr_cryptoDecryptInit( handshake->crypto );
518 tr_cryptoDecrypt( handshake->crypto, key_len, tmp, tmp );
544 dbgmsg( handshake, "crypto select is %d", (int)crypto_select );
634 tr_cryptoDecrypt( handshake->crypto, 1, &pstrlen, &pstrlen );
753 secret = tr_cryptoComputeSecret( handshake->crypto, ya );
760 myKey = tr_cryptoGetMyPublicKey( handshake->crypto, &len );
852 tr_cryptoDecryptInit( handshake->crypto );
908 tr_cryptoEncryptInit( handshake->crypto );
923 dbgmsg( handshake, "selecting crypto mode '%d'", (int)crypto_select );
1195 handshake->crypto = tr_peerIoGetCrypto( io );