Skip to content

Commit

Permalink
feat: enable AES CTR for Pico W
Browse files Browse the repository at this point in the history
  • Loading branch information
cpswan committed Nov 10, 2022
1 parent 451ded8 commit f58768f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/rp2/boards/PICO_W/mpconfigboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
// Enable networking.
#define MICROPY_PY_NETWORK 1

// Enable AES CTR
#define MICROPY_PY_UCRYPTOLIB_CTR (1)

// CYW43 driver configuration.
#define CYW43_USE_SPI (1)
#define CYW43_LWIP (1)
Expand Down
3 changes: 3 additions & 0 deletions ports/rp2/mbedtls/mbedtls_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ time_t rp2_rtctime_seconds(time_t *timer);
// Set MicroPython-specific options.
#define MICROPY_MBEDTLS_CONFIG_BARE_METAL (1)

// Enable AES CTR
#define MBEDTLS_CIPHER_MODE_CTR

// Include common mbedtls configuration.
#include "extmod/mbedtls/mbedtls_config_common.h"

Expand Down

0 comments on commit f58768f

Please sign in to comment.