<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "https://jats.nlm.nih.gov/nlm-dtd/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="3.0" xml:lang="en">
<front>
<journal-meta>
<journal-id journal-id-type="publisher">ISPRS-Archives</journal-id>
<journal-title-group>
<journal-title>The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences</journal-title>
<abbrev-journal-title abbrev-type="publisher">ISPRS-Archives</abbrev-journal-title>
<abbrev-journal-title abbrev-type="nlm-ta">Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci.</abbrev-journal-title>
</journal-title-group>
<issn pub-type="epub">2194-9034</issn>
<publisher><publisher-name>Copernicus Publications</publisher-name>
<publisher-loc>Göttingen, Germany</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.5194/isprs-archives-XLVIII-4-W16-2025-105-2025</article-id>
<title-group>
<article-title>On-sensor Stream Cipher Encryption for Protecting Smart City Sensor Data directly on Resource-Constrained IoT-Sensors</article-title>
</title-group>
<contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Seedorf</surname>
<given-names>Jan</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Rawal</surname>
<given-names>Darshana</given-names>
<ext-link>https://orcid.org/0000-0002-7803-1355</ext-link>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Hamann</surname>
<given-names>Matthias</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Seid</surname>
<given-names>Sebastian</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Schneider</surname>
<given-names>Kai</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Anh</surname>
<given-names>Vu Danh</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Haag</surname>
<given-names>Maximilian</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Milla</surname>
<given-names>Fabian</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Altun</surname>
<given-names>Yunus Emre</given-names>
</name>
<xref ref-type="aff" rid="aff1">
<sup>1</sup>
</xref>
</contrib>
</contrib-group><aff id="aff1">
<label>1</label>
<addr-line>HFT Stuttgart, Schellingstraße 24, 70174 Stuttgart, Germany</addr-line>
</aff>
<pub-date pub-type="epub">
<day>19</day>
<month>09</month>
<year>2025</year>
</pub-date>
<volume>XLVIII-4/W16-2025</volume>
<fpage>105</fpage>
<lpage>112</lpage>
<permissions>
<copyright-statement>Copyright: &#x000a9; 2025 Jan Seedorf et al.</copyright-statement>
<copyright-year>2025</copyright-year>
<license license-type="open-access">
<license-p>This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this licence, visit <ext-link ext-link-type="uri"  xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link></license-p>
</license>
</permissions>
<self-uri xlink:href="https://isprs-archives.copernicus.org/articles/XLVIII-4-W16-2025/105/2025/isprs-archives-XLVIII-4-W16-2025-105-2025.html">This article is available from https://isprs-archives.copernicus.org/articles/XLVIII-4-W16-2025/105/2025/isprs-archives-XLVIII-4-W16-2025-105-2025.html</self-uri>
<self-uri xlink:href="https://isprs-archives.copernicus.org/articles/XLVIII-4-W16-2025/105/2025/isprs-archives-XLVIII-4-W16-2025-105-2025.pdf">The full text article is available as a PDF file from https://isprs-archives.copernicus.org/articles/XLVIII-4-W16-2025/105/2025/isprs-archives-XLVIII-4-W16-2025-105-2025.pdf</self-uri>
<abstract>
<p>This paper presents a comparative analysis of the DRACO stream cipher implemented in both C++ and Rust across three microcontroller platforms: ESP32, ESP8266, and Raspberry Pi Pico. DRACO, a lightweight cipher designed for constrained environments, was evaluated in terms of performance, memory efficiency, and initialization behavior. To ensure reliable and repeatable results, a standardized benchmarking framework was developed, including automated testing, key/IV configuration variants, and statistical analysis of execution times. In addition to synthetic benchmarks, the evaluation incorporated representative smart city data sets, simulating real-world sensor inputs to reflect practical encryption workloads. Performance metrics&amp;mdash;including keystream generation, encryption, and algorithm initialization&amp;mdash;were collected via serial output and processed using Python and visualization tools.&lt;/p&gt;
&lt;p&gt;Results show that both implementations perform consistently across varying keystream lengths, with Rust demonstrating faster execution at very short lengths, and C++ slightly outperforming Rust at longer lengths. The study also discusses the implementation challenges and trade-offs between security, compiler support, and platform compatibility. Findings highlight that both languages are suitable for embedded cryptographic applications, with Rust offering stronger language safety guarantees and C++ providing broader microcontroller support. This work further emphasizes the importance of lightweight encryption in smart city sensor networks, where securing real-time, sensitive data is critical to privacy, reliability, and urban infrastructure resilience.</p>
</abstract>
<counts><page-count count="8"/></counts>
</article-meta>
</front>
<body/>
<back>
</back>
</article>