optigatrust
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 M1/M3/Charge Evaluation Kit. See :doc:
Provisioning mode <prov_mode>for more details. - OPTIGA™ Trust Personalisation Board, or any FTDI USB-HID/I2C Converter board
- Raspberry Pi + Shield2Go RPi Adapter_
- OPTIGA™ Trust M1/M3/Charge Evaluation Kit. See :doc:
- OPTIGA™ Trust X/M 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.0.3
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.0.3.tar.gz | 34.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optigatrust-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 439.4 kB
Release files / optigatrust-1.0.3.tar.gz
| Download URL | optigatrust-1.0.3.tar.gz |
|---|---|
| Size | 34.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cda77aa78a72eb854502956f9de7a1937318e44402b89df6f4b0b68281e82c74
|
|
BLAKE2b-256 checksum How to use checksums |
d3b86b62ff7a7cd923da3495f1904e77e71c06b1ced602fee365eaeb066e302a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.1
|
Release files / optigatrust-1.0.3-py3-none-any.whl
| Download URL | optigatrust-1.0.3-py3-none-any.whl |
|---|---|
| Size | 404.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8b8cbd10939e9cf284702ff2e89fc69adae5bf5d941d0bbe0876fff120ac9c1
|
|
BLAKE2b-256 checksum How to use checksums |
4af944c99e300fe33fff5b24196239468fe42ad87617cffaef5edecf8387784a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.1
|