Daniel Pollard
84c806a4be
updated descriptions and build variable
2020-05-07 12:42:46 +10:00
Sean Cross
b168784fa0
aesio: add basic AES encryption and decryption
...
This adds initial support for an AES module named aesio. This
implementation supports only a subset of AES modes, namely
ECB, CBC, and CTR modes.
Example usage:
```
>>> import aesio
>>>
>>> key = b'Sixteen byte key'
>>> cipher = aesio.AES(key, aesio.MODE_ECB)
>>> output = bytearray(16)
>>> cipher.encrypt_into(b'Circuit Python!!', output)
>>> output
bytearray(b'E\x14\x85\x18\x9a\x9c\r\x95>\xa7kV\xa2`\x8b\n')
>>>
```
This key is 16-bytes, so it uses AES128. If your key is 24- or 32-
bytes long, it will switch to AES192 or AES256 respectively.
This has been tested with many of the official NIST test vectors,
such as those used in `pycryptodome` at
39626a5b01/lib/Crypto/SelfTest/Cipher/test_vectors/AES
CTR has not been tested as NIST does not provide test vectors for it.
Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-06 17:40:06 +08:00
Daniel Pollard
8961dd9fe7
changed build variables as per advice
2020-05-06 09:05:14 +10:00
Daniel Pollard
bfa5cd9c13
refactor countio based on feedback
2020-05-05 15:23:38 +10:00
Dan Halbert
241d7e2ae6
change many ifndefs to ?=
2020-04-29 23:31:34 -04:00
Lucian Copeland
bd0df9e3bc
Minor redundancy fix
2020-04-23 17:43:35 -04:00
Lucian Copeland
c6c77726e7
Merge remote-tracking branch 'upstream/master' into stm32-docfix
2020-04-23 13:39:48 -04:00
Lucian Copeland
8791ca6af3
implement requested changes
2020-04-23 13:33:41 -04:00
Lucian Copeland
d0a2106547
Remove old build flags, add fixes for shared_matrix
2020-04-22 16:06:08 -04:00
Jeff Epler
5fcc6d6286
RGBMatrix: finish renaming from Protomatter
...
This gets all the purely internal references. Some uses of
protomatter/Protomatter/PROTOMATTER remain, as they are references
to symbols in the Protomatter C library itself.
2020-04-17 18:44:07 -05:00
Jeff Epler
09dc46a984
Add Protomatter and FramebufferDisplay
2020-04-14 18:24:54 -05:00
Jeff Epler
d6342af980
ulab: rename enable macro so it appears in the support matrix
2020-03-17 09:33:03 -05:00
Jeff Epler
491a31a731
circuitpy_mpconfig.mk: Enable ULAB for "full builds"
...
This enables it on the imxrt and cds56 ports where it was disabled before
2020-03-09 15:54:40 -05:00
Scott Shawcroft
e8f7141564
Disable BLE file service for now
...
Fixes #2633
2020-02-20 12:15:56 -08:00
James Bowman
acef93a253
Rename eveL to _eve, EVEL to _EVE
2020-02-05 18:17:58 -08:00
James Bowman
8347f2b5c3
Correct default state to off for eveL module.
...
Fix build break because of overflowing small ports
2020-02-03 19:23:42 -08:00
James Bowman
7fd30e7d20
First draft of eveL, the low-level module of the Gameduino (and BridgeTek EVE) bindings.
...
[adafruit/circuitpython#2578 ]
2020-02-03 16:46:14 -08:00
Dan Halbert
189f2d5f07
Make requiring I2C pullups be optional
2020-01-09 17:31:50 -05:00
Dan Halbert
68ae47907c
merge from upstream
2019-12-10 21:04:46 -05:00
Jeff Epler
a08d9e6d8e
audiocore: Add MP3File using Adafruit_MP3 library
2019-12-10 14:03:06 -06:00
Dan Halbert
40434d6919
wip
2019-12-05 22:45:53 -05:00
Dan Halbert
1d411d2874
Merge remote-tracking branch 'adafruit/master' into testing-fixes
2019-11-22 11:55:34 -05:00
Thea Flowers
c7195c4bc5
Allow boards to enable the `micropython.native` decorator
...
Adds the `CIRCUITPY_ENABLE_MPY_NATIVE` for `mpconfigboard.mk` that enables
the `micropython.native` decorator.
2019-11-05 14:27:53 -08:00
Dan Halbert
be8136dc6d
Merge remote-tracking branch 'adafruit/master' into bonding1
2019-10-15 15:55:21 -04:00
Dan Halbert
fc19e03128
WIP: bonding
2019-10-06 21:30:26 -04:00
Hierophect
e017a5925d
Revert modules with missed dependence
2019-10-04 15:04:24 -04:00
Hierophect
7a2f60c43d
Add Always Build flag, remove redundancy
2019-10-03 15:23:45 -04:00
sommersoft
b1c3d47413
Merge branch 'master' of https://github.com/adafruit/circuitpython into mixer_voice
2019-09-01 21:16:12 -05:00
sommersoft
8120f5cdad
Merge branch 'master' of https://github.com/adafruit/circuitpython into mixer_voice
2019-08-29 22:14:53 -05:00
Dan Halbert
7a64af9280
rename bleio module to _bleio
2019-08-29 18:44:27 -04:00
Scott Shawcroft
0876d5c4ad
Disable bitbangio on Itsy M0
...
Also, switch CIRCUITPY_BITBANG_APA102 to makefile setting so it can alter included files
2019-08-27 15:21:47 -07:00
sommersoft
df5568d993
move Mixer & MixerVoice from 'audiocore' to 'audiomixer'
2019-08-24 23:36:18 -05:00
Dan Halbert
e00696de7f
merge from upstream and make translate
2019-08-20 13:06:23 -04:00
Dan Halbert
e2a4c76a37
make nrf touchio be generic: now available for SAMD51 too
2019-08-18 08:44:10 -04:00
Jeff Epler
47d6dd843e
audioio: By default, be compatible with 4.x
...
Testing performed: That the shipped .mpy files on a PyPortal (CP 4.x)
still work (play audio) with this branch, instead of erroring because
`WaveFile` can't be found in `audioio`.
Flash usage grew by 28 bytes. (I expected 24, there must be some other
effect on size/alignment that I didn't predict)
2019-08-17 13:54:06 -05:00
Jeff Epler
54cde56ec5
audiopwmio: Add the shared files for this new module
2019-07-26 07:52:37 -05:00
Scott Shawcroft
d99d3bd471
Merge pull request #2010 from jepler/audiocore
...
audiocore: Factor from audioio
2019-07-25 13:52:30 -07:00
Jeff Epler
6b44e40ee8
audiocore: Factor from audioio
...
When nrf pwm audio is introduced, it will be called `audiopwmio`. To
enable code sharing with the existing (dac-based) `audioio`, factor
the sample and mixer types to `audiocore`.
INCOMPATIBLE CHANGE: Now, `Mixer`, `RawSample` and `WaveFile` must
be imported from `audiocore`, not `audioio`.
2019-07-25 06:44:26 -05:00
Hierophect
a63df51893
Requested changes, general cleanup
2019-07-24 14:21:27 -04:00
Dan Halbert
1bb4fccc3b
Turn off SUPEROPT on gc.c instead of trying to squueze inline limit so much; reorganize mpconfigboard.mk files
2019-06-12 11:08:22 -04:00
Elvis Pfützenreuter
1da8d4b4da
Add PS/2 support -- ps2io module
2019-06-04 18:05:46 -03:00
Scott Shawcroft
c927e6b938
Split GamePadShift from GamePad to save space on most boards.
2019-04-15 15:40:06 -07:00
Dan Halbert
35ab1a1983
Turn on frequencyio only on CIRCUITPY_FULL_BUILD
2019-03-27 16:57:35 -04:00
sommersoft
2cd6a79016
better handle frequencyio inclusion
2019-03-01 22:46:57 -06:00
sommersoft
a44bfc2730
Merge branch 'master' of https://github.com/adafruit/circuitpython into new_freq_in
2019-03-01 21:24:30 -06:00
Radomir Dopieralski
45fea86554
Rebase on top of CircuitPython 4.x
2019-03-01 14:59:21 +01:00
sommersoft
9d3fcf9a0d
add frequencyio to circuipy_ configs
2019-02-24 18:05:51 -06:00
Dan Halbert
97aeb1953b
correct weak module links; samd module only in m4 ports; update libraries
2019-02-17 23:48:08 -05:00
Dan Halbert
7b3f7605b8
address @tannewt changes: move and rename common files; remove PORT_HEAP_SIZE
2019-02-15 20:32:32 -05:00