Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
common.py Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
config.md Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
config.py Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
create_csr.py Update config.py to genkey other slots - closes #5. Added create_csr.… Nov 6, 2018
ecdh.md Update Docs, License, and script initialization Aug 23, 2018
ecdh.py Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
info.md Update Docs, License, and script initialization Aug 23, 2018
info.py Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
key_attestation.md Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
key_attestation.py Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
read_write.md Update Docs, License, and script initialization Aug 23, 2018
read_write.py Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
requirements.txt Added TNG certs example May 17, 2019
sign_verify.md Update Docs, License, and script initialization Aug 23, 2018
sign_verify.py Added key attestation example. Updated ATECC608A example config. Mar 5, 2019
tng_certs.md Minor doc update May 20, 2019
tng_certs.py Added TNG certs example May 17, 2019

README.md

Python CryptoAuthLib Examples

This directory contains a number of examples for using the python cryptoauthlib module

Prerequesites

Install the python requirements via the command:

    pip install -r requirements.txt

Running the examples

The examples are intended to be simple and straightforward to illustrate the basic concepts. To get help on any example you can consult the associated document (e.g. info.py has an accompanying info.md document) or from the command line:

    info.py -h
usage: info.py [-h] [-i {i2c,hid}]

## Info Example

This example extracts identifying information and configuration from a device.

* Device type identification and mask revision
* Serial number
* Configuration zone data
* Lock status

### Prerequisite software before running the example:
- cryptoauthlib python module, can be install through pip with
    "pip install cryptoauthlib" command

### Supported devices:
- [ATSHA204A](http://www.microchip.com/ATSHA204A)
- [ATECC508A](http://www.microchip.com/ATECC508A)
- [ATECC608A](http://www.microchip.com/ATECC608A)

optional arguments:
  -h, --help            show this help message and exit
  -i {i2c,hid}, --iface {i2c,hid}
                        Interface type (default: hid)

list of Examples

What does the Python CryptoAuthLib package do?

CryptoAuthLib module gives access to most functions available as part of standard cryptoauthlib (which is written in 'C'). These python functions for the most part are very similar to 'C' functions. The module in short acts as a wrapper over the 'C' cryptoauth library functions.

Microchip cryptoauthlib product page: Link

Supported hardware

You can’t perform that action at this time.