Skip to content

Lightweight driver for Microchip's Crypto Authentication secure elements written in pure python for micropython

License

Notifications You must be signed in to change notification settings

dmazzella/ucryptoauthlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ucryptoauthlib

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.

Features

  • Allows PyBoard to control Microchip Crypto Authentication secure elements

Usage

  • 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

External dependencies

Only for tests: 'logging' already available into folder 'micropython-lib' of this repository

Install 'cryptoauthlib' into the PyBoard

  • Copy 'cryptoauthlib' into PyBoard's filesystem

Software

Currently supported commands are:

  • INFO

  • LOCK

  • NONCE

  • RANDOM

  • READ (1)

  • SHA (1)

  • WRITE (1)

  • VERIFY (1)

    (1) Not all features are implemented

Hardware

Currently supported devices are:

About

Lightweight driver for Microchip's Crypto Authentication secure elements written in pure python for micropython

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages