Lightweight driver for Microchip Crypto Authentication secure elements written in pure python for micropython.
WARNING: this project is in beta stage and is subject to changes of the code-base, including project-wide name changes and API changes.
- Allows PyBoard to control Microchip Crypto Authentication secure elements
- TESTS:
MicroPython v1.9.4-679-ge328a5d46-dirty on 2018-10-29; PYBv1.1 with STM32F405RG
Type "help()" for more information.
>>> import ateccX08a; ateccX08a.test()
INFO:ateccX08a <ATECCX08A address=0x60 retries=20 device=ATECC608A>
INFO:ateccX08a INFO SUCCEDED
INFO:ateccX08a SHA SUCCEDED
INFO:ateccX08a RANDOM SUCCEDED
INFO:ateccX08a NONCE SUCCEDED
INFO:ateccX08a READ SUCCEDED
>>>
Enable DEBUG:
import logging
logging.basicConfig(level=logging.DEBUG)
import ateccX08a
Only for tests: 'logging' already available into folder 'micropython-lib' of this repository
- Copy 'cryptoauthlib' into PyBoard's filesystem
Currently supported commands are:
-
INFO
-
LOCK
-
NONCE
-
RANDOM
-
READ (1)
-
SHA (1)
-
WRITE (1)
-
VERIFY (1)
(1) Not all features are implemented
Currently supported devices are: