You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -46,7 +47,7 @@ <h1>API<a class="headerlink" href="#api" title="Permalink to this headline">¶</
46
47
<h2>The <em>new</em> constructor<aclass="headerlink" href="#the-new-constructor" title="Permalink to this headline">¶</a></h2>
47
48
<dlclass="function">
48
49
<dtid="camellia.new">
49
-
<codeclass="descclassname">camellia.</code><codeclass="descname">new</code><spanclass="sig-paren">(</span><em>key</em>, <em>mode=1</em>, <em>IV=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#camellia.new" title="Permalink to this definition">¶</a></dt>
50
+
<codeclass="descclassname">camellia.</code><codeclass="descname">new</code><spanclass="sig-paren">(</span><em>key</em>, <em>mode=1</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#camellia.new" title="Permalink to this definition">¶</a></dt>
50
51
<dd><p>Create an “CamelliaCipher” object.
<li><strong>key</strong> (<em>bytestring</em>) – The key for encrytion/decryption. Must be 16/24/32 in length.</li>
59
-
<li><strong>mode</strong> (<em>int, on of MODE_* constants</em>) – Mode of operation, only ECB (0) and CBC (1) are supported.</li>
60
+
<li><strong>mode</strong> (<aclass="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a><em>, </em><em>on of MODE_* constants</em>) – Mode of operation, only ECB (0) and CBC (1) are supported.</li>
60
61
<li><strong>IV</strong> (<em>bytestring</em>) – Initialisation vector for CBC/CFB/OFB, must be 16 in length.</li>
61
-
<li><strong>counter</strong> (<em>callable, must return bytestrings</em>) – Counter for CTR.</li>
@@ -102,7 +103,7 @@ <h2>Modes of operation<a class="headerlink" href="#modes-of-operation" title="Pe
102
103
<dlclass="data">
103
104
<dtid="camellia.MODE_CTR">
104
105
<codeclass="descclassname">camellia.</code><codeclass="descname">MODE_CTR</code><emclass="property"> = 6</em><aclass="headerlink" href="#camellia.MODE_CTR" title="Permalink to this definition">¶</a></dt>
105
-
<dd><p>CTR mode of operation, currently not supported</p>
106
+
<dd><p>CTR mode of operation</p>
106
107
</dd></dl>
107
108
108
109
</div>
@@ -211,14 +212,14 @@ <h3><a href="index.html">Table Of Contents</a></h3>
0 commit comments