summaryrefslogtreecommitdiff
path: root/docs/library/ucryptolib.rst
diff options
context:
space:
mode:
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>2019-04-23 12:39:05 +0300
committerDamien George <damien.p.george@gmail.com>2019-05-06 18:09:48 +1000
commitef9843653b795b650e1fe77e22f87e3523bd0a08 (patch)
tree03e184551ea430f8e5d95cc40748f7af5c8773df /docs/library/ucryptolib.rst
parent906fb89fd778cb695ba81c871086fe1ce340e681 (diff)
extmod/moducryptolib: Add AES-CTR support.
Selectable at compile time via MICROPY_PY_UCRYPTOLIB_CTR. Disabled by default.
Diffstat (limited to 'docs/library/ucryptolib.rst')
-rw-r--r--docs/library/ucryptolib.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/library/ucryptolib.rst b/docs/library/ucryptolib.rst
index c9e0bb71f..79471c2e9 100644
--- a/docs/library/ucryptolib.rst
+++ b/docs/library/ucryptolib.rst
@@ -22,9 +22,11 @@ Classes
* *mode* is:
* ``1`` (or ``ucryptolib.MODE_ECB`` if it exists) for Electronic Code Book (ECB).
- * ``2`` (or ``ucryptolib.MODE_CBC`` if it exists) for Cipher Block Chaining (CBC)
+ * ``2`` (or ``ucryptolib.MODE_CBC`` if it exists) for Cipher Block Chaining (CBC).
+ * ``6`` (or ``ucryptolib.MODE_CTR`` if it exists) for Counter mode (CTR).
* *IV* is an initialization vector for CBC mode.
+ * For Counter mode, *IV* is the initial value for the counter.
.. method:: encrypt(in_buf, [out_buf])