From 0f80296340e59a2152d56cf81313274d468193e4 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Wed, 21 Oct 2020 11:52:44 +0300 Subject: [PATCH] Modify cryptotools.py - Append signature in the end of the signee - Add parameters for output file and rd certificate - Add a default test key Signed-off-by: Jukka Laitinen --- Tools/cryptotools.py | 151 +++++++++++++++++++++++-------------------- Tools/test_keys.json | 1 + 2 files changed, 81 insertions(+), 71 deletions(-) create mode 100644 Tools/test_keys.json diff --git a/Tools/cryptotools.py b/Tools/cryptotools.py index 0605e265bd..be6a90cec0 100755 --- a/Tools/cryptotools.py +++ b/Tools/cryptotools.py @@ -2,7 +2,6 @@ import nacl.encoding import nacl.signing -import nacl.encoding import nacl.hash import struct import binascii @@ -12,81 +11,54 @@ import argparse from pathlib import Path import sys - -# Definitins for the meta data heder of the signed application -meta_data ={'appp_size':0, - 'app_hash':0, - } - -META_DATA_STRUCT = "