# optigatrust Python library
A ctypes based Python wrapper to work with the OPTIGA™ Trust security solutions.
[![PyPI](https://img.shields.io/pypi/v/optigatrust.svg)](https://pypi.org/project/optigatrust/)
## Features
*optigatrust* is a library which helps to manage the OPTIGA Trust family of security solutions
Find more about these products here:
* [OPTIGA™ Trust M](https://github.com/Infineon/optiga-trust-m)
* [OPTIGA™ Trust Charge](https://github.com/Infineon/optiga-trust-charge)
* [OPTIGA™ Trust X](https://github.com/Infineon/optiga-trust-x)
[**Documentation**](https://infineon.github.io/python-optiga-trust)
## Required Hardware
* Any of the following
- OPTIGA™ Trust [M](https://www.infineon.com/cms/en/product/evaluation-boards/optiga-trust-m-eval-kit/)/[Charge](https://www.infineon.com/cms/en/product/evaluation-boards/optiga-trust-ch-eval-kit/) Evaluation Kit
- OPTIGA™ Trust Personalisation Board (SP005405452), or any FTDI USB-HID/I2C Converter board
- Raspberry Pi + [Shield2Go RPi Adapter](https://www.infineon.com/cms/en/product/evaluation-boards/s2go-adapter-rasp-pi-iot/)
* OPTIGA™ Trust X/M/Charge sample or a Security Shield2Go
## Installation
```bash
$ pip install optigatrust
```
### Examples
```python
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](LICENSE) file for the exact license text.
Raw data
{
"_id": null,
"home_page": "https://github.com/infineon/python-optiga-trust",
"name": "optigatrust",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "",
"keywords": "ECDHE ECDSA RSA ECC X509 NISTP256 NIST384 OPTIGA TRUST TRUSTX TRUSTM",
"author": "Infineon Technologies AG",
"author_email": "DSSTechnicalSupport@infineon.com",
"download_url": "https://files.pythonhosted.org/packages/58/50/6962d9824dcd3e5883f6ee2ee55b41ac5d793d8158a2b06892aa1340c577/optigatrust-1.3.8.tar.gz",
"platform": null,
"description": "# optigatrust Python library\n\nA ctypes based Python wrapper to work with the OPTIGA\u2122 Trust security solutions.\n\n[![PyPI](https://img.shields.io/pypi/v/optigatrust.svg)](https://pypi.org/project/optigatrust/)\n\n## Features\n\n*optigatrust* is a library which helps to manage the OPTIGA Trust family of security solutions\nFind more about these products here:\n* [OPTIGA\u2122 Trust M](https://github.com/Infineon/optiga-trust-m)\n* [OPTIGA\u2122 Trust Charge](https://github.com/Infineon/optiga-trust-charge)\n* [OPTIGA\u2122 Trust X](https://github.com/Infineon/optiga-trust-x)\n\n[**Documentation**](https://infineon.github.io/python-optiga-trust)\n \n## Required Hardware\n\n* Any of the following\n - OPTIGA\u2122 Trust [M](https://www.infineon.com/cms/en/product/evaluation-boards/optiga-trust-m-eval-kit/)/[Charge](https://www.infineon.com/cms/en/product/evaluation-boards/optiga-trust-ch-eval-kit/) Evaluation Kit\n - OPTIGA\u2122 Trust Personalisation Board (SP005405452), or any FTDI USB-HID/I2C Converter board\n - Raspberry Pi + [Shield2Go RPi Adapter](https://www.infineon.com/cms/en/product/evaluation-boards/s2go-adapter-rasp-pi-iot/)\n* OPTIGA\u2122 Trust X/M/Charge sample or a Security Shield2Go\n\n## Installation\n\n```bash\n$ pip install optigatrust\n```\n\n### Examples\n\n```python\nimport optigatrust as optiga\nfrom optigatrust import objects, crypto\nimport json\n\nchip = optiga.Chip()\nchip.current_limit = 15\n\necc_key_0 = objects.ECCKey(0xe0f0) \n\nprint('Pretty metadata: {0}'.format(json.dumps(ecc_key_0.meta, indent=4)))\n\npublic_key, private_key = crypto.generate_pair(ecc_key_0, curve='secp256r1', export=True)\n\nprint('Pulic Key = {0}, Privat key = {1}'.format(public_key, private_key))\n\n```\n\n## License\n\n*optigatrust* is licensed under the terms of the MIT license. See the\n[LICENSE](LICENSE) file for the exact license text.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "The ctypes Python wrapper for the Infineon OPTIGA(TM) Trust family of security solutions",
"version": "1.3.8",
"project_urls": {
"Homepage": "https://github.com/infineon/python-optiga-trust"
},
"split_keywords": [
"ecdhe",
"ecdsa",
"rsa",
"ecc",
"x509",
"nistp256",
"nist384",
"optiga",
"trust",
"trustx",
"trustm"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "015b230d9eb4232dedd0e7053b545554e322526edb90990e8a75acd198f2040f",
"md5": "cb1039903b4b91f117870c56f69d9872",
"sha256": "b01efa2a8fafa0c39994cea1c8fe98abf29224d915b9054e53e6e2f73259163c"
},
"downloads": -1,
"filename": "optigatrust-1.3.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cb1039903b4b91f117870c56f69d9872",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 610329,
"upload_time": "2023-06-22T10:53:16",
"upload_time_iso_8601": "2023-06-22T10:53:16.249385Z",
"url": "https://files.pythonhosted.org/packages/01/5b/230d9eb4232dedd0e7053b545554e322526edb90990e8a75acd198f2040f/optigatrust-1.3.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "58506962d9824dcd3e5883f6ee2ee55b41ac5d793d8158a2b06892aa1340c577",
"md5": "6669ee6264184b204783eefec444d632",
"sha256": "fe2bdd7cd36be4513c4c16844bd99fae1f936c711a435e68f61f50fb019f7e9c"
},
"downloads": -1,
"filename": "optigatrust-1.3.8.tar.gz",
"has_sig": false,
"md5_digest": "6669ee6264184b204783eefec444d632",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 607978,
"upload_time": "2023-06-22T10:53:19",
"upload_time_iso_8601": "2023-06-22T10:53:19.379296Z",
"url": "https://files.pythonhosted.org/packages/58/50/6962d9824dcd3e5883f6ee2ee55b41ac5d793d8158a2b06892aa1340c577/optigatrust-1.3.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-22 10:53:19",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "infineon",
"github_project": "python-optiga-trust",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "optigatrust"
}