Commit a80e7c67 authored by George Beckstein's avatar George Beckstein Committed by David Brown
Browse files

Enable no signature verification configuration for Mbed-OS.



This commit introduces changes to allow the Mbed-OS port to disable use of signature verification. Previously this was not possible even though it is a valid mcuboot configuration.

Signed-off-by: default avatarGeorge Beckstein <george.beckstein@gmail.com>
parent 66f02e30
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -30,8 +30,6 @@ extern unsigned int ecdsa_pub_key_len;
#define HAVE_KEYS
extern const unsigned char ed25519_pub_key[];
extern unsigned int ed25519_pub_key_len;
#else
#error "No public key available for given signing algorithm."
#endif

/*
+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#define SIGNATURE_TYPE_RSA      0
#define SIGNATURE_TYPE_EC256    1
#define SIGNATURE_TYPE_ED25519  2
#define SIGNATURE_TYPE_NONE     3

/*
 * Signature algorithm
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@
            "help": "The algorithm used for digital signing.",
            "macro_name": "MCUBOOT_SIGNATURE_ALGORITHM",
            "required": true,
            "accepted_values": ["SIGNATURE_TYPE_RSA", "SIGNATURE_TYPE_EC256", "SIGNATURE_TYPE_ED25519"],
            "accepted_values": ["SIGNATURE_TYPE_RSA", "SIGNATURE_TYPE_EC256", "SIGNATURE_TYPE_ED25519", "SIGNATURE_TYPE_NONE"],
            "value": "SIGNATURE_TYPE_RSA"
        },
        "rsa-signature-length": {