-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit is extracted from: Nitrokey/pynitrokey#519 I’ve further reduced the included code so that we can get rid of even more dependencies: We only need crcmod, cryptography and libusbsio. We now also pass strict mypy checks on all imported modules (except for the libusbsio imports). Co-authored-by: Sosthène Guédon <sosthene@nitrokey.com>
- Loading branch information
1 parent
29af982
commit 2bfdc7e
Showing
56 changed files
with
11,295 additions
and
1,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[flake8] | ||
# E203,E701 suggested by black, see: | ||
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8 | ||
# E221 for alignment in mboot code | ||
# E501 (line length) disabled as this is handled by black which takes better care of edge cases | ||
extend-ignore = E203,E501,E701 | ||
extend-ignore = E203,E221,E501,E701 | ||
max-complexity = 18 | ||
extend-exclude = src/nitrokey/trussed/_bootloader/nrf52_upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# LPC55 Bootloader Firmware Upload Module | ||
|
||
Anything inside this directory is originally extracted from: https://github.com/nxp-mcuxpresso/spsdk/tree/master. | ||
In detail anything that is needed to upload a signed firmware image to a Nitrokey 3 xN with an LPC55 MCU. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: UTF-8 -*- | ||
# | ||
# Copyright 2019-2024 NXP | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
version = "2.1.0" | ||
|
||
__author__ = "NXP" | ||
__license__ = "BSD-3-Clause" | ||
__version__ = version | ||
__release__ = "beta" |
7 changes: 7 additions & 0 deletions
7
src/nitrokey/trussed/_bootloader/lpc55_upload/crypto/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: UTF-8 -*- | ||
# | ||
# Copyright 2020-2024 NXP | ||
# | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
"""Module for crypto operations (certificate and key management).""" |
Oops, something went wrong.