Tools: force pymonocypher version

This commit is contained in:
Andrew Tridgell 2024-05-29 09:59:13 +10:00
parent 3f715cd6cc
commit 360f84d3a8
6 changed files with 6 additions and 6 deletions

View File

@ -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()

View File

@ -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

View File

@ -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
```

View File

@ -9,7 +9,7 @@ import base64
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)

View File

@ -10,7 +10,7 @@ import base64
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

View File

@ -10,7 +10,7 @@ import json, base64, zlib
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