The ctypes Python wrapper for the Infineon OPTIGA(TM) Trust family of security solutions
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file optigatrust-1.3.6.tar.gz.
File metadata
- Download URL: optigatrust-1.3.6.tar.gz
- Upload date:
- Size: 483.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae967158d33d5f84fb7f0bf3afe42a30d6107fadca75c6dc29a800faabd3b1c
|
|
| MD5 |
7aa444d7fd3de338b3118a32d4c4f54b
|
|
| BLAKE2b-256 |
aecf9abaf9e4026582d03e1b342da318e0f9574279ee2b879ac719bef2b181dd
|
File details
Details for the file optigatrust-1.3.6-py3-none-any.whl.
File metadata
- Download URL: optigatrust-1.3.6-py3-none-any.whl
- Upload date:
- Size: 493.2 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2b557b359fccab7fcea6d0e29f53003b9a8a8e10abecc319738300466cca7b7
|
|
| MD5 |
8cfc78a9fec562c8d92238e408c63fde
|
|
| BLAKE2b-256 |
3bbcac4dbf811208d5a82d3a274798cc15cc808761c3415c8dc47a195a49fe19
|