DeepCover Embedded Security in IoT: Public-key Secured Data Paths
Dependencies: MaximInterface
The MAXREFDES155# is an internet-of-things (IoT) embedded-security reference design, built to authenticate and control a sensing node using elliptic-curve-based public-key cryptography with control and notification from a web server.
The hardware includes an ARM® mbed™ shield and attached sensor endpoint. The shield contains a DS2476 DeepCover® ECDSA/SHA-2 coprocessor, Wifi communication, LCD push-button controls, and status LEDs. The sensor endpoint is attached to the shield using a 300mm cable and contains a DS28C36 DeepCover ECDSA/SHA-2 authenticator, IR-thermal sensor, and aiming laser for the IR sensor. The MAXREFDES155# is equipped with a standard Arduino® form-factor shield connector for immediate testing using an mbed board such as the MAX32600MBED#. The combination of these two devices represent an IoT device. Communication to the web server is accomplished with the shield Wifi circuitry. Communication from the shield to the attached sensor module is accomplished over I2C . The sensor module represents an IoT endpoint that generates small data with a requirement for message authenticity/integrity and secure on/off operational control.
The design is hierarchical with each mbed platform and shield communicating data from the sensor node to a web server that maintains a centralized log and dispatches notifications as necessary. The simplicity of this design enables rapid integration into any star-topology IoT network to provide security with the low overhead and cost provided by the ECDSA-P256 asymmetric-key and SHA-256 symmetric-key algorithms.
More information about the MAXREFDES155# is available on the Maxim Integrated website.
Diff: NormalOperationWindow.cpp
- Revision:
- 7:66c5dedc750b
- Parent:
- 6:0c9050b02876
- Child:
- 8:a0d75dff3c9b
--- a/NormalOperationWindow.cpp Mon Mar 06 18:02:09 2017 -0600 +++ b/NormalOperationWindow.cpp Thu Mar 09 11:38:33 2017 -0600 @@ -251,7 +251,8 @@ { if (windowManager() != NULL) { - windowManager()->push(new DisplayIdWindow(DisplayIdWindow::PopupMode)); + std::auto_ptr<Window> window(new DisplayIdWindow(DisplayIdWindow::PopupMode)); + windowManager()->push(window); } } @@ -261,13 +262,13 @@ validSignatureButton.setText(getValidSignatureButtonText(validSignature)); } -NormalOperationWindow::NormalOperationWindow(TCPSocket * socket, Graphic * parent) : Window(parent), - socket(socket), validSignature(true), lastSensorNodeState(Disconnected), - lastObjectTemp(0), lastAmbientTemp(0), +NormalOperationWindow::NormalOperationWindow(std::auto_ptr<TCPSocket> & socket, Graphic * parent) : + Window(parent), socket(socket) /* Move construct */, + validSignature(true), lastSensorNodeState(Disconnected), lastObjectTemp(0), lastAmbientTemp(0), validSignatureButton(getValidSignatureButtonText(validSignature), this), showWebIdButton("Show web ID", this) { - assert(socket != NULL); + assert(this->socket.get() != NULL); validSignatureButton.setClickedHandler(Button::EventHandler(this, &NormalOperationWindow::toggleValidSignature)); showWebIdButton.setClickedHandler(Button::EventHandler(this, &NormalOperationWindow::showWebId)); @@ -344,7 +345,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to read PublicKeyAX")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to read PublicKeyAX")); + windowManager()->push(window); } return WindowsChanged; } @@ -356,7 +358,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to read PublicKeyAY")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to read PublicKeyAY")); + windowManager()->push(window); } return WindowsChanged; } @@ -372,7 +375,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to read UserData14")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to read UserData14")); + windowManager()->push(window); } return WindowsChanged; } @@ -384,7 +388,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to read UserData15")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to read UserData15")); + windowManager()->push(window); } return WindowsChanged; } @@ -399,7 +404,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to sign data")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to sign data")); + windowManager()->push(window); } return WindowsChanged; } @@ -420,7 +426,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to read object temperature")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to read object temperature")); + windowManager()->push(window); } return WindowsChanged; } @@ -433,7 +440,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to sign data")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to sign data")); + windowManager()->push(window); } return WindowsChanged; } @@ -456,7 +464,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to read ambient temperature")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to read ambient temperature")); + windowManager()->push(window); } return WindowsChanged; } @@ -469,7 +478,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Failed to sign data")); + std::auto_ptr<Window> window(new ErrorWindow("Failed to sign data")); + windowManager()->push(window); } return WindowsChanged; } @@ -485,11 +495,9 @@ const unsigned int height = imageData.size() / (width / Bitmap::pixelsPerSegment); if (windowManager() != NULL) { - windowManager()->push( - new DisplayGraphicWindow( - new Image(Bitmap(width, height, &imageData[0], Bitmap::ScanLineFormat)) - ) - ); + std::auto_ptr<Graphic> image(new Image(Bitmap(width, height, &imageData[0], Bitmap::ScanLineFormat))); + std::auto_ptr<Window> window(new DisplayGraphicWindow(image)); + windowManager()->push(window); } } @@ -602,11 +610,12 @@ { const char message[] = "Received data is not authentic"; sendMessage(message); - Text * messageText = new Text(message); - messageText->setWordWrap(true); + std::auto_ptr<Graphic> messageText(new Text(message)); + static_cast<Text *>(messageText.get())->setWordWrap(true); if (windowManager() != NULL) { - windowManager()->push(new DisplayGraphicWindow(messageText)); + std::auto_ptr<Window> window(new DisplayGraphicWindow(messageText)); + windowManager()->push(window); } } return WindowsChanged; @@ -617,7 +626,8 @@ sendMessage(message); if (windowManager() != NULL) { - windowManager()->push(new ErrorWindow(message)); + std::auto_ptr<Window> window(new ErrorWindow(message)); + windowManager()->push(window); } } return WindowsChanged; @@ -694,7 +704,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Sensor node provision failed")); + std::auto_ptr<Window> window(new ErrorWindow("Sensor node provision failed")); + windowManager()->push(window); } return; } @@ -718,7 +729,8 @@ if (windowManager() != NULL) { windowManager()->pop(); - windowManager()->push(new ErrorWindow("Socket recieve failed")); + std::auto_ptr<Window> window(new ErrorWindow("Socket receive failed")); + windowManager()->push(window); } return; }