Internet of Vehicles Identity Authentication and Privacy Protection Method Based on Federated Learning and UAV
By using technologies such as federated learning and elliptic curve cryptography in the Internet of Vehicles, the problem of data privacy and security threats in the drone-assisted Internet of Things is solved, efficient identity authentication and privacy protection are achieved, and computing and transmission overhead are reduced. Improved authentication efficiency.
Patent Information
- Application Number
- CN202410162656.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-02-05
AI Technical Summary
Existing technologies face data privacy and security threats when using drones to assist the Internet of Things. In particular, how to effectively protect privacy and reduce communication and computing overhead during data processing and transmission is still a problem.
Adopt federated learning-based IoV identity authentication and privacy protection methods, initialize the system through the control center, generate system public parameters and offline keys, and register drones, vehicles and roadside units, using elliptic curve cryptography and Chinese residual The theorem generates and verifies keys, enables local training and anonymous uploading of data, and ensures data privacy and security.
It realizes identity authentication and privacy protection of multiple drones for multiple vehicles, reduces computing and transmission overhead, improves authentication efficiency, and ensures the privacy and security of data during transmission.
Smart Images

Figure CN118042464B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Vehicles data privacy protection, and in particular, relates to an Internet of Vehicles identity authentication and privacy protection method based on federated learning and drones. Background Art
[0002] With the development of Internet technology, the Internet of Vehicles, as an Internet-based intelligent transportation system, interconnects various elements such as vehicles, roads and traffic facilities to achieve information interaction and coordination between vehicles, between vehicles and roads, and between vehicles and traffic facilities, thereby improving traffic efficiency, reducing traffic accident rates, and improving the traffic environment. However, in areas with limited networks, such as remote mountainous areas, when traffic accidents occur, rescue cannot be received in time. Therefore, the use of drones in the Internet of Vehicles is a current trend and brings great advantages. Due to their flying capabilities, drones are not restricted by the physical structure of roads and can move freely to support the required network. The number of deployed infrastructure nodes can be reduced, thereby reducing deployment costs, while ensuring that the link quality will not be degraded due to obstacles. However, using drones to assist the Internet of Things faces security and energy challenges. For example, a large amount of computing is performed on drones to process the collected data. Transmitting the collected data to a central station for processing may involve various privacy and security threats.
[0003] Federated learning (FL) is an emerging distributed machine learning method that enables nodes to collaboratively learn shared prediction models. Applying federated learning to the Internet of Vehicles is a novel approach. Existing research on federated learning mainly focuses on the privacy protection of user data. By using federated learning on drones to establish a secure connection with vehicles, data privacy between drone and vehicle users is guaranteed. However, many solutions for privacy protection have been proposed in existing technologies, but how to efficiently protect privacy and reduce communication overhead and computing overhead resources remains a problem. Summary of the invention
[0004] The purpose of the present invention is to provide a method for Internet of Vehicles identity authentication and privacy protection based on federated learning and drones to solve the problems existing in the above-mentioned prior art.
[0005] To achieve the above objectives, the present invention provides a method for Internet of Vehicles identity authentication and privacy protection based on federated learning and drones, comprising:
[0006] The control center initializes the system, generates system public parameters, performs registration tasks for drones, vehicles, and roadside units, and generates offline keys to distribute to each vehicle;
[0007] Generate the relevant keys for communication between the control center, drones, vehicles and roadside units based on the offline keys and system public parameters;
[0008] The drone sends the global model parameters to each vehicle in the coverage area. The vehicle trains the local data to obtain the local model parameters. The local model parameters are signed according to the relevant key to generate verification information and uploaded anonymously to the corresponding drone. The drone verifies the local model parameters according to the verification message, aggregates the verified local model parameters, and obtains the global model parameters until the training round ends.
[0009] The control center tracks the real identity of the vehicle based on the global model parameters, system public parameters, and related keys, and performs a revocation operation if it is a malicious vehicle.
[0010] Preferably, the process of initializing the system and generating system common parameters includes:
[0011] The control center selects security parameters to generate two prime numbers. The control center randomly selects a value in the multiplication group as the master key of the system, calculates the system public key based on the master key and the generator of the additive cyclic group, and selects another value in the multiplication group as the tracking key; obtains the master private key based on the master key and the tracking key; the control center selects five one-way hash functions, which combine elliptic curves, multiplication groups, additive cyclic groups, two prime numbers, system public keys, and generators to obtain system public parameters; broadcasts the system public key to each vehicle, drone, and roadside unit;
[0012] Preferably, the process of performing the registration task of the drone, vehicle and roadside unit includes:
[0013] When the control center receives the drone identity, it sends the corresponding drone private key and drone public key to each drone, selects several prime numbers in the multiplication group as offline keys for several vehicles in the drone coverage area, and broadcasts the roadside unit private key and roadside unit public key within the coverage area.
[0014] Preferably, the process of generating the relevant keys for communication between the control center, the drone, the vehicle and the roadside unit based on the offline key and the system public parameters includes:
[0015] After receiving the real identity of the vehicle, the control center selects several random values, combines them with the generator to generate an identity set, performs hash processing on the identity elements in the identity set and the tracking key to obtain an identity key, encrypts the result of the XOR calculation of the real identity and the identity elements based on the identity key, obtains the pseudo identity of the vehicle, and obtains the pseudo name of the vehicle based on the pseudo identity and the real identity; calculates the vehicle partial private key based on the system master key, a part of the several random values and the elements in the pseudo identity of the vehicle after hash processing, and sends the vehicle partial private key and the vehicle pseudo name to each vehicle;
[0016] Each vehicle selects a secret value in the multiplication group as a vehicle secret private key, and calculates a vehicle public key based on the vehicle secret private key and a generator of the additive cyclic group;
[0017] The control center constructs a trust domain based on the offline keys of several vehicles and the Chinese remainder theorem and calculates x i ·y i ≡1mod f i , where f i is the vehicle V i Offline key, select c in the control center i =x i ·y i and where c i is legitimate information, i∈[1,n]; the control center randomly selects a set of keys from the trust domain Denote the multiplication group, and calculate the two components of the group public key β = κ·μ and D pub =κ·P, where P is the generator; the control center uses its own private key to β,D pub Sign the message with the timestamp T. Broadcast to the vehicles and drones in the trust domain, where The control center uses its own private key pair (β∥D pub ∥T) is used for signing, ∥ is the connection operation.
[0018] Preferably, the process of training the local data of the vehicle to obtain the local model parameters includes:
[0019] Using formula Train the local data, where Global model parameters, α is the learning rate that controls the step size of each update, D i It is the vehicle data. is the loss function, X is a set of features, Y is the true value, is the model prediction value. When the objective function converges, the local model parameters are obtained.
[0020] Preferably, the process of signing the local model parameters according to the relevant key to generate verification information includes:
[0021] Each vehicle selects a value in the multiplication group and calculates U in combination with the generator. i , select any value in the pseudo name corresponding to the vehicle;
[0022] Hash the vehicle's identity element, vehicle public key, and system public key to obtain the value The vehicle's identity elements, vehicle public key, local model parameters, timestamp and U i Perform hashing to obtain the value λ i ; Hash the vehicle's pseudo-identity and timestamp to obtain the value η i ;
[0023] Based on a set of keys κ, the signature key is calculated using the following formula:
[0024]
[0025] in, It is a partial private key of the vehicle;
[0026] Based on the signature key using the formula Calculate and obtain vehicle signature;
[0027] The local model parameters are encrypted using the public key of the drone to obtain an encrypted ciphertext, verification information is constructed based on the encrypted ciphertext, and sent to the corresponding drone, wherein the verification information includes the ciphertext, the vehicle signature, an arbitrary value selected from the pseudonym, the vehicle public key, and a timestamp.
[0028] Preferably, the process of obtaining the global model parameters includes:
[0029] After receiving the verification information, the drone uses the drone private key to decrypt the encrypted ciphertext to obtain local model parameters; the integrity and authenticity of the local model parameters are verified, and the verified local model parameters are uploaded to the cluster head drone for aggregation. The cluster head drone uses its own private key to sign the global model parameters obtained by aggregation, and then broadcasts them to each drone in the coverage area. The integrity and authenticity verification methods include single message verification and message batch verification.
[0030] Preferably, the process of single message verification includes:
[0031] After receiving the verification message, the drone checks the validity of the timestamp in the verification message according to the assumed arrival time. If it is invalid, the message is discarded; if it is valid, the drone continues to verify and calculates And verify the equation Is it true? If the equality is true, the signature is valid and the local model parameters comes from a legitimate vehicle, otherwise, the corresponding local model parameters are discarded.
[0032] Preferably, the process of batch verification of messages includes:
[0033] When the drone receives a set of verification messages from several vehicles in the coverage area, it checks the timestamp of each message. If they are all valid, it continues the verification, otherwise, it discards the message. Using a set of small indexes v = {v1, v2, ...v n}, where v i ∈[1,2 t ], t is a small integer. Drone D j Check the equation Is it true? If the equality is true, the signature is valid.
[0034] Preferably, the control center tracks the real identity of the vehicle based on the global model parameters, the system public parameters, and the relevant keys, and performs the revocation operation if it is a malicious vehicle, including:
[0035] When the drone detects abnormal behavior of a vehicle, the control center decrypts the pseudonym of the vehicle sent by the drone through the tracking key, obtains the real identity of the vehicle, and revokes the offline key assigned to the corresponding vehicle based on the real identity; by calculating μ' = μ-c i Revoke legitimate information related to malicious vehicles c i , randomly select a set of keys from the trust domain According to β'=κ'·μ' and D pub '=κ'·P updates the group key and broadcasts it to the drones and roadside units to revoke the malicious vehicle.
[0036] The technical effects of the present invention are:
[0037] The present invention adopts a four-layer architecture model to realize the process of identity authentication and privacy protection of multiple drones for multiple vehicles; the present invention uses federated learning to improve the privacy of data, because the data is locally trained locally, and there is no need to upload the original data to the control center, which ensures the problem of data privacy leakage during the transmission process; the present invention adopts operations based on elliptic curve cryptography and Chinese remainder theorem, and supports batch authentication of messages, so the calculation and transmission overhead are low, which improves the authentication efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0039] Figure 1 A system architecture diagram in an embodiment of the present invention;
[0040] Figure 2 A schematic diagram of a method flow in an embodiment of the present invention;
[0041] Figure 3 This is a flowchart of local model training in an embodiment of the present invention;
[0042] Figure 4 A flow chart of a global model generated by aggregation in an embodiment of the present invention. DETAILED DESCRIPTION
[0043] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0045] Embodiment 1
[0046] like Figures 1 to 3 As shown, this embodiment provides a method for Internet of Vehicles identity authentication and privacy protection based on federated learning and drones, including:
[0047] The Federated Averaging Algorithm is an algorithm for model aggregation in distributed machine learning. In federated learning, data is stored on multiple local devices, and model training needs to be performed on these devices. The Federated Averaging Algorithm allows the models on these distributed devices to be aggregated without transmitting the original data to a central server.
[0048] The Chinese Remainder Theorem is used to solve a class of congruence equations about modular remainders. Its basic idea is to use the property of coprime moduli to determine a unique solution by solving multiple congruence equations.
[0049] Elliptic Curve Cryptography (ECC) uses the discrete logarithm problem on the elliptic curve to achieve secure encryption and decryption operations.
[0050] like Figure 1 As shown, the present invention relates to the following four types of entities:
[0051] Control Center (CC): This is a trusted third party used to register drones, vehicles, and roadside units. It also detects whether there are malicious vehicles. If there are any, it identifies them through the vehicle registration information and sends operations to the drone for operation.
[0052] Drone: It is a collector that performs two actions: collection and aggregation. In federated learning, each drone in each region iteratively downloads the global federated learning model parameters, collects data from vehicles in its coverage area for local training, updates the local model parameters, and sends them to the cluster head drone. The cluster head drone iteratively collects all updated local parameters and aggregates them into a new global model.
[0053] Vehicles: A participant, which is divided into malicious vehicles and non-malicious vehicles. Because it uses anonymous identities in the system, it can upload malicious model parameters by forging identities, thereby damaging the performance of the aggregate model.
[0054] Roadside Unit (RSU): is a forwarder whose main function is to store and forward information between vehicles and other roadside units, acting as a relay.
[0055] The method for identity authentication and privacy protection of Internet of Vehicles based on federated learning and drones described in the present invention comprises the following steps:
[0056] S1. System initialization, generating system public parameters. The control center CC selects security parameters, generates the master key and system public key, and broadcasts the system public key to each vehicle V i 、UAV D j and roadside units RSU. The control center CC is responsible for vehicle V i 、UAV D j The registration of roadside units (RSUs) and the tracking and revocation of malicious vehicles in the Internet of Vehicles scenario are also supported.
[0057] S1-1. The control center CC selects the security parameter k to generate prime numbers p and q. and denote elliptic curves and multiplication groups respectively. is an additive cyclic group. P is Then, the control center CC randomly selects As the master key of the system, and calculate the public key P of the system pub =s·P. The control center CC is randomly selected As the tracking key, the control center CC selects five secure one-way hash functions H0, H1, H2, H3, H4, where H0: H1: H2: H3: H4: The multiplication group represents the set of integers {1,...p-1}. The control center CC keeps s and w private. Finally, the master private key msk={s,w} is obtained and the public parameters of the system are public.
[0058] S1-2, the control center CC completes the registration task of the drone, vehicle and roadside unit. When the drone identity D is entered j When j∈[1,n]. The drone’s private key and the public key It is sent from the control center CC to each drone through a secure channel. The control center CC randomly selects a prime number As the offline key of the vehicle, gcd(f i ,f m )=1,i,m∈[1,n] and i≠j. The gcd() function represents the greatest common divisor. Verify that f i is a prime number. The private key sk of the roadside unit R and public key pk R It is sent from the control center CC to each roadside unit through a secure channel, and it is assumed that these processes are not attacked.
[0059] S2, key generation. When the control center CC receives the vehicle V i Real ID RID i When calculating a set of pseudonym IDs for each vehicle, i ={ID i ,PID i}, where PID i} is the vehicle V i Pseudo identity; then calculate each vehicle V i Part of the private key psk i , and finally ID' i and psk i Sent to each vehicle V through a secure channel i In order to ensure that the local model parameters come from legitimate vehicles and support efficient group communication, the control center CC constructs a trust domain C based on the offline key of the vehicle and the Chinese Remainder Theorem (CRT). k , and distribute the group public key (β,D pub ).
[0060] S2-1, the control center CC receives the vehicle V i Real ID RID i When , select t random values And calculate Where ID iIt is the element of identity obtained by multiplying t random values with the generator P. At the same time, the control center CC calculates and where w is the tracking key, It is the identity ID i Part of the identity key It's about identity The key obtained after hashing, It is a key Vehicle Real Identity RID i and identity The XOR result is encrypted, PID i It is a fake identity of the vehicle. It is a pseudo identity PID i The elements in is an exclusive OR operation. And k∈[1,t]. Then, each vehicle V i Each of them gets a pseudonym ID' i ={ID i ,PID i}. Control Center CC Calculation and the vehicle's partial private key where γ i It is the element Hash processing is performed, s is the system master key, is part of t random values. Then, the control center CC will i ={ID i ,PID i} and psk i Sent to each vehicle V through a secure channel i .
[0061] S2-2. Each vehicle Vi randomly selects a secret value As its private key, and calculate its public key V pub-i =τ i P. Since the control center CC does not have the secret value of the vehicle, it is impossible to forge the vehicle V i A valid signature.
[0062] S2-3, in order to ensure that the local model parameters are derived from legitimate vehicles and support efficient communication. The control center CC is based on the offline key f of n vehicles. i And the Chinese Remainder Theorem (CRT) constructs the trust region C k . Control Center CC Calculation where f i is the vehicle V iOffline key. Control Center CC selects c i =x i ·y i and where c i is a legitimate information, i∈[1,n]. The control center CC is from the trust domain C k A set of keys is randomly selected from Calculate the group public key β = κ·μ and D pub =κ·P, where P is the generator. Then, the control center CC uses its own private key sk C For β,D pub Sign the message with the timestamp T. Broadcast to trusted domain C k Vehicles and drones in D j ,in is (β∥D pub ∥T) is signed with the private key of the control center CC, ∥ is the connection operation.
[0063] S3, local model training. Drone D j Each vehicle V in the coverage area i Received UAV D j Global model parameters sent After that, train your own data to obtain local model parameters In order to ensure that the local model parameters are transmitted to the UAV D j During the safety and integrity of each vehicle V i All of them need to be signed and encrypted, and the signature and ciphertext must be anonymously uploaded to the drone D j .
[0064] S3-1. In the tth round of training, vehicle V i Receive from drone D j The global model parameters passed After that, for the local data D i To train, Where α is the learning rate controlling the step size of each update, D i It is the vehicle data. is the loss function. When the objective function converges, the local model parameters are obtained Among them, X is a set of features and Y is the true value. is the model's predicted value.
[0065] S3-2. To prove the legitimacy of identity and ensure the transmission of local model parameters The integrity of the vehicle V i For each Sign. Vehicle V iRandom Selection And calculate U i =u i ·P, where P is a generator. Vehicle V i Randomly select a pseudonym where k∈[1,t]. Calculate in, The vehicle identity Vehicle public key V pub-i , system public key P pub Hash processing, λ i The vehicle identity Vehicle public key V pub-i , local model parameters Timestamp T i , the calculated number U i Perform hashing, η i It is a fake identity of the vehicle and timestamp T i Perform hashing, ∥ is a connection operation. Vehicle V i Use the group key κ to form the signature key τ i ,in, is the partial private key of the vehicle. Then, V i Get π i =λ i ·sgk i +u i Finally, V i Get Signature
[0066] S3-3. To ensure that the drone D j Decryption and verification Vehicle V i Use drone D j The public key encryption Get the ciphertext Right now in is the local model parameter. When the local model training phase is completed, the vehicle V i send The ciphertext and the associated verification message, namely Give the drone D j .
[0067] S4, model aggregation. When receiving the ciphertext and signature, drone D j Using Private Key Decryption and verification process are performed. Only the verified local model parameters can be further aggregated to obtain new global model parameters. Then S3 operation is performed until all training rounds are completed. Finally, the obtained global model is sent to the control center CC.
[0068] S4-1, UAV D j When receiving the ciphertext and signature, use Decryption Right now in is encrypted ciphertext. j After decryption, the plaintext of the local model parameters can be accessed, but due to the anonymity mechanism, the drone D j It is difficult to relate local model parameters to a specific vehicle.
[0069] S4-2, UAV D j verify The integrity and authenticity of the message. The verification process is divided into single message verification and batch message verification. Single message verification is firstly when the drone D j From vehicle V i Received message When checking the timestamp T i The validity of r -T i , then continue verification, otherwise, discard the message. r is the assumed arrival time. Then, calculate And verify the equation Is it true? If the equality is true, the signature is valid and the local model parameters from a legal vehicle, otherwise, the drone will Discard. Message batch verification is when the drone D j From a set of vehicles {V1,V2,...V n}Received a set of messages When the drone D j Check the timestamp of each message, where i∈[1,n]. If all are valid, continue verification, otherwise, discard the message. To avoid collusion attacks and ensure non-repudiation, use a set of small exponents v={v1,v2,...v n}, where v i ∈[1,2 t ], t is a small integer. Drone D j Check the equation Is it true? If the equality is true, the signature is valid, otherwise, some of the messages are invalid.
[0070] S4-3. The verified model parameters are uploaded to the cluster head drone D s , by calculating In cluster head UAV D s Aggregation is performed in the cluster-less UAV D s Using Private Key right Sign the message Broadcast to drones in their management area D j .
[0071] S5. Management operation. For the detected vehicles that upload malicious parameters or forge identities, only the control center CC uses the signature information and alias to restore its real identity through tracking operations, and performs the revocation operation to revoke the malicious vehicles in the system.
[0072] S5-1, When Drone D j Vehicle V detected i When the drone has abnormal behavior, the control center CC will j Sent in is the vehicle V i A set of pseudonyms, using the tracking key w to decrypt the vehicle V i The pseudonym of the vehicle is restored to its true identity, i.e. in is the vehicle V i Key, RID i is the vehicle V i The true identity of It is an XOR operation.
[0073] S5-2. Obtaining the real identity RID of the malicious vehicle i , the control center CC revokes the offline key f assigned to the malicious vehicle i , and also revokes the license of the malicious vehicle from the trust domain. At the same time, the control center CC calculates μ'=μ-c i Revoke the legitimate information ci associated with the malicious vehicle and randomly select a set of keys from the trust domain Update the new group key β'=κ'·μ' and D pub '=κ'·P and broadcast to drone D j And roadside units RSU. Effectively remove malicious vehicles.
[0074] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for Internet of Vehicles identity authentication and privacy protection based on federated learning and drones, characterized in that: The following steps are involved: The control center initializes the system, generates system public parameters, performs registration tasks for drones, vehicles, and roadside units, and generates offline keys to distribute to each vehicle; Generate the relevant keys for communication between the control center, drones, vehicles and roadside units based on the offline keys and system public parameters; The drone sends global model parameters to each vehicle in the coverage area. The vehicle trains local data to obtain local model parameters, signs the local model parameters according to the relevant key to generate a verification message and uploads it anonymously to the corresponding drone. The drone verifies the local model parameters according to the verification message, aggregates the verified local model parameters, and obtains the global model parameters until the training round ends. The control center tracks the real identity of the vehicle based on the global model parameters, system public parameters and related keys, and performs revocation operations if it is a malicious vehicle; The process of initializing the system and generating common system parameters includes: The control center selects security parameters to generate two prime numbers. The control center randomly selects a value in the multiplication group as the master key of the system, calculates the system public key based on the master key and the generator of the additive cyclic group, and selects another value in the multiplication group as the tracking key; obtains the master private key based on the master key and the tracking key; the control center selects five one-way hash functions, which combine elliptic curves, multiplication groups, additive cyclic groups, two prime numbers, system public keys and generators to obtain system public parameters; broadcasts the system public key to each vehicle, drone and roadside unit; The process of performing the registration task for drones, vehicles and roadside units includes: When the control center receives the drone identity, it sends the corresponding drone private key and drone public key to each drone, and selects a number of prime numbers in the multiplication group as offline keys for a number of vehicles in the drone coverage area. The control center sends the roadside unit private key and roadside unit public key to each roadside unit; The process of generating the relevant keys for communication between the control center, drones, vehicles and roadside units based on the offline keys and system public parameters includes: After receiving the real identity of the vehicle, the control center selects several random values, combines them with the generator to generate an identity set, performs hash processing on the identity elements in the identity set and the tracking key to obtain an identity key, encrypts the result of the XOR calculation of the real identity and the identity elements based on the identity key, obtains the pseudo identity set of the vehicle, and obtains the pseudo name of the vehicle based on the pseudo identity and the real identity; calculates the vehicle partial private key based on the system's master key, a part of the several random values and the elements in the vehicle's pseudo identity set after hash processing, and sends the vehicle partial private key and the vehicle's pseudo name to each vehicle; Each vehicle selects a secret value in the multiplication group as a vehicle secret private key, and calculates a vehicle public key based on the vehicle secret private key and a generator of the additive cyclic group; The control center constructs a trust domain based on the offline keys of several vehicles and the Chinese remainder theorem and calculates x i ·y i ≡1 mod f i , where f i is the vehicle V i Offline key, select c in the control center i =x i ·y i and where c i is the legal information, i∈[1,n], n is the number of vehicles; the control center randomly selects a set of keys from the trust domain Denote the multiplication group, and calculate the two components of the group public key β = κ·μ and D pub =κ·P, where P is the generator; the control center uses its own private key to pair β, D pub Sign the message with the timestamp T. Broadcast to vehicles and drones in the trust domain, where The control center uses its own private key pair (β||D pub ||T) is signed, || is a connection operation; The process of training local data and obtaining local model parameters includes: Using formula Train the local data, where is a global model parameter, α is the learning rate, which controls the step size of each update, and D i It is the vehicle data. is the loss function, X is a set of features, Y is the true value, is the model prediction value. When the objective function converges, the local model parameters are obtained. The process of signing the local model parameters according to the relevant key to generate the verification message includes: Each vehicle selects a value in the multiplication group and calculates U in combination with the generator. i , select any value in the pseudo name corresponding to the vehicle; Hash the vehicle's identity element, vehicle public key, and system public key to obtain the value The vehicle's identity elements, vehicle public key, local model parameters, timestamp and U i Perform hashing to obtain the value λ i ; Hash the vehicle's pseudo-identity and timestamp to obtain the value η i ; Based on a set of keys κ, the signature key is calculated using the following formula: in, is the partial private key of the vehicle, τ i is the secret value, κ is the group key; Based on the signature key using the formula Calculate the vehicle signature, where represents a multiplication group; The local model parameters are encrypted using the public key of the drone to obtain an encrypted ciphertext, a verification message is constructed based on the encrypted ciphertext, and the verification message is sent to the corresponding drone, wherein the verification message includes the ciphertext, the vehicle signature, an arbitrary value selected from the pseudonym, the vehicle public key, and a timestamp; The process of obtaining global model parameters includes: After receiving the verification message, the drone uses the drone private key to decrypt the encrypted ciphertext to obtain local model parameters; the integrity and authenticity of the local model parameters are verified, and the verified local model parameters are uploaded to the cluster head drone for aggregation. The cluster head drone uses its own private key to sign the global model parameters obtained by aggregation, and then broadcasts them to each drone in the coverage area. The integrity and authenticity verification methods include single message verification and message batch verification; The single message verification process includes: After receiving the verification message, the drone checks the validity of the timestamp in the verification message according to the assumed arrival time. If it is invalid, the message is discarded; if it is valid, the drone continues to verify and calculates And verify the equation Is it true? If the equality is true, the signature is valid and the local model parameters From a legitimate vehicle, otherwise, the corresponding local model parameters are discarded, where is an element in the identity set, is an element in the pseudo-identity set; Among them, V pub-i represents the vehicle public key, P pub Represents the system public key, T i Represents the timestamp, π i =λ i ·sgk i +u i , which is a component of the vehicle signature; The process of batch verification of messages includes: When the drone receives a set of verification messages from several vehicles in the coverage area, it checks the timestamp of each message; if they are all valid, it continues the verification, otherwise, it discards the message; using a set of indices v = {v1, v2, ..., v n }, where v i ∈[1,2 t ], t is an integer; drone D j Check the equation Is it true? If the equation is true, the signature is valid; The control center tracks the real identity of the vehicle based on the global model parameters, system public parameters and related keys. If it is a malicious vehicle, the process of performing the revocation operation includes: When the drone detects abnormal behavior of a vehicle, the control center decrypts the pseudonym of the vehicle sent by the drone through the tracking key, obtains the real identity of the vehicle, and revokes the offline key assigned to the corresponding vehicle based on the real identity; by calculating μ′=μ-c i Revoke legitimate information related to malicious vehicles c i , randomly select a set of keys from the trust domain According to β′=κ′·μ′ and D pub ′=κ′·P updates the group key and broadcasts it to the drones and roadside units to revoke the malicious vehicle.
