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
optigatrust-1.2.4.tar.gz
(405.2 kB
view hashes)
Built Distribution
optigatrust-1.2.4-py3-none-any.whl
(413.2 kB
view hashes)
Close
Hashes for optigatrust-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be18dd2636fcd5fbaa3133edbde86c43e0e2da543d95481b6152f4a96ee50c0f |
|
MD5 | 6d516434c34a10eb481bf3a69b00d71b |
|
BLAKE2b-256 | 837eb9b8e87a00bd3d23f98add7cc0bb3fb37e246e53ef4fc4aa4edc59c9b391 |