diff options
| author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2018-06-15 17:07:47 +0300 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2018-06-27 16:29:26 +1000 |
| commit | 473fe45da23f371d7beb6117c31922f9c9ee5942 (patch) | |
| tree | b4b57846eb6f56210d89034bb80779ba3a1d3b19 /docs/library/ucryptolib.rst | |
| parent | 05e0103e9ebc5fde7f965d43ffd7dffe8e9e2048 (diff) | |
extmod/moducryptolib: Optionally export MODE_* constants to Python.
Allow including crypto consts based on compilation settings. Disabled by
default to reduce code size; if one wants extra code readability, can
enable them.
Diffstat (limited to 'docs/library/ucryptolib.rst')
| -rw-r--r-- | docs/library/ucryptolib.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/library/ucryptolib.rst b/docs/library/ucryptolib.rst index 4b2c45f07..c9e0bb71f 100644 --- a/docs/library/ucryptolib.rst +++ b/docs/library/ucryptolib.rst @@ -21,8 +21,8 @@ Classes * *key* is an encryption/decryption key (bytes-like). * *mode* is: - * 1 for Electronic Code Book (ECB). - * 2 for Cipher Block Chaining (CBC) + * ``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) * *IV* is an initialization vector for CBC mode. |
