The ctypes Python wrapper for the Infineon OPTIGA(TM) Trust family of security solutions
Project description
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.
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.0.3.tar.gz
(34.5 kB
view hashes)
Built Distribution
optigatrust-1.0.3-py3-none-any.whl
(404.8 kB
view hashes)
Close
Hashes for optigatrust-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b8cbd10939e9cf284702ff2e89fc69adae5bf5d941d0bbe0876fff120ac9c1 |
|
MD5 | 71c7dc20ef885a135ba8177cecaaac36 |
|
BLAKE2b-256 | 4af944c99e300fe33fff5b24196239468fe42ad87617cffaef5edecf8387784a |