|
| 1 | +/* |
| 2 | + This file is part of ArduinoIoTCloud. |
| 3 | +
|
| 4 | + Copyright 2019 ARDUINO SA (http://www.arduino.cc/) |
| 5 | +
|
| 6 | + This software is released under the GNU General Public License version 3, |
| 7 | + which covers the main part of arduino-cli. |
| 8 | + The terms of this license can be found at: |
| 9 | + https://www.gnu.org/licenses/gpl-3.0.en.html |
| 10 | +
|
| 11 | + You can be released from the requirements of the above licenses by purchasing |
| 12 | + a commercial license. Buying such a license is mandatory if you want to modify or |
| 13 | + otherwise use the software for commercial activities involving the Arduino |
| 14 | + software without disclosing the source code of your own applications. To purchase |
| 15 | + a commercial license, send an email to license@arduino.cc. |
| 16 | +*/ |
| 17 | + |
| 18 | +#ifndef _ECCX08_TLS_CONFIG_H_ |
| 19 | +#define _ECCX08_TLS_CONFIG_H_ |
| 20 | + |
| 21 | +const byte DEFAULT_ECCX08_TLS_CONFIG[128] = { |
| 22 | + // Read only - start |
| 23 | + // SN[0:3] |
| 24 | + 0x01, 0x23, 0x00, 0x00, |
| 25 | + // RevNum |
| 26 | + 0x00, 0x00, 0x50, 0x00, |
| 27 | + // SN[4:8] |
| 28 | + 0x00, 0x00, 0x00, 0x00, 0x00, |
| 29 | + // Reserved |
| 30 | + 0xC0, |
| 31 | + // I2C_Enable |
| 32 | + 0x71, |
| 33 | + // Reserved |
| 34 | + 0x00, |
| 35 | + // Read only - end |
| 36 | + // I2C_Address |
| 37 | + 0xC0, |
| 38 | + // Reserved |
| 39 | + 0x00, |
| 40 | + // OTPmode |
| 41 | + 0x55, |
| 42 | + // ChipMode |
| 43 | + 0x00, |
| 44 | + // SlotConfig |
| 45 | + 0x83, 0x20, // External Signatures | Internal Signatures | IsSecret | Write Configure Never, Default: 0x83, 0x20, |
| 46 | + 0x87, 0x20, // External Signatures | Internal Signatures | ECDH | IsSecret | Write Configure Never, Default: 0x87, 0x20, |
| 47 | + 0x87, 0x20, // External Signatures | Internal Signatures | ECDH | IsSecret | Write Configure Never, Default: 0x8F, 0x20, |
| 48 | + 0x87, 0x2F, // External Signatures | Internal Signatures | ECDH | IsSecret | WriteKey all slots | Write Configure Never, Default: 0xC4, 0x8F, |
| 49 | + 0x87, 0x2F, // External Signatures | Internal Signatures | ECDH | IsSecret | WriteKey all slots | Write Configure Never, Default: 0x8F, 0x8F, |
| 50 | + 0x8F, 0x8F, |
| 51 | + 0x9F, 0x8F, |
| 52 | + 0xAF, 0x8F, |
| 53 | + 0x00, 0x00, |
| 54 | + 0x00, 0x00, |
| 55 | + 0x00, 0x00, |
| 56 | + 0x00, 0x00, |
| 57 | + 0x00, 0x00, |
| 58 | + 0x00, 0x00, |
| 59 | + 0x00, 0x00, |
| 60 | + 0xAF, 0x8F, |
| 61 | + // Counter[0] |
| 62 | + 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, |
| 63 | + // Counter[1] |
| 64 | + 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, |
| 65 | + // LastKeyUse |
| 66 | + 0xFF, 0xFF, 0xFF, 0xFF, |
| 67 | + 0xFF, 0xFF, 0xFF, 0xFF, |
| 68 | + 0xFF, 0xFF, 0xFF, 0xFF, |
| 69 | + 0xFF, 0xFF, 0xFF, 0xFF, |
| 70 | + // Write via commands only - start |
| 71 | + // UserExtra |
| 72 | + 0x00, |
| 73 | + // Selector |
| 74 | + 0x00, |
| 75 | + // LockValue |
| 76 | + 0x55, |
| 77 | + // LockConfig |
| 78 | + 0x55, |
| 79 | + // SlotLocked |
| 80 | + 0xFF, 0xFF, |
| 81 | + // Write via commands only - end |
| 82 | + // RFU |
| 83 | + 0x00, 0x00, |
| 84 | + // X509format |
| 85 | + 0x00, 0x00, 0x00, 0x00, |
| 86 | + // KeyConfig |
| 87 | + 0x33, 0x00, // Private | Public | P256 NIST ECC key, Default: 0x33, 0x00, |
| 88 | + 0x33, 0x00, // Private | Public | P256 NIST ECC key, Default: 0x33, 0x00, |
| 89 | + 0x33, 0x00, // Private | Public | P256 NIST ECC key, Default: 0x33, 0x00, |
| 90 | + 0x33, 0x00, // Private | Public | P256 NIST ECC key, Default: 0x1C, 0x00, |
| 91 | + 0x33, 0x00, // Private | Public | P256 NIST ECC key, Default: 0x1C, 0x00, |
| 92 | + 0x1C, 0x00, |
| 93 | + 0x1C, 0x00, |
| 94 | + 0x1C, 0x00, |
| 95 | + 0x3C, 0x00, |
| 96 | + 0x3C, 0x00, |
| 97 | + 0x3C, 0x00, |
| 98 | + 0x3C, 0x00, |
| 99 | + 0x3C, 0x00, |
| 100 | + 0x3C, 0x00, |
| 101 | + 0x3C, 0x00, |
| 102 | + 0x1C, 0x00 |
| 103 | +}; |
| 104 | + |
| 105 | +#endif /* _ECCX08_TLS_CONFIG_H_ */ |
0 commit comments