A ctypes based Python wrapper to work with the OPTIGA™ Trust security solutions.
optigatrust is a library which helps to manage the OPTIGA Trust family of security solutions Find more about these products here:
- 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
$ pip install optigatrust
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))
optigatrust is licensed under the terms of the MIT license. See the LICENSE file for the exact license text.