plugin">
<h1>crypto_plugin</h1>
<p>Declared in &quot;<a class="reference external" href="include/libtorrent/extensions.hpp">libtorrent/extensions.hpp</a>&quot;</p>
<pre class="literal-block">
struct crypto_plugin
{
   virtual void <strong>set_outgoing_key</strong> (span&lt;char const&gt; key) = 0;
   virtual void <strong>set_incoming_key</strong> (span&lt;char const&gt; key) = 0;
   <strong>encrypt</strong> (span&lt;span&lt;char&gt;&gt; <em>/*send_vec*/</em>) = 0;
   virtual std::tuple&lt;int, int, int&gt; 