summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>2018-06-15 17:07:47 +0300
committerDamien George <damien.p.george@gmail.com>2018-06-27 16:29:26 +1000
commit473fe45da23f371d7beb6117c31922f9c9ee5942 (patch)
treeb4b57846eb6f56210d89034bb80779ba3a1d3b19 /py
parent05e0103e9ebc5fde7f965d43ffd7dffe8e9e2048 (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 'py')
-rw-r--r--py/mpconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 2fe3bdb5a..8f202380d 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1167,6 +1167,10 @@ typedef double mp_float_t;
#define MICROPY_PY_UCRYPTOLIB (0)
#endif
+#ifndef MICROPY_PY_UCRYPTOLIB_CONSTS
+#define MICROPY_PY_UCRYPTOLIB_CONSTS (0)
+#endif
+
#ifndef MICROPY_PY_UBINASCII
#define MICROPY_PY_UBINASCII (0)
#endif