optigatrust Python library
A ctypes based Python wrapper to work with the OPTIGA™ Trust security solutions.
Features
optigatrust is a library which helps to manage the OPTIGA Trust family of security solutions Find more about these products here:
Required Hardware
- Any of the following
- OPTIGA™ Trust M/Charge Evaluation Kit
- OPTIGA™ Trust Personalisation Board (SP005405452), or any FTDI USB-HID/I2C Converter board
- Raspberry Pi + Shield2Go RPi Adapter
- OPTIGA™ Trust X/M/Charge sample or a Security Shield2Go
Installation
$ pip install optigatrust
Examples
import optigatrust as optiga
from optigatrust import objects, crypto
import json
chip = optiga.Chip()
chip.current_limit = 15
ecc_key_0 = objects.ECCKey(0xe0f0)
print('Pretty metadata: {0}'.format(json.dumps(ecc_key_0.meta, indent=4)))
public_key, private_key = crypto.generate_pair(ecc_key_0, curve='secp256r1', export=True)
print('Pulic Key = {0}, Privat key = {1}'.format(public_key, private_key))
License
optigatrust is licensed under the terms of the MIT license. See the LICENSE file for the exact license text.
Metadata
Release files for optigatrust 1.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| optigatrust-1.3.8.tar.gz | 608.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optigatrust-1.3.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / optigatrust-1.3.8.tar.gz
| Download URL | optigatrust-1.3.8.tar.gz |
|---|---|
| Size | 608.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fe2bdd7cd36be4513c4c16844bd99fae1f936c711a435e68f61f50fb019f7e9c
|
|
BLAKE2b-256 checksum How to use checksums |
58506962d9824dcd3e5883f6ee2ee55b41ac5d793d8158a2b06892aa1340c577
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|
Release files / optigatrust-1.3.8-py3-none-any.whl
| Download URL | optigatrust-1.3.8-py3-none-any.whl |
|---|---|
| Size | 610.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b01efa2a8fafa0c39994cea1c8fe98abf29224d915b9054e53e6e2f73259163c
|
|
BLAKE2b-256 checksum How to use checksums |
015b230d9eb4232dedd0e7053b545554e322526edb90990e8a75acd198f2040f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.2
|