From 23e63807085b13a9b221c3374d05099559583011 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 9 Feb 2022 18:10:09 +0100 Subject: Add signature verification to list retrieval - Move test data to src - Verify signatures by calling the Verify method - Add a customizable parameter to force prehashed signatures Signed-off-by: jwijenbergh --- src/test_data/server_list.json.forged_keyid.minisig | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/test_data/server_list.json.forged_keyid.minisig (limited to 'src/test_data/server_list.json.forged_keyid.minisig') diff --git a/src/test_data/server_list.json.forged_keyid.minisig b/src/test_data/server_list.json.forged_keyid.minisig new file mode 100644 index 0000000..efa349d --- /dev/null +++ b/src/test_data/server_list.json.forged_keyid.minisig @@ -0,0 +1,4 @@ +untrusted comment: this signature was created with wrong_secret.key but has key ID changed to that of public.key +RURMm6vfaPgH35aarz3NMq4gbv6JvzOnjG003bDe6USu+HT/JzuxHjQcQGE/KBPdyCF6BDDwwFu+NVmi5jotYCJHWOEqSBU70gE= +trusted comment: timestamp:10 file:server_list.json hashed +3BWYJamM3t6ImuXQufTeO81UMZNyM7TujMu7SCmR+oapsSEBpmkazGOgzlJYR53HP9K9zrEA+4lV8gFFngooBA== -- cgit v1.2.3