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: try:
import monocypher import monocypher
except ImportError: 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 return None
try: try:
key = open(private_keyfile, 'r').read() key = open(private_keyfile, 'r').read()

View File

@ -366,7 +366,7 @@ for t in $CI_BUILD_TARGET; do
echo "Building signed firmwares" echo "Building signed firmwares"
sudo apt-get update sudo apt-get update
sudo apt-get install -y python3-dev 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 ./Tools/scripts/signing/generate_keys.py testkey
$waf configure --board CubeOrange-ODID --signed-fw --private-key testkey_private_key.dat $waf configure --board CubeOrange-ODID --signed-fw --private-key testkey_private_key.dat
$waf copter $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: 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 Tools/scripts/signing/generate_keys.py NAME
``` ```

View File

@ -9,7 +9,7 @@ import base64
try: try:
import monocypher import monocypher
except ImportError: 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) sys.exit(1)

View File

@ -10,7 +10,7 @@ import base64
try: try:
import monocypher import monocypher
except ImportError: 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) sys.exit(1)
# get command line arguments # get command line arguments

View File

@ -10,7 +10,7 @@ import json, base64, zlib
try: try:
import monocypher import monocypher
except ImportError: 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) sys.exit(1)
key_len = 32 key_len = 32