diff options
| author | Paul Sokolovsky | 2018-01-07 15:13:56 +0200 |
|---|---|---|
| committer | Damien George | 2018-06-27 14:54:40 +1000 |
| commit | 567bc2d6ce18f55e7a1d2c8e023ead44f5c2cc45 (patch) | |
| tree | c456dd0222cc52ca7f2df9c9a5fcc42b4c277c36 /ports/unix | |
| parent | b9ec6037edf5e6ff6f8f400d70f7351d1b0af67d (diff) | |
extmod/moducryptolib: Add ucryptolib module with crypto functions.
The API follows guidelines of https://www.python.org/dev/peps/pep-0272/,
but is optimized for code size, with the idea that full PEP 0272
compatibility can be added with a simple Python wrapper mode.
The naming of the module follows (u)hashlib pattern.
At the bare minimum, this module is expected to provide:
* AES128, ECB (i.e. "null") mode, encrypt only
Implementation in this commit is based on axTLS routines, and implements
following:
* AES 128 and 256
* ECB and CBC modes
* encrypt and decrypt
Diffstat (limited to 'ports/unix')
| -rw-r--r-- | ports/unix/mpconfigport_coverage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ports/unix/mpconfigport_coverage.h b/ports/unix/mpconfigport_coverage.h index f0e6fbe94..d0becfbc0 100644 --- a/ports/unix/mpconfigport_coverage.h +++ b/ports/unix/mpconfigport_coverage.h @@ -49,6 +49,7 @@ #define MICROPY_VFS_FAT (1) #define MICROPY_PY_FRAMEBUF (1) #define MICROPY_PY_COLLECTIONS_NAMEDTUPLE__ASDICT (1) +#define MICROPY_PY_UCRYPTOLIB (1) // TODO these should be generic, not bound to fatfs #define mp_type_fileio mp_type_vfs_posix_fileio |
