1
0
mirror of https://github.com/taigrr/arduinolibs synced 2025-01-18 04:33:12 -08:00

Define an identifier for storing Ethernet MAC addresses in the key ring

This commit is contained in:
Rhys Weatherley 2018-06-21 19:48:13 +10:00
parent 6a71e60d85
commit 4db3d6c8f0
2 changed files with 13 additions and 0 deletions

View File

@ -196,6 +196,17 @@ KeyRingClass KeyRing;
* primary remote device that this device will be communicating with.
*/
/**
* \var KeyRingClass::EthernetMACAddress
* \brief Identifier for storing a generated MAC address into the other
* data section of the key ring.
*
* When using the Arduino Ethernet library, the MAC address needs to be
* provided in the sketch. This identifier provides a convenient place
* to store the MAC address if you want to generate it randomly instead
* of specifying a fixed value.
*/
/** @cond mantis8 */
// 32-bit version of Mantis-8, extracted from the Skinny-C repository:

View File

@ -65,6 +65,8 @@ public:
static const uint16_t LocalEd25519Default = 0x4501; // 'E', 0x01
static const uint16_t RemoteEd25519Default = 0x6501; // 'e', 0x01
static const uint16_t EthernetMACAddress = 0x4D01; // 'M', 0x01
private:
static const size_t ChunkSize = 36;