summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
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 /py/mpconfig.h
parent906fb89fd778cb695ba81c871086fe1ce340e681 (diff)
downloadmicropython-ef9843653b795b650e1fe77e22f87e3523bd0a08.tar.gz
micropython-ef9843653b795b650e1fe77e22f87e3523bd0a08.zip
extmod/moducryptolib: Add AES-CTR support.
Selectable at compile time via MICROPY_PY_UCRYPTOLIB_CTR. Disabled by default.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 893ac7dc7e..38b36a4b18 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -1281,6 +1281,11 @@ typedef double mp_float_t;
#define MICROPY_PY_UCRYPTOLIB (0)
#endif
+// Depends on MICROPY_PY_UCRYPTOLIB
+#ifndef MICROPY_PY_UCRYPTOLIB_CTR
+#define MICROPY_PY_UCRYPTOLIB_CTR (0)
+#endif
+
#ifndef MICROPY_PY_UCRYPTOLIB_CONSTS
#define MICROPY_PY_UCRYPTOLIB_CONSTS (0)
#endif