Cross-road section vehicle-road authentication method and system, quantum encryption platform and road side unit

By combining a quantum security service platform with blockchain smart contracts, rapid vehicle-to-infrastructure (V2I) authentication across road segments is achieved, reducing vehicle-side costs and switching latency. This solves the problem of vehicle security authentication in a quantum computing environment and meets the safety and latency requirements of autonomous driving.

CN123184928APending Publication Date: 2026-11-27浙江海康智联科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611405644.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing vehicle-road cooperative security authentication schemes suffer from high costs in deploying quantum hardware on the vehicle side when facing quantum computing attacks. At the same time, when vehicles cross road segments, they need to repeat identity authentication and key negotiation, resulting in excessively long switching latency, which makes it difficult to meet the low latency requirements of autonomous driving.

Method used

By generating post-quantum public-private key pairs and anonymous identity identifiers through the quantum cryptographic service platform, the vehicle's driving trajectory is predicted and quantum security group keys are pre-distributed. Combined with blockchain smart contracts, cross-road segment quantum security key pre-distribution and local caching are realized. Multi-factor weighted solution of driving probability is used for priority pre-distribution, reducing vehicle-side hardware requirements and optimizing key management.

Benefits of technology

Achieving end-to-end quantum attack resistance security without quantum hardware on the vehicle side reduces vehicle-side costs and lowers cross-road segment switching latency to less than 20ms, meeting the high mobility, low latency, and high reliability safety certification requirements of autonomous driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184928A_ABST
    Figure CN123184928A_ABST
Patent Text Reader

Abstract

The cross-road section vehicle-road authentication method and system, the quantum security platform and the road side unit belong to the vehicle networking communication technical field, solve how to reduce the vehicle cross-road section switching delay and the vehicle end cost problem; the present application obtains the vehicle position, speed and acceleration, predicts the vehicle driving track, and predicts the road side unit of the next road section according to the vehicle driving track, and triggers the blockchain fragment of the road side unit to carry out the pre-distribution of quantum security group key in advance; wherein, when there are multiple candidate road side units, the driving probability of each candidate road side unit is solved by multi-factor weighted solution, and the pre-distribution operation of different priority is executed according to the driving probability; the present application effectively solves the multi-direction uncertainty problem, avoids the resource waste caused by invalid pre-distribution to the low probability direction, improves the key pre-distribution accuracy and resource utilization efficiency, and effectively reduces the vehicle end cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of vehicle-to-everything (V2X) communication technology and relates to a cross-road segment vehicle-road rapid authentication method and system based on quantum-secure blockchain, a quantum secure service platform, and a roadside unit. Background Technology

[0002] With the rapid development of intelligent connected vehicles and autonomous driving technologies, vehicle-to-everything (V2X) communication has become a core technology for achieving efficient interaction between vehicles and road infrastructure. V2X systems rely on wireless communication between vehicles and roadside units (RSUs) for authentication, key negotiation, and data transmission. Their security directly impacts the reliability of autonomous driving systems and the safety of passengers' lives and property. However, traditional V2X authentication schemes are primarily based on classical public-key cryptography systems such as RSA and ECC, whose security depends on mathematical problems such as large integer factorization or discrete logarithms. However, with the rapid development of quantum computing technology, quantum algorithms such as Shor's algorithm can break these public-key cryptography systems in polynomial time, posing a serious threat to the security of existing vehicle-to-everything communication. Therefore, researching quantum-resistant V2X security authentication methods has significant theoretical and practical value.

[0003] Existing technologies, such as the invention patent with publication number CN118784205A, disclose a blockchain-based vehicle-road cooperative method. This method generates n anonymous credentials and vehicle keys on the blockchain through a quantum cryptographic platform. Each road segment has a designated Resource Unit (RSU) responsible for verifying vehicle identity via the blockchain and distributing the verification result and vehicle key to all RSUs within the segment. When a vehicle leaves, the RSU generates a segment key and deploys a smart contract. The vehicle, carrying the blockchain index and contract address, enters a new road segment, triggering the smart contract to obtain the key and complete cross-segment authentication. However, this method does not incorporate quantum-resistant cryptography, and vehicle-road communication still faces the risk of quantum-based cracking.

[0004] Existing technologies, such as the invention patent with publication number CN118784205A, disclose a method for advance distribution of group keys in a vehicle-road cooperative scenario. This method uses a cloud server to complete vehicle registration and initial authentication based on elliptic curve cryptography, recording the mapping relationship between anonymous identities and public keys on the blockchain. The current RSU (Roadside Unit) obtains the group key through quantum key negotiation with surrounding RSUs via an optical switch using the BB84 protocol. Then, an inadvertent transmission N-to-one model is used to ensure that vehicles can only obtain the group key of the next target RSU, achieving privacy-preserving advance distribution. After a new RSU enters, it queries the vehicle's public key through the blockchain and uses secure multi-party computation to continue advance distribution of the next batch of group keys. While this method uses the BB84 protocol for quantum key negotiation between RSUs, providing a certain degree of quantum security, its vehicle-side identity authentication still relies on traditional elliptic curve cryptography, making it vulnerable to quantum attacks. Furthermore, this method relies on an inadvertent transmission model to manage keys, resulting in a complex interaction process that requires cloud server involvement, increasing latency during rapid vehicle switching across road segments.

[0005] Existing technologies, such as the invention patent with publication number CN118118899A, disclose a method for pre-issuing group keys in a vehicle-road cooperative scenario. This method uses blockchain smart contracts to achieve rapid vehicle authentication at the roadside, thus decentralizing the KDC (Key Controller) function to the roadside. However, this method requires pre-loading quantum keys at the vehicle's factory, and the on-board terminal needs to be equipped with a quantum random number generator and a security medium, resulting in high hardware costs per vehicle. Furthermore, when group members are updated, the group key parameters need to be recalculated and multicast communication needs to be performed, and the computational and communication overhead increases significantly with the number of group members. At the same time, it does not solve the authentication latency problem when vehicles quickly switch between road segments.

[0006] In summary, existing quantum-resistant vehicle-to-infrastructure (V2I) security authentication schemes have not effectively addressed the high cost associated with deploying quantum hardware on the vehicle side. Furthermore, vehicles must repeatedly undergo complete identity authentication and key negotiation when crossing road segments, which fails to meet the low-latency requirements of autonomous driving. Therefore, there is an urgent need for a fast cross-road segment V2I authentication method to provide end-to-end quantum-resistant security for V2I communication, reduce switching latency and lower vehicle-side costs when switching roadside units. Summary of the Invention

[0007] The technical problem to be solved by this invention is how to reduce the latency of vehicle switching across road segments and the cost of vehicle-side equipment.

[0008] The present invention solves the above-mentioned technical problems through the following technical solutions: A fast vehicle-to-infrastructure (V2I) authentication method for cross-road segments, applied to a quantum cryptographic service platform, includes: The system receives the identity information submitted by the vehicle, generates a quantum public-private key pair and an anonymous identity identifier, writes the public key and anonymous identity identifier into the blockchain main chain, and sends the private key to the vehicle. The system acquires vehicle location, speed, and acceleration, predicts vehicle trajectory, and predicts the roadside units for the next road segment based on the vehicle trajectory. It also triggers the pre-distribution of quantum-secure group keys in the blockchain shard where the roadside unit is located. When there are multiple candidate roadside units, the system calculates the driving probability of each candidate roadside unit through multi-factor weighted calculation and performs pre-distribution operations with different priorities based on the driving probability.

[0009] Furthermore, the post-quantum public-private key pair is generated using the CRYSTALS-Dilithium signature algorithm; The anonymous identity identifier is specifically a random string decoupled from the real identity, represented as follows:

[0010] in, For anonymous identity identification, -256 is the SHA3 series of 256-bit cryptographic hash functions. Vehicle Identification Number (VIN) For random salt values, This serves as a registration timestamp; the binding relationship between real identity information and anonymous identity identifier is stored in encrypted form only by the Quantum Security Service platform; and the following content is written into the blockchain main chain in a structured format:

[0011] in, To record the structure, For post-quantum public keys, This is a set of vehicle access permissions. For the certificate expiration date, Bind the verification hash to the off-chain.

[0012] Furthermore, the driving probability is solved using the following logic:

[0013] in, , The number of candidate RSUs; The probability of a route planned by a navigation system. Statistical probability for historical driving records. For road topology probability, For real-time state probabilities , , , These are the weight coefficients for the corresponding terms, satisfying... ; when When a candidate roadside unit is selected, it is given high priority, and a full key pre-distribution is immediately performed to that candidate RSU. This is done when a vehicle enters the intersection recognition area. Triggered immediately; among which, High priority threshold; when When the corresponding candidate roadside unit is of medium priority, conditional pre-distribution is performed. When a vehicle is at a preset distance from the intersection, the resource availability is first assessed. If the resource availability is acceptable, key pre-distribution is then performed. Low priority threshold; when At that time, the corresponding candidate roadside unit is of medium priority, and on-demand pre-distribution is performed. Key distribution is only supplemented when the vehicle has a clear turning intention.

[0014] This invention also provides a method for rapid vehicle-road authentication across road sections, applied to roadside units, comprising: Receive authentication requests sent by vehicles and verify the vehicle's post-quantum signature by querying the public key through the blockchain; After successful verification, a quantum-secure group key is generated through negotiation with the adjacent roadside unit via a quantum key distribution protocol, and then distributed to the vehicle's local cache after hybrid encryption. Based on the pre-distribution operation triggered by the vehicle's driving trajectory, the quantum security group key for the next road segment is obtained from the adjacent blockchain shard, and then distributed to the vehicle's local cache after hybrid encryption. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by multi-factor weighting, and pre-distribution operations with different priorities are performed according to the driving probability. It receives lightweight switching requests sent when a vehicle enters a new road segment, performs on-chain verification by querying blockchain shards, and establishes encrypted communication with the vehicle.

[0015] Furthermore, the quantum key distribution protocol adopts the BB84 protocol, and adjacent roadside units negotiate quantum keys through an optical fiber quantum channel; The hybrid encryption specifically involves: first, using Kyber-768 to encapsulate the vehicle's quantum public key to obtain a session encapsulation key; then, using the session encapsulation key to encrypt the group key, its blockchain index, and validity period metadata, before sending it to the vehicle.

[0016] Furthermore, the process of obtaining the group key from adjacent blockchain shards employs a cross-chain atomic swap protocol based on hash locks: Local shard i, acting as the key requester, generates a hash lock. And submit a cross-shard key request to the cross-chain relay contract; Segment i+1 acts as the key provider to verify the request. After successful verification, it locks the target quantum security group key and generates a cross-segment ciphertext packet. Return it to local segment i; Local fragment i-reception After decryption, if the decryption verification is correct, the preimage is submitted to the relay contract to complete the atomic exchange. If the timeout occurs, it will automatically roll back.

[0017] Furthermore, the lightweight switching request includes a blockchain key index, a message authentication code, and a switching timestamp, but does not include identity information; wherein, the message authentication code is calculated by the HMAC-SHA3-256 algorithm using a pre-cached group key pair key index and timestamp.

[0018] This invention also provides a quantum cryptographic platform, comprising: The identity registration unit is used to receive the identity information submitted by the vehicle, generate a quantum public-private key pair and an anonymous identity identifier, write the public key and the anonymous identity identifier into the blockchain main chain, and send the private key to the vehicle. The cross-segment key pre-distribution unit is used to obtain vehicle position, speed and acceleration, predict vehicle trajectory, predict the roadside unit of the next segment based on the vehicle trajectory, and pre-distribute the quantum-secure group key in advance to the blockchain shard where the roadside unit is located. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by multi-factor weighting, and pre-distribution operations with different priorities are performed according to the driving probability.

[0019] The present invention also provides a roadside unit, comprising: The roadside authentication unit is used to receive authentication requests sent by vehicles, and to verify the vehicle's post-quantum signature by querying the public key through the blockchain. After successful verification, it negotiates with adjacent roadside units to generate a quantum-secure group key through a quantum key distribution protocol, and then distributes it to the vehicle's local cache after hybrid encryption. The cross-road segment key pre-distribution unit is used to obtain the quantum-secure group key of the next road segment from the adjacent blockchain shard based on the pre-distribution operation triggered by the vehicle's driving trajectory, and then distribute it to the vehicle's local cache after hybrid encryption. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by multi-factor weighting, and pre-distribution operations with different priorities are performed according to the driving probability. The cross-segment switching unit is used to receive lightweight switching requests sent by vehicles when they enter a new segment, verify them on-chain by querying blockchain shards, and establish encrypted communication with the vehicles.

[0020] This invention also provides a method for rapid vehicle-road authentication across road sections, comprising the following steps: The vehicle submits its identity information to the quantum cryptography platform. The quantum cryptography platform then generates a quantum public-private key pair and an anonymous identity identifier, and writes the public key and identity information into the blockchain main chain. When a vehicle enters the communication range of the current roadside unit, it initiates an authentication request and generates a quantum signature using its private key. After the current roadside unit verifies its identity by querying the public key through the blockchain, adjacent roadside units negotiate and generate a quantum-secure group key using a quantum key distribution protocol. This key is then encrypted and sent to the vehicle's local cache. Based on the vehicle's driving trajectory, the roadside units of the next road segment are predicted, and the pre-distribution of the quantum-safe group key of the next road segment is triggered in advance. The group key is obtained from the adjacent blockchain shard, encrypted, and then sent to the vehicle's local cache. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by weighting multiple factors, and pre-distribution operations with different priorities are performed according to the driving probability. When a vehicle enters a new road segment, it only sends a lightweight handover request to the new roadside unit. The new roadside unit verifies the handover on the blockchain, and the vehicle activates its local cache group key to establish encrypted communication.

[0021] This invention also provides a rapid vehicle-road authentication system for cross-road sections, comprising: The vehicle identity registration module is used for vehicles to submit identity information to the quantum cryptographic platform. The quantum cryptographic platform generates a quantum public-private key pair and an anonymous identity identifier, and writes the public key and identity information into the blockchain main chain. The current road segment authentication module is used when a vehicle enters the communication range of the current roadside unit and initiates an authentication request, using a private key to generate a quantum signature. After the current roadside unit verifies its identity by querying the public key through the blockchain, adjacent roadside units negotiate and generate a quantum-secure group key using a quantum key distribution protocol, which is then encrypted and sent to the vehicle's local cache. The cross-segment key pre-distribution module is used to predict the roadside units of the next segment based on the vehicle's driving trajectory, trigger the pre-distribution of the quantum-safe group key for the next segment in advance, obtain the group key from the adjacent blockchain shard, encrypt it, and then send it to the vehicle's local cache. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by weighting multiple factors, and pre-distribution operations with different priorities are performed according to the driving probability. The cross-road segment switching module is used to send a lightweight switching request to the new roadside unit only when a vehicle enters a new road segment. The new roadside unit verifies the switch on the blockchain, and the vehicle activates the local cache group key to establish encrypted communication.

[0022] An electronic device includes a memory and a processor, the memory being used to store a program that supports the processor in executing the above-described cross-road segment vehicle-road rapid authentication method, the processor being configured to execute the program stored in the memory.

[0023] A storage medium storing a computer program, which, when executed by a processor, performs the steps of the above-described cross-segment vehicle-road rapid authentication method.

[0024] The advantages of this invention are: (1) This invention proposes a fast cross-road segment vehicle-road authentication method based on quantum-safe blockchain. By establishing a cloud-edge-vehicle three-level lightweight collaborative architecture, the quantum key distribution capability is centrally deployed on the roadside edge node, and the vehicle terminal only retains the post-quantum cryptography lightweight verification function. Combined with blockchain smart contracts, cross-road segment quantum-safe key pre-distribution and local caching are realized, so that the vehicle does not need to re-authenticate and negotiate keys when switching across RSUs. This invention achieves full-process quantum attack resistance security under the condition that there is no quantum hardware on the vehicle, effectively reduces the cost of the vehicle, and reduces the cross-road segment switching latency to less than 20ms, meeting the high mobility, low latency and high reliability security authentication requirements of autonomous driving.

[0025] (2) This invention proposes a multi-directional probability weighted pre-distribution mechanism (MPPD) for complex multi-intersection scenarios such as intersections and roundabouts. It calculates the weighted probability of each candidate direction by integrating multiple factors, including navigation planning probability, historical driving statistics probability, road topology probability, and real-time traffic state probability, and performs hierarchical pre-distribution with different priorities based on probability thresholds. Furthermore, it incorporates an LRU-probabilistic hybrid cache eviction strategy to prioritize the retention of keys for high-probability directions when vehicle cache capacity is limited. This invention effectively solves the multi-directional uncertainty problem, avoids resource waste caused by invalid pre-distribution of low-probability directions, improves the accuracy of key pre-distribution and resource utilization efficiency, and effectively reduces vehicle-side costs.

[0026] (3) This invention constructs a QKD-PQC hybrid quantum-resistant cryptographic system. At the roadside backbone network level, adjacent RSUs negotiate and generate information-theoretically secure quantum key pairs via the BB84 QKD protocol. At the vehicle-to-infrastructure (V2I) access level, vehicles and RSUs achieve lightweight quantum-resistant authentication via NIST-standardized post-quantum signatures and key encapsulation. The two systems are mutually reinforcing; even if a quantum attack could break the PQC algorithm, the QKD link still ensures the security of the roadside backbone network. Even if the QKD device is limited in certain scenarios, PQC can still provide 128-bit post-quantum security. Furthermore, this invention achieves end-to-end quantum attack resistance without the need for quantum hardware at the vehicle end.

[0027] (4) This invention uses blockchain smart contracts to achieve proactive pre-distribution and local caching of quantum-safe keys across road segments. When a vehicle switches between RSUs, there is no need for re-authentication or re-execution of complete identity authentication and key negotiation. Only a lightweight request needs to be sent, and the new RSU can complete the verification by querying the local blockchain shards. This invention reduces the end-to-end switching latency to 7-15ms, which is far better than the 100-300ms of traditional PKI re-authentication schemes, and fully meets the stringent low-latency requirements of L4 / L5 autonomous driving.

[0028] (5) This invention utilizes blockchain smart contracts to achieve automated management of the entire key lifecycle. Each group key flows according to a state machine of "generating - activating - pre-distributing - in use - expired - revoked", and supports multi-dimensional automatic rotation triggering. When vehicle permissions are revoked, the smart contract broadcasts the revocation transaction after being quantum-signed by the administrator. All RSUs immediately clear the corresponding entries in their local cache after receiving the revocation event, effectively preventing unauthorized access after permissions expire or are revoked.

[0029] (6) In this invention, the main blockchain adopts a consortium blockchain sharding architecture, dividing the blockchain into multiple shards according to geographical regions. Each shard only maintains the key status and authentication records within its corresponding road segment cluster. Key and identity information are exchanged between different shards through a cross-chain atomic exchange protocol based on hash locks. This invention eliminates the risk of single point of failure. The RSU only needs to perform KV database queries on its local blockchain shard. The system scalability increases linearly with the number of RSU nodes, making it suitable for large-scale deployment in urban road networks. Attached Figure Description

[0030] Figure 1 This is an overall architecture diagram of the cross-road segment vehicle-road rapid authentication system according to Embodiment 1 of the present invention; Figure 2 This is a flowchart of vehicle identity registration according to Embodiment 1 of the present invention. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] The technical solution of the present invention will be further described below with reference to the accompanying drawings and specific embodiments: Example 1 like Figure 1 As shown, this embodiment provides a cross-road segment vehicle-road rapid authentication system based on quantum-safe blockchain, including a cloud layer, an edge layer, and a vehicle-side layer. The cloud layer and edge layer interact bidirectionally, as do the edge layer and vehicle-side layer. Specifically, each component is further described below: The cloud layer deploys a quantum security service platform and blockchain main chain nodes. The quantum security service platform is used for vehicle identity verification, anonymous identity generation, and post-quantum public-private key pair distribution. The blockchain main chain nodes are jointly maintained by traffic management departments, operators, and car manufacturers, storing the anonymous identities, public keys, permission information, and global key indexes of all vehicles, serving as the root trust source of the authentication system.

[0033] Furthermore, the blockchain in this embodiment adopts a consortium blockchain architecture and is sharded according to geographical regions. Each shard corresponds to a road segment cluster. Different shards can communicate with each other through a cross-chain protocol to achieve key and identity information exchange, thereby eliminating the risk of single point of failure while ensuring system scalability.

[0034] The edge layer includes multiple roadside units (RSUs); each roadside unit has a built-in quantum key distribution (QKD) module that uses the BB84 protocol to negotiate and generate a quantum-secure group key, and adjacent roadside units are connected through fiber optic quantum channels; each roadside unit also deploys blockchain sharding nodes for authentication record storage and key management of the corresponding road segment.

[0035] The vehicle-mounted layer includes an on-board unit (OBU). The on-board unit only integrates a CRYSTALS-Dilithium post-quantum cryptography module (PQC module) and a local key cache unit, so that the computing power and power consumption requirements of the vehicle-mounted layer in this embodiment are comparable to those of a traditional on-board unit, without the need for any additional quantum transmission or reception hardware.

[0036] Based on the aforementioned cloud-edge-vehicle three-tier architecture, this embodiment also establishes a QKD-PQC hybrid quantum-resistant cryptographic system: at the roadside backbone network level, adjacent RSUs ensure quantum security for cross-node communication through QKD; at the vehicle-to-infrastructure (V2I) access level, lightweight quantum-resistant authentication is achieved between vehicles and RSUs through post-quantum cryptography. Through this layered cryptographic design, this embodiment achieves end-to-end quantum attack resistance without requiring any quantum hardware on the vehicle side.

[0037] Furthermore, based on the overall structure of the above-mentioned authentication system, this embodiment provides a rapid vehicle-road authentication method across road segments, including the following steps: S1, Vehicle Registration: The vehicle submits its identity information to the Quantum Espionage Platform. The platform completes the registration application review and, once approved, generates a post-quantum public-private key pair and an anonymous identity identifier. The public key and identity information are then written into the blockchain main chain.

[0038] In this embodiment, the vehicle's identity information specifically refers to the Vehicle Identification Number (VIN), which is a unique identifier for a vehicle and consists of 17 alphanumeric characters. The post-quantum public-private key pair is generated using the NIST-standardized CRYSTALS-Dilithium signature algorithm. The anonymous identity identifier is specifically a random string decoupled from the real identity. The specific process of generating the post-quantum public-private key pair and the anonymous identity identifier in S1 is as follows: S1.1, using the NIST-standardized CRYSTALS-Dilithium signature algorithm to generate the quantum key pair: In this embodiment, the CRYSTALS-Dilithium algorithm is based on the Modular Error Learning Problem (MLWE) and the Modular Short Integer Solution Problem (MSIS) on a modular lattice. Its security, under the quantum computing model, is equivalent to the difficulty of the lattice problem. By mapping vector operations on the lattice to a polynomial ring, the public key, private key, and signature can all be represented using polynomials. This significantly reduces the key and signature size while maintaining security, making it suitable for the limited computing and storage resources on the vehicle side. Specifically, we define the prime number q = 8380417, the polynomial degree n = 256, and define the quotient ring as follows:

[0039] in, For model q Polynomial module The polynomial quotient ring formed; The representative coefficient is taken from q Integer ring A univariate polynomial ring, It is a polynomial indefinite element.

[0040] Dilithium-3 level security parameters were selected to provide 128-bit quantum security strength. These security parameters are shown in Table 1 below. Table 1. Dilithium-3 Level Security Parameters

[0041] In this embodiment, the essence of key generation is to construct a "system of linear equations with errors" as the public key, and use a short vector as the private key; a public matrix is ​​generated randomly. and a set of small coefficient private key vectors , And calculate the public key core quantity. Specifically, the logic of the key generation algorithm KeyGen() is as follows: S1.1.1, from a random seed Expand to generate a public matrix :

[0042] in, For seed-based A pseudo-random expansion function for extending the generated matrix; A 256-bit random seed, The number of rows in the public key matrix. Let be the dimension of the private key vector.

[0043] S1.1.2, Sampled private key vector, coefficients follow a uniform distribution. :

[0044] in, , These are polynomial quotients. The two sets of small-coefficient private key vectors on the top, The boundary parameters for the coefficients of the private key vector limit the range of coefficient values. .

[0045] S1.1.3, Calculate the core public key. :

[0046] Perform high-low bit decomposition on t: ,in This represents the high and low bit splitting bit parameters. , Let d represent the low-order and high-order components of vector t, respectively, where d = 13. .

[0047] S1.1.4, Generate key identifier hash Used for signature binding:

[0048] in, For cryptographic hash functions, Represents a 384-bit binary string space. This is a bit string concatenation operator.

[0049] S1.1.5, the output quantum key pair, represented as the public key and the private key respectively. and private key ;in The size is approximately 1952 bytes. The size is approximately 4000 bytes.

[0050] After the quantum cryptography platform generates a post-quantum public-private key pair, it will use the post-quantum private key. The post-quantum public key is transmitted to vehicle storage via a secure channel. Write it into the main blockchain chain.

[0051] S1.2, Generate anonymous identity identifier The anonymous identity identifier is specifically a random string decoupled from the real identity.

[0052] To protect the true identity of the vehicle, this embodiment anonymizes the original VIN code. Anonymous identity identifier AID is defined as follows, using a random salt value:

[0053] in, A 128-bit random salt value. Output a 256-bit anonymous identifier as the registration timestamp. This is a bit string concatenation operator. -256 is a 256-bit cryptographic hash function of the SHA3 series. In this embodiment, the binding relationship between the real identity information VIN and the anonymous identity identifier AID is stored in encrypted form only by the quantum cryptographic platform, and it is impossible for external parties to deduce VIN from AID.

[0054] Preferably, the upper bound of the collision probability of the anonymous identity identifier (AID) No more than , represented as It is used to meet collision safety requirements.

[0055] S1.3, Blockchain main chain write record structure: In this embodiment, the following content is written into the blockchain main chain in a structured form:

[0056] in, For record structure, AID stands for anonymous identity identifier. For post-quantum public keys, A set of vehicle access permissions, including at least a list of road segment IDs and a validity period. This is the certificate expiration time (Unix timestamp). This is an off-chain binding verification hash used to prevent public key substitution attacks. Specifically, the off-chain binding verification hash... .

[0057] S2, Initial Authentication for the Current Road Segment: Upon entering the communication range of the roadside unit, the vehicle sends an anonymous identity identifier and a post-quantum signature. After verifying the identity via blockchain, the roadside unit generates a quantum-secure session key using a quantum key distribution protocol and distributes it to the vehicle. The specific process of vehicle authentication in the current road segment in S2 is as follows: S2.1, the vehicle initiates an authentication request and generates a post-quantum signature: After the vehicle enters the RSU communication range, construct an authentication request message. The authentication request message It also includes a 64-bit Unix millisecond-level timestamp. With 128-bit random numbers Then use the private key right Perform Dilithium signing and generate a signature. The final request will be made. Send to the current roadside unit .

[0058] Specifically, the authentication request message is represented using the following logic. :

[0059] in, 64-bit Unix millisecond timestamp A random number (nonce) generated for the vehicle. This is used to prevent replay attacks.

[0060] The core idea behind generating the post-quantum signature in this embodiment is to first randomly define a mask vector. Then, a hash function is used to convert the commitment Message Binding Generation Challenge Finally, the response vector is obtained by responding to the challenge using the private key. Specifically, based on the Dilithium signature algorithm. The specific logic for generating the quantum signature is as follows: S2.1.1, Define the sampling mask vector The coefficients are uniformly distributed in , for A multinomial vector sampling space, where the coefficients of each term in the vector are in the integer range. Uniformly and randomly selected from within, The boundary parameters for the mask vector coefficients correspond to the upper limit of the interval. Sampling mask vector Used to generate a random mask base independent of the private key, which serves as the base variable for subsequent signed responses.

[0061] S2.1.2, Calculate the lattice commitment vector Specifically, first extract the high-order bits. ,in To decompose high and low bits, take the high-bit function. The high-order decomposition result of the lattice domain commitment vector w is hashed into the challenge generation stage.

[0062] S2.1.3, the hash generation cryptographic challenge polynomial, is represented using the following logic:

[0063]

[0064] in, Output a 256-bit binary random string for the hash. For collision-resistant cryptographic hash functions, this embodiment uses SHAKE-256 for the standard Dilithium; tr is the global context random string / state tracking value for the signature process; For vehicle authentication pending message; For a spherical sparse sampling function, with As a random seed, in the polynomial The inner sampling sparse challenge polynomial; c is the final sparse challenge polynomial used for signature verification; It is a basic polynomial ring. In this embodiment, the coefficients of each term in the challenge polynomial are taken as { The Hamming weight (number of non-zero coefficients) τ is 49, which guarantees the sparsity of the challenge polynomial and reduces computational overhead.

[0065] S2.1.4, Calculate the response vector And set the rules for rejecting sampling: like or If , then discard the current y and return to S2.1.1 for resampling; where, ), To decompose high and low bits, take the low-bit function, and... pair; Accompany the private key with another secret vector.

[0066] S2.1.5, Generate prompt vector To support high-order bit restoration during signature verification, the following logic is used:

[0067] condition: Otherwise, if the conditions are not met, the signature process will be recalculated in this round; among which, To restore the commitment vector at the verification end The binary hint vector (hint auxiliary information) required for the high-order bits; The hint bit generation function generates a small number of marker bits based on the high and low bit decomposition deviation. During the verification stage, it works in conjunction with UseHint to accurately recover the original high bits. , This is a bitwise statistical function used for statistics. The total number of bits with a binary value of 1; The maximum allowed Hamming weight of the prompt vector is set to constrain the amount of prompt information data and control the signature size.

[0068] S2.1.6, Quantum Signature after Complete Encapsulation And the vehicle sends an authentication request. The original authentication message and the Dilithium post-quantum signature are uploaded together to the authentication server to complete the signature verification.

[0069] S2.2, RSU signature verification of identity: Upon receiving an authentication request, the roadside unit first verifies the freshness of the message timestamp to prevent replay attacks. In this embodiment, the effective time window threshold is 500ms. If the timestamp deviation exceeds this threshold, the roadside unit directly rejects the authentication request. Based on this, the roadside unit... Execution of the lattice-based quantum signature algorithm The algorithm verifies the legitimacy of the vehicle's identity, and the specific process is as follows: S2.2.1, based on anonymous identity identifier After retrieving the corresponding vehicle's public key from the blockchain: ,in This serves as an on-chain query interface for the blockchain, using the anonymous identity identifier AID as the retrieval index to retrieve the legitimate Dilithium post-quantum public key bound to the vehicle from the blockchain ledger.

[0070] S2.2.2, Deterministic Reconstruction of the Matrix from the Seed .

[0071] The difference between step S2.2.2 and step S1.1.1 is that the random seed within the public key is used. As input, a public matrix A used in the signature stage is uniquely generated through a cryptographic pseudo-random algorithm, ensuring that the matrix of the signer and the verifier are completely identical.

[0072] S2.2.3, Reproducing the sparse challenge polynomial in the signature phase .

[0073] In this embodiment, the signature stage of step S2.1.3 is used. A spherical sparse sampling function, using the hash digest attached to the signature. Uses a random seed, reproduces the same as the signer, uses coefficients from {-1,0,1}, and has a Hamming weight. The sparse challenge polynomial c.

[0074] S2.2.4, using the hint vector to reconstruct the high-order bits of the commitment vector w:

[0075] in, The approximate high-order value of the commitment obtained by the verification end based on the prompt vector needs to be compared with the original high-order value from the signing end. Compare for consistency. For supporting The hint restoration function utilizes the auxiliary hint vector h attached to the signature. and high and low bit splitting thresholds The high-order splitting result of w in the signature stage is accurately restored.

[0076] S2.2.5 verifies the following three conditions for the authentication request, in order: hash consistency constraint, vector bound constraint, and hint vector sparsity constraint:

[0077] If all three conditions are met, the authentication request will be successful.

[0078] Furthermore, roadside units It will also check the timestamp freshness as follows:

[0079] in, The effective time window threshold, The time when the message was received, if If the threshold is exceeded, the authentication request will be rejected to prevent replay attacks.

[0080] S2.3, Quantum key negotiation between adjacent RSUs: After successful authentication, adjacent RSUs execute a quantum key distribution protocol via a fiber optic quantum channel. This protocol, employing the BB84 protocol, sequentially performs operations such as quantum state preparation, basis vector selection, quantum bit error rate estimation, privacy amplification, and group key derivation to negotiate and generate an information-theoretically secure quantum-safe group key. The key validity period is preferably set to 5-15 minutes. Specifically, the quantum key negotiation process is as follows: S2.3.1, Quantum state preparation: by As Alice (the sender), for the random bit string and random basis selection Prepare a sequence of quantum states using the following logical representation:

[0081] in, For quantum state sequence indexing, , The total length of the random bit string; | Let j represent the quantum state of the j-th photon sent by Alice, where the subscript j indicates the j-th bit in the sequence. Each photon is prepared independently according to the above rules. The classic information bits (0 or 1) that Alice wants to send also represent the original random numbers that will become the shared key in the future; The encoding base chosen by Alice at the j-th bit. Represents the computational basis (Z basis). , Represents the diagonal basis (X basis). , A basis is independently and randomly selected for each person, and this selection is kept secret from the outside world in the protocol; Describing two orthogonal states under a diagonal basis is based on |0 、|1 The weighted summation (different by a negative sign) is equal in weight. They also encode bits 0 and 1 respectively, but in a different base; These are normalization coefficients used to ensure |+ |、| The modulus is 1, which satisfies the quantum state normalization condition, making the sum of the measurement probabilities always equal to 1.

[0082] S2.3.2, Sifting: Alice and Bob publicly disclose their chosen basis vectors via a classic channel, retaining bits that match the basis vectors, and then filtering the key length. Expectation is expressed as .

[0083] S2.3.3, Quantum Bit Error Rate Estimation (QBER Estimation): In the quantum key distribution process based on the BB84 protocol, the quantum bit error rate (QBER) is calculated by randomly selecting sieved key samples and compared with a preset security threshold. The security threshold is preferably preset to 11%. When the quantum bit error rate (QBER) exceeds the security threshold, it is determined that there is eavesdropping in the fiber optic quantum channel and the current key negotiation is terminated.

[0084] Specifically, m samples are randomly selected from the sieved key for comparison, and the quantum error rate is... express:

[0085] The safety determination conditions are represented using the following logic:

[0086] If the quantum error rate (QBER) exceeds the security threshold If the fiber optic quantum channel is being eavesdropped on, the current key negotiation will be terminated.

[0087] S2.3.4, Privacy Amplification: For length of Screening key By implicitly amplifying the filtered key using a general hash function, the final secure key length is increased. It must satisfy a condition no less than the lower bound of the security key length, expressed using the following logical representation:

[0088] in, It is a binary entropy function. , Input variables for the binary entropy function; To correct the information leakage rate of errors; For safety parameters, .

[0089] In a preferred embodiment, typical parameters are used as a calculation example, and the specific details are as follows: set up Channel error correction leakage rate The final security key length Must meet:

[0090] This means that within the 10-minute key validity period, it can support the generation and use of approximately 2200 256-bit AES keys.

[0091] S2.3.5, Group Key Derivation: The quantum-secure group key generated through negotiation is represented by the following logic. :

[0092] in, The HKDF algorithm uses SHA3-256 as its underlying hash function. The key after screening. , These are the IDs of the i-th and i+1-th road segments, respectively. for stamp, This is the key version number, specifically a monotonically increasing integer with an output length of 256 bits. The group key validity period is also specified in this embodiment. The timeout period lasts for 1 minute and then automatically expires. In this embodiment, for the current roadside unit... The corresponding quantum security group key is .

[0093] S2.4, Securely distribute the group key to the vehicle: Current roadside unit Quantum security group key When the data is distributed to vehicles, a hybrid encryption scheme combining CRYSTALS-Kyber (Kyber-768) key encapsulation mechanism and AES-256-GCM symmetric encryption is used. First, the vehicle's post-quantum public key is encapsulated using the Kyber-768 standard parameter set to obtain a session encapsulation key. Then, using this session encapsulation key, the group key, its blockchain index, and validity period metadata are encrypted using AES-256-GCM before being distributed. Finally, the vehicle uses its local Kyber private key to decapsulate the key, retrieves the group key, and stores it in its local key cache unit. The entire process requires no additional interaction with the RSU. Specifically, it includes the following: S2.4.1, Key Encapsulation: The Kyber.Enc encapsulation algorithm in the CRYSTALS-Kyber (Kyber-768) key encapsulation mechanism is used to encapsulate the vehicle's post-quantum public key. Encapsulation is performed to generate a ciphertext ct and a session encapsulation key. This can be represented using the following logic:

[0094] Among them, the session encapsulation key In other words, the sender does not need to specify a key. Instead, the encapsulation algorithm randomly generates a session key, "packages" it into ciphertext, and gives it to the party holding the corresponding private key to decapsulate it.

[0095] S2.4.2, Symmetric Encryption Group Key and Metadata: Use the session encapsulation key And combine the AES-256-GCM algorithm to encrypt the current roadside unit. Corresponding quantum secure group key , Blockchain Index The validity period metadata is represented using the following logic:

[0096] in, For symmetric encrypted data, This is an Authentication Encryption Scheme (AEAD). For 128-bit blockchain key index, It is a 64-bit validity period timestamp.

[0097] S2.4.3, the roadside unit at the edge layer sends data packets to the vehicles; the data packets shown below are... ,in The authentication tag (128-bit) generated for AES-256-GCM authentication is used by the recipient to verify the integrity and authenticity of the ciphertext and prevent man-in-the-middle tampering.

[0098] After receiving the vehicle, the reverse operation is performed: the local Kyber private key is used to decapsulate the device, and then the group key is obtained. And store it in the local key cache unit; specifically, obtain the session encapsulation key after decapsulation. ,in This refers to the decapsulation algorithm for the Kyber key encapsulation mechanism. Kyber private key stored locally for the vehicle, and post-quantum public key One-to-one correspondence; The group key is then decrypted and obtained as follows:

[0099] in, Ciphertext without authentication tags, encrypted using AES-256-GCM; To decrypt the obtained quantum-secure group key, To decrypt the AES-256-GCM authentication encryption scheme, For the corresponding blockchain index, This is the expiration date timestamp.

[0100] Finally, ( Store in the local secure storage area.

[0101] S3, cross-segment key pre-distribution: The blockchain smart contract predicts the roadside unit of the next segment based on the vehicle's driving trajectory. The current roadside unit obtains the quantum security group key of the next segment through the blockchain and encrypts and distributes it to the vehicle's local key cache unit.

[0102] Blockchain smart contracts are automated programs running on a blockchain. They are triggered when preset conditions are met, requiring no intermediary intervention. Composed of code and data, blockchain smart contracts are immutable after deployment and can automatically manage asset transfers or agreement fulfillment.

[0103] This embodiment uses blockchain smart contracts to obtain real-time information such as the vehicle's location, speed, and direction of travel, and uses a trajectory prediction model to predict its trajectory. When it is predicted that the vehicle will enter the next roadside unit in the future (e.g., 30-60 seconds), the model will then be used to predict its trajectory. When the coverage area is reached, the pre-distribution process is automatically triggered. Currently... The vehicle's post-quantum public key is used to encrypt the next segment group key. The vehicle only needs to use its local private key to decrypt and obtain the key, without any key negotiation interaction with the new RSU. Specifically, the vehicle's cross-segment authentication process in S3 is as follows: S3.1 Handling uncertainties in multiple directions at intersections: In reality, when vehicles travel through complex scenarios with multiple driving paths, such as intersections, roundabouts, and Y-shaped intersections, the roadside units for the next road segment will be uncertain. To address this issue, this embodiment proposes a multi-directional probability-weighted pre-distribution (MPPD) mechanism, which specifically includes the following: S3.1.1, Identify the intersection topology and construct a candidate RSU set: Smart contracts monitor vehicle location in real time Define the intersection recognition area in conjunction with the surrounding road network topology. ;in The vehicle's current location. The distance to the nearest RSU. For the RSU position of number j, The threshold radius for intersection identification. The preferred number of outbound road segments reachable from the current location is specified in this embodiment. m.

[0104] When the vehicle enters At that time, the smart contract constructs a candidate RSU set. ;in, The number of candidate RSUs (i.e., the number of outbound road segments reachable from the current location) is represented by each candidate RSU, which corresponds to a possible direction of travel.

[0105] S3.1.2, Calculate each candidate based on a multi-directional probability weighted model. Calculate the probability of driving The following factors are considered:

[0106] in, ; For the route probability planned by the navigation system, in this embodiment, if there is explicit navigation, then... Otherwise, it is a uniform distribution; Statistical probability of historical driving records. Based on the vehicle's past choices at similar intersections; For road topology probability; This represents the real-time state probability, used to account for traffic control, congestion, and traffic light status. , , , These are the weight coefficients for the corresponding terms, which are optimized through offline training to satisfy... .

[0107] S3.1.3, the candidate RSUs are divided into three priorities based on the driving probability. Perform tiered pre-distribution. Specifically, in this embodiment, the tiered pre-distribution strategy is as follows: High priority: Immediately perform full key pre-distribution to the candidate RSU, specifically when the vehicle enters the intersection recognition area. Triggered immediately; among which, The threshold value is set to a high priority, preferably 0.6.

[0108] Medium priority: Conditional pre-distribution is performed, specifically by first assessing resource availability when a vehicle is 200m from the intersection; if availability is permitted, key pre-distribution is then executed. The threshold is a low priority threshold, preferably 0.15.

[0109] Low priority: On-demand pre-distribution is implemented, specifically, key distribution is only performed after the vehicle has a clear intention to turn. See Table 2 below: Table 2 Tiered Pre-release Strategy Table

[0110] S3.1.4 The vehicle local key caching unit can cache keys pre-distributed in multiple directions and maintain a vehicle local multi-direction key caching table. When the vehicle actually leaves the intersection and determines the driving direction, it performs fast key activation: if the target key is already in the cache table, it is activated directly; if it is not in the cache table, it triggers emergency pre-distribution.

[0111] Specifically, the vehicle locally maintains a multi-directional key cache table. ;in, Candidate roadside units The corresponding key unique index number, for The quantum session key pre-negotiated with the vehicle, as a candidate The corresponding driving probability, This refers to the remaining valid lifespan of the key. It is the set of all candidate roadside units around the current intersection.

[0112] Once the vehicle has actually exited the intersection and its direction of travel is determined, the quick key activation is performed:

[0113] in, The activation execution function is for the target key oriented towards the actual driving direction. The key index corresponding to the target roadside; For the target roadside quantum key corresponding to the vehicle's current actual driving direction, if the key already exists in the candidate set (local cache hit), the key is directly loaded and used for communication encryption; if there is no corresponding key in the cache, cross-node emergency key distribution negotiation is immediately initiated.

[0114] Furthermore, the time constraint for triggering emergency pre-distribution is:

[0115] in, This represents the total time from initiating a request to obtaining a cryptographically usable key in emergency mode. To reduce the time consumption of fast quantum key negotiation, To reduce the key synchronization transmission delay between cross-segment roadside nodes; The processing time for initializing the vehicle-side key and loading the encryption context is significant.

[0116] In this embodiment, timeliness is ensured through a pre-established quantum key pool and a fast cross-chain channel.

[0117] S3.1.5, when the number of candidate keys exceeds the vehicle's cache capacity At that time, an LRU-probability hybrid elimination strategy is implemented, specifically by calculating the elimination score. and eliminate The key with the lowest value; among which, The global weighting coefficient for the driving probability term. The maximum lifespan configured for the key. 64-bit Unix millisecond timestamp λ As a probability weighting factor, the preferred one is... λ =0.7.

[0118] S3.2, based on the trajectory prediction model, predict and obtain all possible RSUs that may be passed, obtain the quantum security group key that may have a driving direction, and obtain a key candidate set. When the actual position determines the direction, activate the corresponding key to communicate.

[0119] Specifically, the smart contract continuously obtains the vehicle's location. ,speed and acceleration The future position is predicted using a uniformly accelerated motion model:

[0120] in, The time interval is specified, and trigger conditions are pre-distributed. Let the effective communication coverage radius of the RSU be... Speed Reserve time for pre-distribution processing Triggering time satisfy:

[0121] Entry Time The estimate is:

[0122] in, For the current moment, Estimated arrival time of vehicles at the center of the RSU coverage area; advance distribution lead time. The possible values ​​are as follows:

[0123] in, The negotiation time for quantum key generation is 20 seconds. The time required for blockchain-based evidence storage and consensus is 10 seconds. The encryption and encapsulation process for the group key takes 5 seconds. The processing time for the contract pre-distribution business logic is taken as 2 seconds; the theoretical total lead time is 37 seconds; considering network jitter, computation latency, and other margins, a conservative estimate is adopted. s.

[0124] S3.3, after obtaining the cross-shard key, encrypt and send it to the vehicle and cache it: In vehicle-road cooperative scenarios, vehicles travel across different roadside units (RSUs) managed by different segments. When a vehicle is about to enter a road segment managed by an adjacent segment, the current segment i needs to obtain the quantum security group key corresponding to the next road segment from the adjacent segment i+1. This allows vehicles to pre-cache keys. To address issues such as message loss, node anomalies, and inconsistent key states during cross-shard key exchange, this embodiment employs a hash lock-based cross-chain atomic exchange protocol to securely transfer cross-shard keys.

[0125] In this embodiment, the objects involved in the entire interaction process include local shard i (the requester), adjacent shard i+1 (the key provider), the cross-chain relay contract, and the vehicle terminal. The specific interaction flow is as follows: the requesting shard generates a hash lock and initiates a cross-chain request to the relay contract; after verifying the key provider shard's request, it encrypts the target group key using the inter-shard quantum relay key; upon receiving the ciphertext, the requesting shard submits the hash preimage to trigger the contract unlock, completing the atomic exchange; finally, the vehicle-oriented key ciphertext is generated and sent to the vehicle terminal; once the transaction exceeds the preset timeout period, the relay contract automatically rolls back to ensure the atomicity of cross-shard key interaction and avoid inconsistencies where one party obtains the key while the other party's state is not updated. The specific execution steps are as follows: S3.3.1, Request shard i to generate a hash lock: Local fragment i, acting as the key requester, locally generates a 256-bit hash preimage. via SHA3 The hash lock is calculated using a 256-bit hash function. :

[0126] in, The hash preimage is a 256-bit random number stored locally and securely by shard i. This number serves as the credential for unlocking transactions in the subsequent relay contract and is obtained using the SHA3-256 cryptographic hash function. Hash lock, for preimage The corresponding hash digest is published on the blockchain. The relay contract can only receive a preimage that matches the hash lock. Only then is the completion of the task confirmed.

[0127] S3.3.2, Shard i submits a cross-shard key request to the cross-chain relay contract: Sharding i assembles the cross-chain request message, and uses the hash lock With transaction timeout parameters Submitted together to the cross-chain relay contract. Preferably, the transaction timeout threshold... =30s.

[0128] S3.3.3, the key provides a fragment i+1 verification request. After successful verification, the target key is locked and a cross-fragment ciphertext packet is generated: The relay contract forwards the cross-chain request to the key provider, shard i+1; shard i+1 verifies the legitimacy of the request source and contract credentials. After successful verification, shard i+1 distributes the target quantum security group key to be distributed. Transaction locking is implemented to prevent the same key from being distributed repeatedly; simultaneously, a quantum-safe relay key, pre-negotiated between the fragments via QKD quantum key distribution, is utilized. The group key and key index are authenticated and encrypted to generate ciphertext packets for transmission between fragments. :

[0129] in, The quantum-secure relay key, pre-negotiated between the fragments and generated by the QKD quantum key distribution protocol, is specifically used for the secure transmission of key data between fragments. The quantum-secure group key corresponding to the segment managed by fragment i+1 is the target key to be obtained in this interaction. Group key The corresponding unique key index, This indicates bit calculation.

[0130] Fragment i+1 will encrypt the Return to the requested fragment i.

[0131] S3.3.4, Segment i submits the preimage to complete the atomic swap, generating the vehicle-side key ciphertext which is then sent to the vehicle terminal: Segment i receives CrossShardPkg from segment i+1, using the inter-segment quantum relay key. Decrypt and verify the integrity of the data packet. After successful decryption and verification, shard i submits the locally stored hash preimage to the cross-chain relay contract. .

[0132] Relay Contract Verification If the verification passes, the cross-shard key exchange transaction is considered complete; otherwise, it is considered complete. Since the valid original image has not yet been received, the relay contract automatically rolls back this transaction, and shard i+1 is released from its position. The lock.

[0133] The fragment i obtains the plaintext , Then, the key is encapsulated in conjunction with the pre-established key between the vehicle and the road. The group key, key index, and key validity period are encrypted to generate the key ciphertext that is sent to the vehicle terminal. :

[0134] in, The encrypted key to be distributed to the vehicle. Encapsulate the key for the key exchange between the vehicle and the roadside unit. For key Effective survival time; after vehicle decryption, ( The key set is stored in the vehicle's local multi-directional key cache table. At this time, the key status is marked as "Pending Use (PRE_CACHED)" and fast activation is performed after the vehicle's driving direction is matched.

[0135] S4, rapid switching across road segments: When a vehicle enters a new road segment, it only sends the blockchain key index. The new roadside unit completes the authentication directly through on-chain verification, and the vehicle uses the pre-cached group key to establish encrypted communication.

[0136] During the cross-road segment switching process, the vehicle does not need to send any identity information, only a switching request. This switching request contains only a 128-bit blockchain key index, a 256-bit message authentication code (MAC), and a 64-bit switching timestamp, with a total data volume of 56 bytes. The new RSU completes verification by querying the on-chain key status, with a total interaction latency of less than 20ms. Specifically, S4 includes the following: S4.1, Construct a lightweight handover request: Vehicles enter the new section of road After coverage is established, construct a lightweight handover request. As shown in the following formula:

[0137] in, For 128-bit blockchain key index, A 256-bit message authentication code. A 64-bit switch timestamp, switch request It does not contain any identity information.

[0138] Furthermore, the message authentication code is generated using the HMAC-SHA3-256 algorithm with a pre-cached group key. Key index With timestamp The message authentication code is obtained through calculation. Using the following logical representation:

[0139] in, The entire handover request is a 64-bit switching timestamp. The data size is 128 + 256 + 64 = 448 bits = 56 bytes, which is much smaller than the data size of traditional re-authentication messages, about 4-8 KB.

[0140] S4.2, new section Received handover request Then execute the rapid verification process: S4.2.1, Blockchain Shard Key Index Query: New section Based on the key index corresponding to the group key GK2 in the blockchain Quickly query the corresponding key record in the local blockchain shard. The returned record contains ;in, This is a local shard index query function for the blockchain; indexed by key. As input parameters, the key structure record is quickly retrieved within the local blockchain shard and output. The returned key record It contains four fields: vehicle anonymous identity identifier Road segment group key Key status, group key validity period threshold .

[0141] S4.2.2, Perform key state validity verification and message time validity verification: (1) First, perform a state validity check, and the check rule is denoted as follows: ,in, group key In the pre-distribution state, group key It is in an active state; (2) Next, the message time validity is checked to ensure that the group key is within its validity period and to limit the message transmission delay. The verification conditions are recorded as follows: and If any condition is not met, the time validity test fails; among them, Vehicle generates handover request message The sending timestamp carried at the time; Group key The effective deadline; for The local receive timestamp of the received handover request message; The effective time window threshold is preferably set to 500ms.

[0142] S4.2.3, MAC integrity check, used to defend against timing side-channel attacks: The roadside unit uses a constant-time comparison algorithm to verify the integrity of the MAC address, preventing timing-side channel attacks. The verification logic is as follows:

[0143]

[0144] in, for Using local keys The recalculated message authentication code, For SHA3 based A 256-bit hash message authentication algorithm; This means performing a constant-time equality comparison on two sets of MAC values; if they are equal, the integrity check passes.

[0145] When conditions S4.2.1 through S4.2.3 are all met, RSU2 sends an acknowledgment message to complete fast authentication, and the vehicle uses the pre-cached group key. Establishing an encrypted channel requires only one interaction throughout the entire process, with latency controllable within 7.3-15ms.

[0146] S4.3, Delay Analysis: Furthermore, let the wireless transmission delay be... RSU calculation delay is The local query latency of the blockchain is The quantitative estimates for each item are shown in Table 3 below: Table 3. Estimation table of various time delays in this embodiment

[0147] Furthermore, considering network jitter and scheduling overhead, The 99th percentile estimate is approximately 15ms. Table 4 below shows a comparison of the number of interaction rounds and latency performance between this embodiment and traditional PKI re-authentication and pure quantum key distribution schemes: Table 4. Comparison of handover delays for different schemes across road segments.

[0148] S5, Communication and Evidence Storage: Vehicles and roadside units use quantum-secure keys for encrypted communication, and all authentication and key switching records are stored on the blockchain in real time.

[0149] S5.1, encryption of communication data: The vehicle and RSU communicate using AES-256-GCM encrypted data via the currently valid group key, with the data frame format as follows:

[0150] in, The header of the communication frame carries basic routing and session identification information; The valid group key currently in use for the session. Plaintext data for communication service payload; To add authentication data, It is a 128-bit integrity authentication tag, generated by the AES-256-GCM algorithm.

[0151] The Additional Authentication Data (AAD) includes a 32-bit frame sequence number, a 64-bit timestamp, and a 32-bit RSU identifier to prevent ciphertext replay, and is represented by the following logic:

[0152] in, It is a 32-bit communication frame sequence number. Generate timestamps for 64-bit frames. A 32-bit unique identifier for each roadside unit; the maximum number of frames that can be used for a single group key is no more than 2. 32 This is to prevent security degradation caused by AES-GCM nonce reuse.

[0153] S5.2, Blockchain Evidence Record Structure: In step S5, each authentication and key switching event is written to the corresponding blockchain shard in real time as a structured record. The record content includes the event type. Anonymous identity identifier, RSU identifier Key Index Event timestamp and event proof hash This can be represented using the following logic:

[0154] Among them, event proof hash In this embodiment, the proof hash of the first authentication event includes a post-quantum signature. The proof hash of the cross-segment fast switching event contains the message authentication code. This reduces on-chain storage overhead.

[0155] S5.3, Key Lifecycle Management: In this embodiment, key updates, revocations, and rotations are all automatically executed by the blockchain smart contract. The key lifecycle is synchronized with the on-chain state in real time to avoid authentication failure due to key expiration. Specifically, the blockchain smart contract manages the lifecycle of each group of keys according to the following state machine: Generating → Activating → Pre-distributing → In use → Expired → Revoked. The automatic key rotation is triggered by any one of the following conditions: Time expires: ; The buffer time for key rotation is preferably 120 seconds.

[0156] Usage exceeded limit: ; This is the total count of data frames that have been encrypted and transmitted using the current group key. This is the maximum number of frames that can be encrypted using a single key. Selected as This is used to prevent AES-GCMnonce from being reused.

[0157] QBER Exceeds Threshold: When the QBER of the underlying QKD channel exceeds the safety judgment threshold, an emergency rotation is triggered; the safety judgment threshold is preferably 11%.

[0158] Furthermore, when vehicle permissions are revoked, the smart contract broadcasts the revocation event. , For the effective timestamp of the revocation event, This is the field for the reason for permission revocation; upon receiving a revocation event, all RSUs holding the pre-distributed key for this vehicle immediately delete the corresponding entry from their local cache (instead of deleting the group key), with the timeliness guaranteed to be the blockchain block time (approximately 1-3 seconds).

[0159] Furthermore, to verify the effectiveness of the cross-road vehicle-road fast authentication method in this embodiment, a security analysis was performed on each cryptographic component. Table 5 below shows the post-quantum security strength of each cryptographic component: Table 5. Security Levels Against Quantum Attacks for Each Cryptographic Component

[0160] In this embodiment, the overall safety of the hybrid system meets the requirements. This indicates that the overall security of this embodiment is no less than the highest security level between QKD and PQC. Even if future quantum computers can crack the PQC algorithm, the QKD link can still provide information-theoretically secure group key distribution, thereby ensuring the security of the roadside backbone network; even if QKD devices are limited in specific scenarios, PQC can still provide 128-bit post-quantum-secure vehicle-to-everything (V2X) access layer authentication. The two complement each other, forming a defense-in-depth quantum-security system.

[0161] Analysis of replay attack resistance: During the initial authentication process in step S2, the vehicle's authentication request message contains a 64-bit Unix millisecond-level timestamp. and 128 random RSU performs a freshness check on the timestamp, with a valid time window of no more than 500ms. Even if an attacker intercepts a legitimate authentication request, they cannot replay the request after the time window has expired. The success probability of a replay attack is... .

[0162] Furthermore, during the cross-segment fast handover process in step S4, the handover request includes a 64-bit handover timestamp. It is also limited by a 500ms time window, and the timestamp is bound to the MAC, which further prevents replay attacks.

[0163] Analysis of anti-spoofing attack capabilities: If an attacker attempts to impersonate a legitimate vehicle to pass authentication, they must do so without knowing the vehicle's private key. Under certain conditions, forging a Dilithium signature, based on the security reduction of the Dilithium algorithm, is equivalent to solving the Modulo Short Integer Solution (MSIS) problem, which is a difficult problem on lattices. Under the selected parameters, the solution complexity of this problem is no less than [value missing]. The success rate of this basic operation is negligible.

[0164] Furthermore, in scenarios involving rapid handover across road segments, if an attacker attempts to impersonate a vehicle to initiate a handover request, they must forge a legitimate MAC address without knowing the pre-cached group key. HMAC-SHA3-256, when the key is unknown, is no less difficult to forge than... The success rate of a second exhaustive attempt is also negligible.

[0165] Vehicle-side computing performance evaluation: In this embodiment, no quantum hardware is required on the vehicle side; only post-quantum signature and HMAC operations need to be performed. Typical computation times on the ARM Cortex-A53 embedded platform are shown in Table 6 below: Table 6 Typical calculation schedules in this embodiment

[0166] As shown in the performance data above, the main computational overhead on the vehicle side in this embodiment is Dilithium signing (approximately 2.5ms) and Kyber unsealing (approximately 1.0ms). The total computational load is far less than that of schemes that require QKD operations or quantum random number generation on the vehicle side. Overall, the computational overhead on the vehicle side in this embodiment is reduced by more than 90% compared to traditional QKD schemes that require deploying quantum hardware on the vehicle side.

[0167] In summary, this embodiment possesses 128-bit post-quantum security strength, effectively resisting quantum computing attacks, replay attacks, and spoofing attacks. In terms of performance, the cross-segment handover process requires only one request-confirmation interaction, with an end-to-end latency of approximately 7–15 ms, significantly lower than the 100–300 ms of existing technologies. Regarding vehicle-side costs, no quantum hardware is required. This embodiment outperforms existing technologies in all three key indicators: security, handover latency, and vehicle-side cost. The QKD-PQC hybrid quantum-resistant system employed in this embodiment can resist quantum computer attacks, meeting the long-term security requirements of vehicle-road cooperation.

[0168] Furthermore, existing technologies, such as the invention patent with publication number CN118784205A, use a quantum cryptographic platform for anonymous vehicle identity registration, utilize roadside equipment as blockchain nodes to verify vehicle legitimacy, and implement cross-road segment key transfer via smart contracts; while the invention patent with publication number CN117318944A uses the BB84 protocol to achieve quantum key negotiation between RSUs and pre-distributes the group key of the next roadside unit to the vehicle through an inadvertent transmission model. Based on the aforementioned existing technologies, this invention further upgrades the identity authentication layer to Dilithium post-quantum signatures and the key transfer layer to Kyber post-quantum encapsulation + QKD quantum key distribution, completely solving the quantum threat from the underlying cryptographic components. This invention also proposes a QKD-PQC hybrid quantum-resistant cryptographic system, a lightweight design with no quantum hardware on the vehicle side, a key pre-distribution and local caching mechanism based on blockchain smart contracts, and a multi-directional probability-weighted pre-distribution strategy for intersection scenarios. These steps achieve a cross-road segment switching latency of less than 20ms, significantly improving both security and efficiency.

[0169] In contrast, this invention upgrades the vehicle-side cryptography system from traditional cryptography to NIST-standardized post-quantum cryptography, achieving lightweight, quantum-resistant authentication without quantum hardware on the vehicle side. At the key distribution level, based on the existing BB84 protocol and pre-distribution concept, it replaces the unintentional transmission model with blockchain smart contracts, achieving more efficient key state management and cross-shard atomic exchange. Furthermore, this invention proposes an active pre-distribution triggering mechanism based on trajectory prediction and a multi-directional probability weighted pre-distribution strategy (MPPD), solving the multi-directional uncertainty problem at intersections in existing technologies, reducing key resource redundancy at extremely complex intersections, and improving the security and efficiency of cross-road segment vehicle-to-infrastructure (V2I) authentication. Ultimately, it achieves technical effects such as cross-road segment switching latency of less than 20ms and a reduction of over 90% in vehicle-side computational overhead.

[0170] Example 2 An apparatus includes a memory and a processor, the memory being used to store a program that supports the processor in executing the cross-road segment vehicle-road rapid authentication method of Embodiment 1, the processor being configured to execute the program stored in the memory.

[0171] Example 3 A storage medium storing a computer program, which, when executed by a processor, performs the steps of the cross-road segment vehicle-road rapid authentication method in Embodiment 1.

[0172] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0173] In the description of this specification, references to terms such as "in a preferred embodiment," "preferred," "in this embodiment," "specific," or "furthermore," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0174] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0175] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A rapid vehicle-road authentication method across road segments, applied to a quantum cryptographic service platform, characterized in that, include: The system receives the identity information submitted by the vehicle, generates a quantum public-private key pair and an anonymous identity identifier, writes the public key and anonymous identity identifier into the blockchain main chain, and sends the private key to the vehicle. The system acquires vehicle location, speed, and acceleration, predicts vehicle trajectory, and predicts the roadside units for the next road segment based on the vehicle trajectory. It also triggers the pre-distribution of quantum-secure group keys in the blockchain shard where the roadside unit is located. When there are multiple candidate roadside units, the system calculates the driving probability of each candidate roadside unit through multi-factor weighted calculation and performs pre-distribution operations with different priorities based on the driving probability.

2. The method for rapid vehicle-road authentication across road sections according to claim 1, characterized in that, The post-quantum public-private key pair is generated using the CRYSTALS-Dilithium signature algorithm; The anonymous identity identifier is specifically a random string decoupled from the real identity, represented as follows: in, For anonymous identity identification, -256 is the SHA3 series of 256-bit cryptographic hash functions. Vehicle Identification Number (VIN) For random salt values, This serves as a registration timestamp; the binding relationship between real identity information and anonymous identity identifier is stored in encrypted form only by the Quantum Security Service platform; and the following content is written into the blockchain main chain in a structured format: in, To record the structure, For post-quantum public keys, This is a set of vehicle access permissions. For the certificate expiration date, Bind the verification hash to the off-chain.

3. The method for rapid vehicle-road authentication across road sections according to claim 1, characterized in that, The driving probability is calculated using the following logic: in, , The number of candidate RSUs; The probability of a route planned by a navigation system. Statistical probability for historical driving records. For road topology probability, For real-time state probabilities , , , These are the weight coefficients for the corresponding terms, satisfying... ; when When a candidate roadside unit is selected, it is given high priority, and a full key pre-distribution is immediately performed to that candidate RSU. This is done when a vehicle enters the intersection recognition area. Triggered immediately; among which, High priority threshold; when When the corresponding candidate roadside unit is of medium priority, conditional pre-distribution is performed. When a vehicle is at a preset distance from the intersection, the resource availability is first assessed. If the resource availability is acceptable, key pre-distribution is then performed. Low priority threshold; when At that time, the corresponding candidate roadside unit is of medium priority, and pre-distribution is performed on demand. Key distribution is only supplemented when the vehicle has a clear turning intention.

4. A rapid vehicle-road authentication method for cross-road sections, applied to roadside units, characterized in that, include: Receive authentication requests sent by vehicles and verify the vehicle's post-quantum signature by querying the public key through the blockchain; After successful verification, a quantum-secure group key is generated through negotiation with the adjacent roadside unit via a quantum key distribution protocol, and then distributed to the vehicle's local cache after hybrid encryption. Based on the pre-distribution operation triggered by the vehicle's driving trajectory, the quantum security group key for the next road segment is obtained from the adjacent blockchain shard, and then distributed to the vehicle's local cache after hybrid encryption. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by multi-factor weighting, and pre-distribution operations with different priorities are performed according to the driving probability. It receives lightweight switching requests sent when a vehicle enters a new road segment, performs on-chain verification by querying blockchain shards, and establishes encrypted communication with the vehicle.

5. The method for rapid vehicle-road authentication across road sections according to claim 4, characterized in that, The quantum key distribution protocol adopts the BB84 protocol, and adjacent roadside units negotiate quantum keys through an optical fiber quantum channel. The hybrid encryption specifically involves: first, using Kyber-768 to encapsulate the vehicle's quantum public key to obtain a session encapsulation key; then, using the session encapsulation key to encrypt the group key, its blockchain index, and validity period metadata, before sending it to the vehicle.

6. The method for rapid vehicle-road authentication across road sections according to claim 4, characterized in that, The process of obtaining the group key from adjacent blockchain shards employs a cross-chain atomic swap protocol based on hash locks. Local shard i, acting as the key requester, generates a hash lock. And submit a cross-shard key request to the cross-chain relay contract; Segment i+1 acts as the key provider to verify the request. After successful verification, the target quantum security group key is locked and a cross-segment ciphertext packet is generated. Return it to local shard i; Local fragment i-reception After decryption, if the decryption verification is correct, the preimage is submitted to the relay contract to complete the atomic exchange. If the timeout occurs, it will automatically roll back.

7. The method for rapid vehicle-road authentication across road sections according to claim 4, characterized in that, The lightweight switching request includes a blockchain key index, a message authentication code, and a switching timestamp, but does not include identity information; wherein, the message authentication code is calculated by the HMAC-SHA3-256 algorithm using a pre-cached group key pair key index and timestamp.

8. A quantum-based secure platform, characterized in that, include: The identity registration unit is used to receive the identity information submitted by the vehicle, generate a quantum public-private key pair and an anonymous identity identifier, write the public key and the anonymous identity identifier into the blockchain main chain, and send the private key to the vehicle. The cross-segment key pre-distribution unit is used to obtain vehicle position, speed and acceleration, predict vehicle trajectory, predict the roadside unit of the next segment based on the vehicle trajectory, and pre-distribute the quantum-secure group key in advance to the blockchain shard where the roadside unit is located. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by multi-factor weighting, and pre-distribution operations with different priorities are performed according to the driving probability.

9. A roadside unit, characterized in that, include: The road segment authentication unit is used to receive authentication requests sent by vehicles and verify the vehicle's post-quantum signature by querying the public key through the blockchain. After successful verification, a quantum-secure group key is generated through negotiation with the adjacent roadside unit via a quantum key distribution protocol, and then distributed to the vehicle's local cache after hybrid encryption. The cross-road segment key pre-distribution unit is used to obtain the quantum-secure group key of the next road segment from the adjacent blockchain shard based on the pre-distribution operation triggered by the vehicle's driving trajectory, and then distribute it to the vehicle's local cache after hybrid encryption. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by multi-factor weighting, and pre-distribution operations with different priorities are performed according to the driving probability. The cross-segment switching unit is used to receive lightweight switching requests sent by vehicles when they enter a new segment, verify them on-chain by querying blockchain shards, and establish encrypted communication with the vehicles.

10. A method for rapid vehicle-road authentication across road sections, characterized in that, Includes the following steps: The vehicle submits its identity information to the quantum cryptographic platform. The platform then generates a quantum public-private key pair and an anonymous identity identifier, and writes the public key and identity information into the blockchain main chain. When a vehicle enters the current roadside unit's communication range, it initiates an authentication request and generates a post-quantum signature using its private key. After the current roadside unit verifies its identity by querying the public key through the blockchain, adjacent roadside units negotiate and generate a quantum-secure group key using the quantum key distribution protocol, which is then encrypted and sent to the vehicle's local cache. Based on the vehicle's driving trajectory, the roadside units of the next road segment are predicted, and the pre-distribution of the quantum-safe group key of the next road segment is triggered in advance. The group key is obtained from the adjacent blockchain shard, encrypted, and then sent to the vehicle's local cache. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by weighting multiple factors, and pre-distribution operations with different priorities are performed according to the driving probability. When a vehicle enters a new road segment, it only sends a lightweight handover request to the new roadside unit. The new roadside unit verifies the handover on the blockchain, and the vehicle activates its local cache group key to establish encrypted communication.

11. A rapid vehicle-road authentication system for cross-road sections, characterized in that, include: The vehicle identity registration module is used for vehicles to submit identity information to the quantum cryptographic service platform. The quantum cryptographic service platform generates a quantum public-private key pair and an anonymous identity identifier, and writes the public key and identity information into the blockchain main chain. The current road segment authentication module is used when a vehicle enters the communication range of the current roadside unit, initiates an authentication request, and generates a post-quantum signature using the private key; After the current roadside unit verifies its identity by querying the public key through the blockchain, adjacent roadside units negotiate and generate a quantum-secure group key using the quantum key distribution protocol, which is then encrypted and sent to the vehicle's local cache. The cross-segment key pre-distribution module is used to predict the roadside units of the next segment based on the vehicle's driving trajectory, trigger the pre-distribution of the quantum-safe group key for the next segment in advance, obtain the group key from the adjacent blockchain shard, encrypt it, and then send it to the vehicle's local cache. When there are multiple candidate roadside units, the driving probability of each candidate roadside unit is solved by weighting multiple factors, and pre-distribution operations with different priorities are performed according to the driving probability. The cross-road segment switching module is used to send a lightweight switching request only to the new roadside unit when a vehicle enters a new road segment. The new roadside unit verifies the switch on the blockchain, and the vehicle activates the local cache group key to establish encrypted communication.

12. An electronic device, comprising a memory and a processor, characterized in that, The memory is used to store a program that supports the processor in executing the cross-road segment vehicle-road fast authentication method of claim 10, and the processor is configured to execute the program stored in the memory.

13. A storage medium storing a computer program, characterized in that, The computer program, when run by the processor, executes the steps of the cross-road segment vehicle-road rapid authentication method of claim 10.

Citation Information

Patent Citations

  • Method and system for issuing group key in advance in vehicle-road cooperation scene, and storage medium

    CN117318944A

  • Block chain assisted Internet of Vehicles V2I authentication method and system

    CN118118899A

  • Vehicle-road cooperation system and method based on block chain

    CN118784205A