Implementation of ChaCha20-Poly1305 on Self-Organization Data Framing for Enhancing IoT Communication
Abstract
Our study presents the implementation of a lightweight Authenticated Encryption with Associated Data (AEAD) and a self-organizing data framing in Internet of Things (IoT) communication. The frame structure on the node side offers extra fields for managing data bytes, calculating the Cyclic Redundancy Check (CRC), and detecting the frame start and stop. Between an STM32 and an ESP32, the data framing is applied via the Universal Asynchronous Receiver-Transmitter (UART) protocol. High performance and security are achieved by implementing the ChaCha20-Poly1305 AEAD on the frame structure for nodecloud communication. Through logging, the frame structure is successfully identified on ESP32 and the IoT cloud. ChaCha20-Poly1305 algorithms are fully evaluated in cycle counting on the node-cloud communication using the System for Unified Performance Evaluation Related to Cryptographic Operations and Primitives (SUPERCOP) framework. The data framing gives the MCUs’ communications a foundation for error detection and synchronization failure prevention. Lastly, the IoT system’s node-cloud communications are encrypted and authenticated via the ChaCha20-Poly1305 process.
Published
2024-12-28
Section
Regular articles
An author's submission implies that the manuscript has not been published previously, and is not currently submitted for publication elsewhere. Submission also implies that the Corresponding Author has consent of all authors (the Authors). Upon acceptance for publication transfer of copyright will be made to the Publisher of REV-JEC, who guarantees that full content of the published article is freely distributed on the Journal's website. The copyright transfer gives the Publisher of REV-JEC full authority to resolve any complaints of misuse or abuse (such as infringement or plagiarism) of the published article. The Authors have the freedom to redistribute and reuse the published article in any medium or format for any purpose, provided the original published article is properly cited. An article submission implies author agreement with this policy.