|
22 | 22 | #include <mcuboot_config/mcuboot_config.h>
|
23 | 23 |
|
24 | 24 | #if defined(MCUBOOT_SIGN_RSA)
|
| 25 | +#if MCUBOOT_SIGN_RSA_LEN == 2048 |
25 | 26 | #define HAVE_KEYS
|
26 | 27 | const unsigned char root_pub_der[] = {
|
27 | 28 | 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xd1, 0x06, 0x08,
|
@@ -49,6 +50,62 @@ const unsigned char root_pub_der[] = {
|
49 | 50 | 0xc9, 0x02, 0x03, 0x01, 0x00, 0x01
|
50 | 51 | };
|
51 | 52 | const unsigned int root_pub_der_len = 270;
|
| 53 | +#elif MCUBOOT_SIGN_RSA_LEN == 3072 |
| 54 | +#define HAVE_KEYS |
| 55 | +const unsigned char root_pub_der[] = { |
| 56 | + 0x30, 0x82, 0x01, 0x8a, 0x02, 0x82, 0x01, 0x81, |
| 57 | + 0x00, 0xb4, 0x2c, 0x0e, 0x98, 0x58, 0x10, 0xa4, |
| 58 | + 0xa7, 0x58, 0x99, 0x7c, 0x01, 0xdd, 0x08, 0x2a, |
| 59 | + 0x28, 0x34, 0x33, 0xf8, 0x96, 0x1a, 0x34, 0x20, |
| 60 | + 0x5d, 0x45, 0xc8, 0x71, 0x26, 0x25, 0xe5, 0xd2, |
| 61 | + 0x96, 0xea, 0x7b, 0xb1, 0x15, 0xaa, 0xa6, 0x8a, |
| 62 | + 0x63, 0x22, 0x8b, 0x2d, 0x4e, 0x81, 0x73, 0xbf, |
| 63 | + 0x6e, 0x15, 0x68, 0x8c, 0x1a, 0xf4, 0xef, 0x2a, |
| 64 | + 0x8f, 0x8c, 0x22, 0x9e, 0x71, 0x57, 0x4b, 0xde, |
| 65 | + 0x0f, 0x7e, 0x72, 0xd3, 0x7a, 0xb8, 0xa7, 0x1d, |
| 66 | + 0x44, 0xad, 0x87, 0x00, 0x83, 0x5c, 0xfd, 0x73, |
| 67 | + 0x05, 0x72, 0x46, 0x3f, 0x8b, 0xf9, 0x10, 0x00, |
| 68 | + 0xd8, 0x6e, 0xcc, 0x85, 0xed, 0xf9, 0x49, 0xdb, |
| 69 | + 0x78, 0x36, 0x80, 0x49, 0x38, 0x76, 0xdd, 0x5f, |
| 70 | + 0x54, 0x04, 0xda, 0x8c, 0x34, 0xa7, 0x2b, 0x13, |
| 71 | + 0x25, 0x6f, 0xd1, 0x15, 0x4f, 0xad, 0xc2, 0xe1, |
| 72 | + 0xa5, 0xd2, 0x4e, 0x57, 0x0c, 0x7e, 0x9c, 0x9b, |
| 73 | + 0xba, 0x4e, 0x68, 0xb2, 0xe0, 0x25, 0x02, 0xaa, |
| 74 | + 0x00, 0xd3, 0xb4, 0xcc, 0x2f, 0x78, 0xe5, 0xbe, |
| 75 | + 0x47, 0x67, 0x1f, 0xc8, 0x6e, 0x22, 0x6c, 0x5e, |
| 76 | + 0x61, 0xb6, 0x9a, 0xcd, 0xe5, 0xa8, 0xba, 0x7a, |
| 77 | + 0x80, 0x13, 0x1b, 0x17, 0x2e, 0x96, 0xed, 0xcf, |
| 78 | + 0xb3, 0x9b, 0xe4, 0x1c, 0xe8, 0xad, 0xa7, 0xf6, |
| 79 | + 0x3a, 0x51, 0x66, 0x5e, 0x99, 0x8e, 0x87, 0xee, |
| 80 | + 0x60, 0x25, 0xf8, 0x8d, 0xbe, 0xce, 0xa4, 0xa8, |
| 81 | + 0xca, 0x93, 0x6c, 0xd7, 0xbf, 0xd4, 0x73, 0x33, |
| 82 | + 0x8d, 0x44, 0x85, 0xcc, 0x73, 0x30, 0x08, 0x9c, |
| 83 | + 0x4d, 0xb2, 0xaa, 0x5a, 0x6c, 0x6f, 0x7b, 0xab, |
| 84 | + 0xb7, 0xb3, 0x7c, 0xc3, 0xfb, 0xe7, 0xca, 0xc4, |
| 85 | + 0xf8, 0x9a, 0x6f, 0xcb, 0xbb, 0x5b, 0x82, 0xe7, |
| 86 | + 0x7a, 0xe8, 0x19, 0xfd, 0x2f, 0x11, 0x22, 0xfb, |
| 87 | + 0x7f, 0x76, 0x8c, 0x6b, 0x94, 0xa4, 0x09, 0x4f, |
| 88 | + 0xa5, 0x6a, 0x77, 0x51, 0xeb, 0xa7, 0x7e, 0xda, |
| 89 | + 0x87, 0x06, 0xee, 0xdc, 0xbe, 0xd1, 0xea, 0x1a, |
| 90 | + 0x40, 0x1d, 0x1b, 0xff, 0x1a, 0xb1, 0x51, 0x7c, |
| 91 | + 0x12, 0xb0, 0xf3, 0xf6, 0x83, 0x01, 0x9c, 0xe7, |
| 92 | + 0x0c, 0x99, 0xbf, 0xac, 0x68, 0x58, 0x72, 0xa4, |
| 93 | + 0xb0, 0x59, 0x85, 0xee, 0x85, 0xac, 0x2a, 0x22, |
| 94 | + 0xf4, 0xcf, 0x15, 0x08, 0x80, 0x1f, 0x0d, 0xd0, |
| 95 | + 0x1e, 0xa0, 0xa0, 0x94, 0xc8, 0xf7, 0xfa, 0x65, |
| 96 | + 0xdd, 0x52, 0xe8, 0x96, 0x37, 0x23, 0x30, 0x57, |
| 97 | + 0x36, 0xe6, 0x9d, 0xf4, 0x0c, 0x4a, 0x05, 0x75, |
| 98 | + 0x1f, 0xad, 0x01, 0xca, 0xb7, 0x6d, 0x8c, 0x43, |
| 99 | + 0x74, 0x06, 0x0a, 0x81, 0xf3, 0x01, 0x62, 0xff, |
| 100 | + 0xf7, 0xf5, 0x5f, 0xaf, 0xe7, 0x2b, 0x0e, 0xf8, |
| 101 | + 0x81, 0xb5, 0x65, 0xdd, 0x01, 0xd9, 0x9f, 0x07, |
| 102 | + 0x17, 0x8a, 0x18, 0xcf, 0x23, 0x6e, 0x88, 0x65, |
| 103 | + 0x91, 0xb5, 0x7b, 0xd3, 0xb0, 0x2d, 0xaf, 0x93, |
| 104 | + 0x66, 0x63, 0x74, 0xac, 0x5a, 0xe6, 0x73, 0xde, |
| 105 | + 0x3b, 0x02, 0x03, 0x01, 0x00, 0x01, |
| 106 | +}; |
| 107 | +const unsigned int root_pub_der_len = 398; |
| 108 | +#endif |
52 | 109 | #elif defined(MCUBOOT_SIGN_EC256)
|
53 | 110 | #define HAVE_KEYS
|
54 | 111 | const unsigned char root_pub_der[] = {
|
|
0 commit comments