2. Architecture of the Secure Data Processing and Transmission Framework for Avs
The proposed SLEVA-AV framework follows an edge-centric IoT architecture. In this model, the AV acts as a secure computational edge node. The vehicle performs real-time sensing, preprocessing, encryption, and integrity verification locally. The architecture is designed to meet the strict latency, energy, and security requirements of safety-critical vehicular environments (
Figure 1). A heterogeneous perception stack is used in the vehicle. It includes LiDAR, RGB cameras, RADAR, GPS, IMU, and ultrasonic sensors [
22,
23,
24]. These sensors continuously generate multi-modal data streams. Such data must be protected before storage or transmission [
25]. The aggregated raw sensory data can be expressed as
Here, N represents the number of sensing modalities. Raw vehicular data usually contains noise and sampling inconsistencies. Heterogeneous sensor sampling also causes temporal skew. Therefore, an edge preprocessing operator
is applied first. This produces the normalized dataset
. Here,
performs Kalman filtering, normalization, and timestamp alignment [
15]. This improves statistical consistency. It also prepares the data for lightweight cryptographic processing (Algorithm 1).
The proposed framework uses an edge-assisted Hash-based Message Authentication Code (HMAC)-based KDF (HKDF) to generate secure session keys, as shown in
Figure 2. A master key
is stored in the vehicle. Context parameters include nonce N, timestamp t, and edge node identity
. These ensure dynamic and context-aware key generation [
26]. In the extract phase, a pseudo-random key is computed as
. In the expand phase, the session key is derived iteratively as T(0) = ∅ and
The final key is
This key is split into
for PRESENT, SPECK, and LEA. The total key length is 336 bits. HMAC is defined as
. The scheme produces context-bound and non-reusable keys. It has low computational overhead [
27].
| Algorithm 1: Secure lightweight encryption and verification algorithm for autonomous vehicles (SLEVA-AV)—encryption and verification. |
Input: Sensor data streams: D_raw = {LIDAR, RADAR, GPS, IMU, Camera, Ultrasonic} Master Key: K_M Edge Node ID: ID_edge Nonce: N Timestamp: t Output: Encrypted data: D_final Integrity hash: H Begin 1. // Sensor Data Acquisition: D_raw ← {d_i}, for i = 1 to N 2. // Data Size Estimation: For each sensor i: S_i ← N_i × P_i End For S_total ← Σ S_i 3. // Preprocessing (Filtering, Normalization, and Synchronization): D_pre ← P(D_raw) // Compression: S_LIDAR ← 0.5 × S_LIDAR; S_Camera ← 0.7 × S_Camera 4. // Session Key Generation (Scalable) K_session ← KDF(K_M || N || t || ID_edge) 5. // Multi-Stage Encryption // Stage 1: PRESENT: D1 ← PRESENT_Encrypt(D_pre, K_p); // Stage 2: SPECK: D2 ← SPECK_Encrypt(D1, K_s); // Stage 3: LEA: D_final ← LEA_Encrypt(D2, K_l); 6. // Integrity Verification: H ← SHA256(D_final); 7. // Transmission: Send (D_final, H); 8. // Receiver-Side Verification H_star ← SHA256(D_final); If H_star == H then Accept data Else Reject data (Tampering detected) End If 9. // Performance Evaluation: Throughput ← S_total / T_enc; Latency ← T_enc; Energy ← Power × T_enc; Key_Overhead ← T_KDF / T_total; Hash_Overhead ← (32 / S_total) × 100 End |
The selected configurations are lightweight and practical. PRESENT uses a 64-bit block size and an 80-bit key. SPECK uses a 128-bit block size with a 128-bit key (Speck128). LEA uses a 128-bit block size and a 128-bit key. SHA-256 produces a 256-bit hash output. These parameters provide a balance between security and efficiency. To ensure confidentiality under resource constraints, a cascaded lightweight encryption scheme is used. The first security layer applies the PRESENT block cipher. The encrypted output is given by , where represents the secret encryption key. PRESENT provides efficient substitution–permutation diffusion. It is suitable for embedded vehicular electronic control units (ECUs). However, stronger adversarial resistance is required. Therefore, a hybrid second encryption stage is introduced. The PRESENT output is processed in parallel by SPECK and LEA ciphers. This produces and , where and represent independent session keys.
SPECK provides fast Addition–Rotation–XOR (ARX)-based diffusion with very low latency. LEA provides strong word-oriented confusion. It is efficient for software implementations [
17]. The final ciphertext is obtained through secure concatenation,
. This hybrid construction enhances structural diversity and resistance to cryptanalysis. To guarantee data integrity and authenticity, the SHA-256 hash function is applied. The integrity tag is generated as
. During verification, the receiver recomputes the hash value. The condition
is checked. If a mismatch occurs, tampering or transmission corruption is detected. It also benefits from an expanded effective key space. The composite key space is expressed as ℚ
final =
. Under typical lightweight configurations, this exceeds
. This significantly increases resistance to brute-force attacks.
The diffusion strength of the cascaded design can be measured using the avalanche effect:
This value approaches the ideal value of 0.5 due to combined Substitution-Permutation Network (SPN)–ARX transformations. The overall differential probability can be approximated as
. This indicates multiplicative suppression of exploitable cryptographic characteristics. SHA-256 ensures data integrity and tamper detection. It provides collision resistance of approximately
and second-preimage resistance of approximately
. Therefore, the probability of undetected data manipulation in vehicular IoT channels becomes extremely small [
18].
This mechanism also provisions fast re-keying during edge handovers, avoiding costly key renegotiation. The re-keying overhead
is maintained significantly lower than encryption latency, i.e.,
. The system scalability under vehicular mobility can be expressed as
where
. Here,
represents vehicle speed and
denotes edge coverage radius, indicating that the overall overhead remains bounded in practical deployments. From a system security perspective, the framework mitigates several vehicular threats. Hash verification detects man-in-the-middle attacks. Timestamp-based preprocessing reduces replay attacks. The overall computational complexity of the encryption pipeline remains linear:
. This ensures real-time feasibility for embedded edge platforms. The complete processing pipeline can be expressed as
. This pipeline integrates sensing, preprocessing, encryption, and integrity verification within the vehicular edge node [
28].
The scalability of the system can be quantified in terms of the maximum number of vehicles supported within an edge coverage region. Let denote the processing capacity of an edge node (in operations per second) and denote the average computational requirement per vehicle. The maximum number of vehicles supported is given by . Under high traffic conditions, the system load can be expressed as where is the number of active vehicles. When → 1, the system approaches saturation, and latency increases. However, due to lightweight encryption and KDF-based re-keying, the computational complexity remains linear O(n), ensuring graceful degradation rather than abrupt performance loss. This makes the proposed framework scalable under dense vehicular scenarios. From a practical deployment perspective, the master key is provisioned during the vehicle registration phase through a trusted authority (TA), such as a vehicle manufacturer or certified infrastructure provider. This provisioning can be securely implemented using hardware security modules (HSMs) or trusted platform modules (TPMs) embedded within the vehicle. During operation, edge nodes are authenticated through a trust hierarchy managed by the TA. The dissemination of keys does not require continuous transmission of ; instead, only lightweight parameters such as nonce, timestamp, and edge identity are exchanged. This reduces communication overhead and prevents key exposure. The trust assumption in this model relies on secure initialization and tamper-resistant storage within the vehicle, while edge nodes are assumed to be semi-trusted and authenticated entities.
3. Integrated Simulation and Security Algorithm Implementation
The implementation is executed on an Intel i5 system with 816 GB RAM running the Ubuntu Operating System (OS). Python 3.13 is used for orchestration and analysis. Vehicular data streams are generated using the CARLA Simulator. The simulation time step is fixed at Δt = 0.1 s. Sensor sampling rates are maintained in the range . Input data sizes are varied as n ∈ [64,100] kB to evaluate scalability.
As shown in
Figure 3, the simulation environment provides multi-modal data, including vehicle telemetry, spatial mapping, and sensor fusion outputs. This ensures realistic and heterogeneous input conditions. The diversity of sensor modalities improves the robustness of preprocessing and directly impacts the encryption workload. High-density, mixed-traffic scenarios resembling Chennai conditions are considered, as illustrated in
Figure 3. The road network is generated from
OpenStreetMap data and converted into OpenDRIVE format for CARLA integration. Each vehicle is equipped with LiDAR, RGB cameras, RADAR, GPS, IMU, and ultrasonic sensors, enabling heterogeneous multi-modal data generationRaw sensor outputs are treated as vehicular IoT data and processed at the vehicle edge using Python scripts. Data preprocessing is carried out using
NumPy,
Pandas, and
SciPy libraries, including noise filtering, normalization, and timestamp synchronization to ensure consistency across sensor modalities. The security pipeline is implemented using the CrypTool cryptographic platform [
29]. PRESENT operates with
and
. SPECK and LEA operate with
and
. SHA-256 produces a 256-bit output. Session keys are derived using contextual inputs
. The derived key length is L = 336 bits. It is partitioned into
and
. As illustrated in
Figure 4, the multi-stage encryption pipeline transforms
. Intermediate outputs are explicitly observed, confirming the correctness of each stage. The parallel execution of SPECK and LEA reduces processing delay and enhances diffusion.
Execution time is measured using
time.perf_counter(). The encryption latency is defined as
. The observed range is
∈ [0.29,0.79] s. Throughput is computed as
, with an average of ≈100 MB/s. The results show near-linear scaling with respect to n.
Figure 3 contributes to validating realistic data generation, while
Figure 4 demonstrates the correctness and efficiency of the encryption pipeline. The combined impact confirms that both data diversity and pipeline structure influence performance. The implementation shows stable execution, low latency, and consistent throughput.
4. Results and Discussion
This section presents the experimental validation of the proposed SLEVA-AV framework using a CARLA-based autonomous vehicle simulation integrated with CrypTool 2 for cryptographic analysis. The evaluation focuses on both performance efficiency and security robustness under realistic vehicular IoT conditions. Multi-modal sensor data generated from the simulation are processed at the edge using the proposed pipeline, and results are obtained over large-scale samples to ensure statistical reliability.
4.1. Data Reduction and Encryption Efficiency from Preprocessing to Integrity Assurance
The dataset evaluates the effect of preprocessing and encryption on data size across 20 test cases. The analysis focuses on reducing data size while maintaining security. Four parameters are considered in the evaluation. The first parameter is the total original data, which represents the raw sensor data before any processing. The second parameter is preprocessed data, which indicates the data size after structural refinement and removal of redundant information. The third parameter is the initial encrypted data, which represents the data size after the first encryption stage. The fourth parameter is the final encrypted data, which shows the data size after applying the complete encryption pipeline. As illustrated in
Figure 5, preprocessing consistently reduces data size across all test cases. The reduction is more noticeable in cases with larger datasets. For example, in Test Case 722, the original data size is 117.84 kB. After preprocessing, it decreases to 99.31 kB. This corresponds to a reduction of approximately 15.7%.
The encryption process introduces only a very small overhead. This can be observed when comparing the preprocessed data size with the encrypted data size. For instance, in Test Case 509, the preprocessed data size is 99.37 kB. After encryption, the size increases slightly to 99.40 kB. This shows that the encryption algorithm is computationally efficient and introduces negligible data expansion. Across all test cases, the difference between the initial encrypted data and the final encrypted data remains very small. This indicates stable and predictable encryption behavior. Test cases with larger original datasets, such as Test Case 134 (96.41 kB) and Test Case 698 (114.48 kB), show noticeable reductions during preprocessing. At the same time, the encryption overhead remains minimal.
Similarly, test cases with smaller datasets behave differently. Examples include Test Case 21 (39.16 kB) and Test Case 1000 (62.37 kB). In these cases, preprocessing results in smaller reductions. This is expected because smaller datasets generally contain less redundant information. Data compression reduces storage requirements and transmission delays. This is particularly important for secure communication systems. The encryption process provides strong security while maintaining minimal data size inflation. Therefore, system performance is not affected.
4.2. Evaluation of the Key Management Scheme
The evaluation is conducted using 10,000 simulated vehicular communication instances generated within CARLA under varying mobility conditions. The performance is analyzed using latency, computational cost, communication overhead, and storage overhead (
Table 1). The results show that the key generation latency lies in the range of 0.10–0.50 ms, which is negligible compared to the overall system latency of 0.039–0.794 s. This confirms that
, and the overhead introduced by re-keying remains minimal, even under frequent vehicular handovers.
To validate the effectiveness of the proposed approach, a comparison is performed with real-world operational data from conventional key management systems. The observed verification time ranges from 99 s to 169 s, while key retrieval and return times range from 10–20 s and 2.35–4.14 min, respectively. These delays arise due to manual handling, repeated authentication, and communication overhead in traditional systems. In contrast, the proposed CARLA-based implementation eliminates manual key handling and replaces it with automated KDF-based re-keying. The computational cost is significantly reduced due to lightweight operations. The energy consumption is observed in the range of 0.0196–0.0589 J, which is lower than conventional approaches. The communication overhead is minimal, as only nonce, timestamp, and edge identity are transmitted, resulting in an overhead of 48–80 bytes. The storage overhead is approximately 42 bytes, as only session keys and minimal metadata are maintained. The results demonstrate that the proposed key management scheme achieves substantial improvement in efficiency and scalability. While conventional systems exhibit delays in seconds and minutes, the proposed approach achieves key generation in milliseconds. This represents a significant reduction in overhead. The scalability analysis confirms that the re-keying cost remains negligible under high mobility conditions.
4.3. Data Integrity Using 256-Bit Cryptographic Hashes
Table 2 summarizes the performance of the SHA-256-based integrity verification mechanism evaluated over 10,000 simulated vehicular data samples. The hash size remains fixed at 256 bits (32 bytes), independent of input size, ensuring predictable overhead. For each encrypted data block
, the integrity hash is computed as
. The average hash computation time is calculated as
, where n = 10,000. The observed value is 0.89 ms, with a minimum of 0.72 ms and a maximum of 1.05 ms, indicating stable execution. Detection accuracy is evaluated as
. In this study,
=
, resulting in 100% accuracy, confirming reliable tamper detection.
The communication overhead introduced by hashing is computed as . For example, for a 25 KB data block, ≈ 0.125%, which matches the observed average of 0.125%, with a range of 0.016% to 0.32%. The impact on throughput is evaluated by comparing system performance with and without hashing, expressed as ΔT = × 100%, which remains below 1%, indicating negligible degradation. Overall, the results confirm that SHA-256 provides robust integrity verification with minimal computational and communication overhead, making it suitable for real-time AV systems.
4.4. Performance Analysis of Data Encryption Schemes
The performance of the encryption system was analyzed using 10 randomly selected test cases from a dataset of 10,000 samples. The results are presented in
Table 3. Several performance metrics were evaluated. These include total original data size, final encrypted data size, throughput, latency, energy consumption, encryption speed, and encryption time. The total original data size varies between 39.1648 kB (Test Case 21) and 117.8369 kB (Test Case 722). The corresponding preprocessed data sizes are slightly smaller, as they remove redundant information and perform normalization. The initial encrypted data size remains almost equal to the preprocessed data size. This shows that the encryption algorithm introduces minimal overhead at this stage. The final encrypted data size shows a small increase. This increase is usually limited to a few kilobytes. It mainly results from encryption metadata and padding operations. Across all 20 test cases, the system maintains a consistent throughput of 100 KB/s. This indicates that the system can process the entire dataset efficiently within the specified time. The consistent throughput also demonstrates good scalability. The encryption framework can, therefore, handle datasets of different sizes without performance degradation. This characteristic is important for applications such as IoT systems and real-time secure communication platforms. Latency represents the time delay between the start and completion of the encryption process. The results show that latency increases with data size. For smaller datasets, such as Test Case 21 (39.1648 kB), the latency is approximately 0.039 s. Larger datasets require slightly more processing time. However, the observed latency values remain within acceptable limits for real-time systems.
The energy consumption of the encryption process was also analyzed. Energy values range between 0.0196 J for smaller datasets and 0.0589 J for larger datasets. This increase is expected because larger datasets require more computational operations. Despite this increase, the overall energy consumption remains low. This indicates that the system is optimized for energy-efficient operation, which is important for battery-powered IoT devices. The encryption speed remains constant across all test cases. The measured value is 125 KB/s. This consistency demonstrates the ability of the system to process data efficiently regardless of dataset size. High encryption speed is particularly important for real-time encryption applications, where large volumes of data must be secured quickly. The encryption time represents the total time required to encrypt the dataset. The measured values range between 0.2906 s and 0.7945 s. Encryption time increases linearly with data size. This behavior confirms that the system scales efficiently for larger datasets. Even for the largest dataset, the encryption time remains suitable for real-time applications.
The radar (spider) chart illustrates the normalized performance characteristics of the proposed SLEVA-AV edge-centric lightweight encryption framework. The chart includes key operational metrics such as throughput, latency, energy consumption, encryption speed, and encryption time (
Figure 6). Each axis represents a specific performance indicator. The values are averaged across multiple test cases and normalized for visual comparison. The chart shows that the framework maintains high throughput and high encryption speed. At the same time, latency and energy consumption remain low. The balanced shape of the radar chart indicates that the system achieves a good trade-off between computational efficiency and security overhead. This confirms that the proposed multi-stage lightweight encryption design is suitable for real-time IoT-enabled AV environments.
4.5. Security Evaluation Under Multiple Attack Scenarios
The security of the framework is evaluated against multiple attack scenarios, including brute-force, differential, known-plaintext, replay, man-in-the-middle (MITM), and data tampering attacks, as shown in
Figure 7. The brute-force resistance is derived from the combined key space,
Assuming an attacker’s capability of
key trials per second, the expected time to exhaustively search the key space is
≈ 4.1
which confirms practical infeasibility. Differential cryptanalysis is mitigated through cascading of SPN and ARX structures. The overall differential probability is approximated as
. The experimental results show an avalanche effect of approximately 49.6–50.3%, indicating near-ideal diffusion. Replay attacks are prevented using a context-aware key derivation mechanism,
Any reuse of old parameters results in a key mismatch and rejection.
Similarly, MITM and tampering attacks are detected through hash verification. The probability of undetected tampering is bounded by the collision resistance of SHA-256,
. The experimental results obtained from CrypTool 2 simulations confirm that all attack attempts fail, and they are tabulated in
Table 4. The system achieves 100% detection accuracy for replay, MITM, and tampering attacks.
The average hash computation time is 0.89 ms, and the communication overhead is limited to 0.125%, indicating minimal impact on performance. Multi-stage encryption significantly increases cryptographic complexity, while KDF-based key management ensures scalability in dynamic vehicular environments. The SHA-256 integrity mechanism guarantees reliable tamper detection with negligible overhead. Therefore, the system is robust against practical attack scenarios and suitable for real-time IoT-enabled AV applications.
4.6. Comparative Analysis with Recent State-of-the-Art Methods
The proposed SLEVA-AV framework is compared with recent state-of-the-art studies, namely, He et al. (IoV security architecture) [
15], Boubaker et al. (lightweight cryptographic performance) [
5], and Rahmati et al. (energy-aware cryptographic frameworks) [
27] (
Table 5). The comparison considers key aspects such as security coverage, computational efficiency, energy consumption, key management overhead, scalability, and practical deployment constraints. To ensure a fair comparison, all performance metrics are evaluated under comparable conditions. The results for the proposed system are obtained through CARLA-based simulation and CrypTool implementation. The results for He et al., Boubaker et al., and Rahmati et al. are reported based on their published literature. It should be noted that some results, particularly for Boubaker et al., are obtained using hardware-optimized implementations, which may achieve significantly lower latency compared to software-based evaluation. Therefore, differences in experimental settings, including hardware platforms and dataset configurations, are explicitly acknowledged when interpreting the results.
From a security architecture perspective, He et al. provide a comprehensive multi-layer analysis of IoV threats across physical, network, application, and system layers. Their work highlights critical vulnerabilities, such as V2X interruption (>200 ms), false message injection, and data tampering, with mitigation strategies including blockchain authentication and reinforcement learning-based detection. However, their approach is primarily defensive and detection-oriented, focusing on system-level protection rather than lightweight real-time encryption. In contrast, the proposed SLEVA-AV framework introduces proactive data-level security using a multi-stage encryption pipeline combined with integrity verification. The overall security strength ensures strong resistance against brute-force attacks. The SHA-256 mechanism provides 100% tamper detection accuracy. Despite these advantages, the proposed framework does not explicitly incorporate cross-layer defense mechanisms, such as intrusion detection systems, blockchain-based authentication, or reinforcement learning-based anomaly detection, which are addressed in He et al. Therefore, while the proposed work strengthens data confidentiality and integrity, it offers limited coverage at the broader system-level.
From a computational performance perspective, Boubaker et al. report extremely low execution times in the nanosecond range (e.g., encryption ≈ 8.728 ns) using optimized hardware implementations of lightweight ciphers. These results demonstrate exceptional efficiency but are achieved under specialized hardware conditions and typically involve single-algorithm encryption. In contrast, the proposed framework employs a multi-stage encryption design (PRESENT → SPECK → LEA) to enhance cryptographic strength. This introduces additional computational overhead, with encryption time ranging from 0.2906 s to 0.7945 s. Although this is higher than hardware-optimized implementations, it remains acceptable for real-time vehicular applications. A limitation of the proposed approach is that it has not yet been fully optimized for dedicated hardware acceleration (e.g., Field-Programmable Gate Array (FPGA) or Application-Specific IC (ASIC)), which could further reduce latency and improve throughput.
From an energy and key management perspective, Rahmati et al. show that key exchange operations consume the highest energy (~0.82 mJ), followed by key generation (~0.45 mJ), due to computationally intensive public key mechanisms, such as Diffie–Hellman. In contrast, the proposed framework adopts a lightweight KDF-based key management scheme that eliminates the need for expensive key exchange procedures. The total energy consumption of the proposed system ranges from 0.0196 J to 0.0589 J, and the key generation overhead is negligible compared to encryption time. This supports real-time deployment in edge environments. However, a limitation is that the proposed scheme relies on pre-shared master keys and synchronized parameters, which may introduce challenges in large-scale heterogeneous deployments. Additionally, the framework does not yet consider PQC mechanisms, which are explored in Rahmati et al.
Overall, the comparative analysis shows that existing works focus on isolated aspects, such as system-level threat modeling [
5], ultra-fast hardware encryption [
16], or energy-aware cryptographic design [
14]. In contrast, the proposed SLEVA-AV framework provides a holistic and integrated solution, combining lightweight multi-stage encryption, efficient key management, and integrity verification within an edge-centric architecture. The framework achieves a balance between security, latency, and energy efficiency. However, limitations remain in terms of system-level defense integration, hardware acceleration, large-scale key distribution, and future-proof cryptographic resilience. These limitations provide directions for future work, including integration with intrusion detection systems, FPGA-based optimization, and adoption of post-quantum security mechanisms.
5. Conclusions
This paper presents SLEVA-AV, a secure and lightweight edge-centric framework for autonomous vehicle communication in IoT-enabled environments. The framework integrates preprocessing, multi-stage encryption, efficient key management, and integrity verification into a unified architecture. The use of KDF-based session key generation eliminates repeated handshake overhead and enables scalable operation under frequent vehicular handovers. The proposed encryption design enhances cryptographic strength. The proposed system is implemented using CARLA-based simulation and CrypTool 2-based validation. The experimental results demonstrate low latency, reduced energy consumption, and minimal communication overhead. Despite these advantages, certain limitations remain. The framework focuses primarily on data-level security and does not fully integrate system-level defense mechanisms, such as intrusion detection or blockchain-based authentication. The current implementation is software-oriented and requires further optimization for hardware platforms, such as an FPGA. In addition, large-scale deployment may require advanced key distribution strategies and synchronization mechanisms. The framework also does not address PQC threats, which are increasingly relevant for future secure communication systems.
Future work will focus on hardware-oriented optimization of the proposed framework. The multi-stage encryption pipeline will be mapped to FPGA and ASIC platforms to reduce latency and improve throughput. Pipeline parallelism and hardware-level optimization of PRESENT, SPECK, and LEA will be explored to achieve real-time performance under high vehicular loads. In addition, the integration of PQC primitives is planned to ensure long-term security against quantum adversaries. Lightweight lattice-based key exchange mechanisms, such as Kyber, can replace or complement the current KDF-based scheme. This will enhance resilience while maintaining computational efficiency in edge-constrained environments.