Skip to content

Commit

Permalink
Tools: force pymonocypher version
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed May 28, 2024
1 parent 76e5a9b commit 3a7671d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Tools/ardupilotwaf/chibios.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def sign_firmware(image, private_keyfile):
try:
import monocypher
except ImportError:
Logs.error("Please install monocypher with: python3 -m pip install pymonocypher")
Logs.error("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
return None
try:
key = open(private_keyfile, 'r').read()
Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/build_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ for t in $CI_BUILD_TARGET; do
echo "Building signed firmwares"
sudo apt-get update
sudo apt-get install -y python3-dev
python3 -m pip install pymonocypher
python3 -m pip install pymonocypher==3.1.3.2
./Tools/scripts/signing/generate_keys.py testkey
$waf configure --board CubeOrange-ODID --signed-fw --private-key testkey_private_key.dat
$waf copter
Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/signing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ firmware doesn't match any of the public keys in the bootloader.
To generate a public/private key pair, run the following command:

```
python3 -m pip install pymonocypher
python3 -m pip install pymonocypher==3.1.3.2
Tools/scripts/signing/generate_keys.py NAME
```

Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/signing/generate_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
try:
import monocypher
except ImportError:
print("Please install monocypher with: python3 -m pip install pymonocypher")
print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
sys.exit(1)


Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/signing/make_secure_bl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
try:
import monocypher
except ImportError:
print("Please install monocypher with: python3 -m pip install pymonocypher")
print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
sys.exit(1)

# get command line arguments
Expand Down
2 changes: 1 addition & 1 deletion Tools/scripts/signing/make_secure_fw.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
try:
import monocypher
except ImportError:
print("Please install monocypher with: python3 -m pip install pymonocypher")
print("Please install monocypher with: python3 -m pip install pymonocypher==3.1.3.2")
sys.exit(1)

key_len = 32
Expand Down

0 comments on commit 3a7671d

Please sign in to comment.