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.0
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.0.tar.gz | 481.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optigatrust-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 972.1 kB
Release files / optigatrust-1.3.0.tar.gz
| Download URL | optigatrust-1.3.0.tar.gz |
|---|---|
| Size | 481.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
06eba60b3df0f96784c4b383c70a5e81536f17d933d727a4e0c215b303fa934d
|
|
BLAKE2b-256 checksum How to use checksums |
654aa0e29b20d716c6d4a4009d1112090470e4401058efa2d17fe4f1927ea187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / optigatrust-1.3.0-py3-none-any.whl
| Download URL | optigatrust-1.3.0-py3-none-any.whl |
|---|---|
| Size | 490.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69eeffc269425e00ec6da86dbcd76af444896fc178580470d7584c4f2d3f54f1
|
|
BLAKE2b-256 checksum How to use checksums |
4911904151fd8014ee5cb9825365712d977f103fe0203f493d0ab966963847b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|