Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: [3.8, 3.9, '3.10', '3.11', "3.12", "3.13"]

runs-on: ${{ matrix.os }}
steps:
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ Available features:
- Generate SHE Memory update protocol messages (M1 M2 M3 M4 M5).
- Parse M1 M2 Memory update protocol messages in order to get the update information.

## Disclaimer

Vector's related specification specifies different layout of `flags` - it uses 5 flags instead of 6, described in AUTOSAR specs as this repo fully follows. Please adjust script accordingly then, I would be glad to some PR propositions if you have anything working. Enjoy!

## Prerequisites

With using Python 3.8, 3.9 or 3.10 install package to your environment.
With using Python greater than 3.8 install package to your environment.

```bash
pip install SecureHardwareExtension
Expand Down Expand Up @@ -81,7 +85,9 @@ update_protocol.update_info.new_key

## Sources

[Autosar specification](https://www.autosar.org/fileadmin/user_upload/standards/foundation/19-11/AUTOSAR_TR_SecureHardwareExtensions.pdf)
Accessed 26.07.2025.

[Autosar specification](https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_TR_SecureHardwareExtensions.pdf)

[NXP application note](https://www.nxp.com/docs/en/application-note/AN4234.pdf)

Expand Down
2 changes: 1 addition & 1 deletion secure_hardware_extension/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __get__(self, owner_self, owner_cls):
class SheConstants:
"""
Class holds constants used within SHE.
https://www.autosar.org/fileadmin/user_upload/standards/foundation/19-11/AUTOSAR_TR_SecureHardwareExtensions.pdf
https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_TR_SecureHardwareExtensions.pdf
4.12 Constants used with SHE.

"""
Expand Down
2 changes: 1 addition & 1 deletion secure_hardware_extension/key_slots/autosar.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class AutosarKeySlots(KeySlots):
"""
Enum holds memory slot identification based on
`Specification of Secure Hardware Extensions, AUTOSAR FO R19-11`.
https://www.autosar.org/fileadmin/user_upload/standards/foundation/19-11/AUTOSAR_TR_SecureHardwareExtensions.pdf
https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_TR_SecureHardwareExtensions.pdf

"""

Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="SecureHardwareExtension",
version="1.0.0",
version="1.0.1",
install_requires=[
"pycryptodome",
],
Expand All @@ -22,6 +22,9 @@
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_memory_update.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Test vectors found in
https://www.autosar.org/fileadmin/user_upload/standards/foundation/19-11/AUTOSAR_TR_SecureHardwareExtensions.pdf
https://www.autosar.org/fileadmin/standards/R22-11/FO/AUTOSAR_TR_SecureHardwareExtensions.pdf

"""

Expand Down
Loading