Skip to content

Instantly share code, notes, and snippets.

@bryan-hunt
Created February 6, 2019 23:11
Show Gist options
  • Save bryan-hunt/809e41fca98641efd44050da2caf63bb to your computer and use it in GitHub Desktop.
Save bryan-hunt/809e41fca98641efd44050da2caf63bb to your computer and use it in GitHub Desktop.
Python Cryptoauthlib install on stretch
pi@raspberrypi:~ $ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
chardet (2.3.0)
cryptography (1.7.1)
devscripts (2.17.6+deb9u2)
file-magic (0.3.0)
idna (2.2)
keyring (10.1)
keyrings.alt (1.3)
pip (9.0.1)
pyasn1 (0.1.9)
pycrypto (2.6.1)
pygobject (3.22.0)
python-apt (1.1.0b5)
python-debian (0.1.30)
pyxdg (0.25)
requests (2.12.4)
SecretStorage (2.3.1)
setuptools (33.1.1)
six (1.10.0)
ssh-import-id (5.6)
urllib3 (1.19.1)
wheel (0.29.0)
pi@raspberrypi:~/cryptoauthtools/python/examples $ cat requirements.txt
cryptoauthlib
cryptography >= 2.3
pi@raspberrypi:~/cryptoauthtools/python/examples $ pip3 install -r requirements.txt
Collecting cryptoauthlib (from -r requirements.txt (line 1))
Downloading https://www.piwheels.org/simple/cryptoauthlib/cryptoauthlib-20190125-cp35-cp35m-linux_armv7l.whl (101kB)
100% |████████████████████████████████| 102kB 270kB/s
Collecting cryptography>=2.3 (from -r requirements.txt (line 2))
Downloading https://www.piwheels.org/simple/cryptography/cryptography-2.5-cp35-cp35m-linux_armv7l.whl (865kB)
100% |████████████████████████████████| 870kB 160kB/s
Collecting asn1crypto>=0.21.0 (from cryptography>=2.3->-r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting cffi!=1.11.3,>=1.8 (from cryptography>=2.3->-r requirements.txt (line 2))
Downloading https://www.piwheels.org/simple/cffi/cffi-1.11.5-cp35-cp35m-linux_armv7l.whl (304kB)
100% |████████████████████████████████| 307kB 310kB/s
Collecting six>=1.4.1 (from cryptography>=2.3->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.8->cryptography>=2.3->-r requirements.txt (line 2))
Using cached https://www.piwheels.org/simple/pycparser/pycparser-2.19-py2.py3-none-any.whl
Installing collected packages: cryptoauthlib, pycparser, cffi, asn1crypto, six, cryptography
Successfully installed asn1crypto-0.24.0 cffi-1.11.5 cryptoauthlib-20190125 cryptography-2.5 pycparser-2.19 six-1.12.0
pi@raspberrypi:~/cryptoauthtools/python/examples $ pip3 list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
asn1crypto (0.24.0)
cffi (1.11.5)
chardet (2.3.0)
cryptoauthlib (20190125)
cryptography (2.5)
devscripts (2.17.6+deb9u2)
file-magic (0.3.0)
idna (2.2)
keyring (10.1)
keyrings.alt (1.3)
pip (9.0.1)
pyasn1 (0.1.9)
pycparser (2.19)
pycrypto (2.6.1)
pygobject (3.22.0)
python-apt (1.1.0b5)
python-debian (0.1.30)
pyxdg (0.25)
requests (2.12.4)
SecretStorage (2.3.1)
setuptools (33.1.1)
six (1.12.0)
ssh-import-id (5.6)
urllib3 (1.19.1)
wheel (0.29.0)
pi@raspberrypi:~/cryptoauthtools/python/examples $ python3 info.py -i i2c -p slave_address=0xB0
Device Part:
ATECC608A
Serial number:
01 23 B6 F1 C8 F5 AE 14 EE
Configuration Zone:
01 23 B6 F1 00 00 60 01 C8 F5 AE 14 EE C1 41 00
B0 00 55 01 8F 20 C4 44 87 20 87 20 8F 0F C4 36
9F 0F 82 20 0F 0F C4 44 0F 0F 0F 0F 0F 0F 0F 0F
0F 0F 0F 0F FF FF FF FF 00 00 00 00 FF FF FF FF
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 FF FF 06 40 00 00 00 00
33 00 1C 00 13 00 13 00 7C 00 1C 00 3C 00 33 00
3C 00 3C 00 3C 00 30 00 3C 00 3C 00 3C 00 30 00
Check Device Locks
Config Zone is locked
Data Zone is locked
Loading Public key
-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9wzUq1EUAoNrG01rXYjNd35mxKuA
Ojw/klIrNEBciSLLOTLjs/gvFS7N8AFXDK18vpxxu6ykzF2LRd7RY8yEFw==
-----END PUBLIC KEY-----
Done
pi@raspberrypi:~/cryptoauthtools/python/examples $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment