Method, device and storage medium for securely acquiring average speed of smart transportation vehicles based on ECC encryption
Through the ECC encryption algorithm, the vehicle calculates the cipher text and sends it to the fog node aggregation, and the management center decrypts the average speed to obtain, solving the privacy protection problem of the average speed of the vehicle in smart traffic and realizing the privacy protection of vehicle behavior analysis.
Patent Information
- Application Number
- CN202210469648.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-28
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2042-04-28
AI Technical Summary
The existing smart transportation plan does not involve the safe acquisition of the average speed of vehicles, making it difficult to effectively analyze the trajectory of human and vehicle behavior, affecting traffic planning and policy formulation.
Using the ECC encryption method, the elliptic curve and hash function are generated by the management center, the vehicle calculates the ciphertext and sends it to the fog node, the fog node verifies the signature and aggregates the ciphertext. The management center decrypts the average speed to achieve privacy protection.
Without leaking the speed information of the vehicle at each point in time, the average speed of the vehicle over multiple time periods is obtained, the vehicle user information is protected, and the privacy protection is provided without the need for a trusted third party.
Smart Images

Figure CN114900303B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information security technology and relates to a method, device and storage medium for securely obtaining the average speed of smart transportation vehicles based on ECC encryption. Background Art
[0002] Smart transportation is a key component of building a strong transportation nation and a key symbol of modern transportation. With the rapid development of information technology, smart transportation is experiencing greater development opportunities. Leveraging technologies such as big data, cloud services, and edge computing, it can provide parking big data analysis reports, staggered and shared parking solutions, and enable real-time regional parking guidance. This in turn serves to optimize regional dynamic and static traffic organization, analyze pedestrian and vehicle behavior trajectories, support transportation planning and policy development, and assess personal creditworthiness. Leveraging intelligent digital technologies, smart transportation can help reduce carbon emissions in the transportation industry and actively promote green production. Current smart transportation solutions do not address the safe acquisition of average vehicle speeds, hindering effective analysis of pedestrian and vehicle behavior trajectories and hindering transportation planning and policy development. Summary of the Invention
[0003] In view of the shortcomings of the prior art, the present invention provides a method, device and storage medium for securely acquiring the average speed of a vehicle based on ECC (elliptic curve encryption algorithm) encryption.
[0004] One aspect of the present invention provides a method for securely obtaining the average speed of intelligent transportation vehicles based on ECC encryption, comprising the following steps:
[0005] System initialization:
[0006] The management center generates an elliptic curve E(F p ), three generators G1, G2, G3, and two hash functions H2:{0,1} * →E(F p ),in is an integer between 1 and q-1.
[0007] Vehicle speed encryption:
[0008] Calculate the vehicle U at time t it Ciphertext and
[0009] Using the signature private key x it Calculate the public key Y it and signatures it ;
[0010] The ciphertext Signatures itAnd the current timestamp TS is sent to the fog node.
[0011] Fog node aggregation:
[0012] After receiving the data, the fog node checks whether the timestamp TS meets the requirements; if not, it requests vehicle U it Resend;
[0013] The fog node verifies whether the signature is valid;
[0014] The fog nodes aggregate the received ciphertexts.
[0015] Management Center Decryption:
[0016] Vehicle U it Calculate the aggregated result D within k time periods, and then send the aggregated result D to the management center;
[0017] The management center receives the aggregation result D and decrypts it to obtain the vehicle U it The sum of the speeds over k time periods and the average speed over k time periods.
[0018] In some embodiments:
[0019] Ciphertext The calculation formula is:
[0020] Ciphertext The calculation formula is:
[0021] where r it is vehicle U at time t it The random number selected, v it is vehicle U at time t it The speed of G is the parameter related to the public key.
[0022] In some embodiments:
[0023] The public key calculation formula is: Y it =x it G1;
[0024] The signature calculation formula is: it =x it G2+x it h it G3;
[0025] in TS is the timestamp.
[0026] In some embodiments:
[0027] Fog node utilization formula Verify whether the signature is valid, where k represents the number of time periods.
[0028] In some embodiments:
[0029] The fog node aggregates the received ciphertext to obtain:
[0030]
[0031] in
[0032] Another aspect of the present invention provides a device for safely obtaining the average speed of smart traffic vehicles based on ECC encryption, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for safely obtaining the average speed of smart traffic vehicles based on ECC encryption is implemented.
[0033] Another aspect of the present invention provides a computer-readable storage medium, which stores a computer program for executing a method for safely obtaining the average speed of smart transportation vehicles based on ECC encryption.
[0034] The present invention provides the following beneficial effects: It can obtain the average speed of a vehicle over k time periods without leaking the vehicle's speed information at each point in time. This prevents the leakage of vehicle user information and better protects the information of vehicle users. Furthermore, the present invention eliminates the need for a trusted third party, providing stronger privacy protection. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 Flow chart of the method of the present invention;
[0036] Figure 2 It is a structural diagram of the device of the present invention. DETAILED DESCRIPTION
[0037] like Figure 1 As shown, the embodiment of the present invention includes the following steps:
[0038] System initialization:
[0039] The management center generates an elliptic curve E(F p ), three generators G1, G2, G3, and two hash functions H2:{0,1} * →E(F p ),in is an integer between 1 and q-1, F p is a finite field.
[0040] Vehicle speed encryption:
[0041] Assume that there are n vehicles in the system, and each vehicle uses U i Indicates that vehicle U i The velocity at time t is represented by v it , the i-th vehicle at time t is represented as U it .
[0042] Vehicle U it Select random number Calculate ciphertext in Use your own signature private key x it Calculate the public key Y it =x it G1 and signature σ it =x it G2+x it h it G3, where the result of hashing the ciphertext and timestamp is
[0043] Then Sent to fog nodes through a secure channel, TS is the current timestamp, which can resist message replay attacks.
[0044] Fog node aggregation:
[0045] Fog node receives Then first check whether the timestamp TS meets the requirements. If not, request vehicle U it Resend.
[0046] Then the fog node uses the formula Verify that the signature is valid.
[0047] Then aggregate the received ciphertext to obtain:
[0048]
[0049] because The present invention can provide stronger privacy protection without the need for a trusted third party. In addition, even if the fog node obtains the ciphertext of each vehicle, since G is generated by vehicle U it Calculation is performed, so vehicle U it Speed v it It can be stored safely and cannot be accessed by anyone.
[0050] Management Center Decryption:
[0051] Vehicle U it calculate Then D is sent to the management center through a secret channel.
[0052] After receiving it, the management center uses D to decrypt it and obtain where sum vi It is vehicle U it The sum of the speeds at k time points is calculated using the formula ave vi =sum vi ÷k can get vehicle U it The average speed over k time periods.
[0053] The embodiments of the present invention can be applied to network devices. The embodiments can be implemented through software, hardware, or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the device where it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running it, wherein the computer program is used to execute the method determined by the above steps. From the hardware level, such as Figure 2 The figure shows the hardware structure of the device for safely acquiring the average speed of intelligent traffic vehicles based on ECC encryption of the present invention. Figure 2 In addition to the processor, network interface, memory, and non-volatile memory shown, the device may also generally include other hardware to facilitate expansion at the hardware level. Furthermore, the present application provides a computer-readable storage medium storing a computer program for executing the ECC-encrypted intelligent transportation vehicle average speed security method determined in the above steps.
[0054] For the embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The above-described device embodiments are merely illustrative and can be understood and implemented by those skilled in the art without creative work.
[0055] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only.
[0056] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements, but also other elements not expressly listed, or elements inherent to such process, method, commodity, or apparatus.
[0057] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A secure method for obtaining average speed of intelligent traffic vehicles based on ECC encryption, characterized by The method comprises the following steps: System initialization: The management center generates a level Elliptic curve , three generators , and two hash functions ,in is an integer between 1 and q-1; Vehicle speed encryption: Calculate the number of vehicles at time t Ciphertext and ; Using the signature private key Calculate the public key and signature ; The ciphertext 、 ,sign And the current timestamp TS is sent to the fog node; Fog node aggregation: After receiving the data, the fog node checks whether the timestamp TS meets the requirements; if not, it requests the vehicle Resend; The fog node verifies whether the signature is valid; The fog node aggregates the received ciphertext to obtain: ; Management Center Decryption: vehicle Calculate the aggregation results within k time periods , and then aggregate the results Send to the management center; in ; The management center receives the aggregation results After decryption, the vehicle is obtained The sum of the speeds in k time periods and the average speed in k time periods; Ciphertext The calculation formula is: ; Ciphertext The calculation formula is: ; The sum of the speeds in k time periods The calculation is as follows: ; in The vehicle at time t The random number selected, The vehicle at time t speed, are parameters related to the public key; The public key calculation formula is: ; 。 2. The method for securely obtaining average speed of intelligent transportation vehicles based on ECC encryption according to claim 1 is characterized in that: The signature calculation formula is: ; in .
3. The method for securely obtaining average speed of intelligent transportation vehicles based on ECC encryption according to claim 2, characterized in that: Fog node utilization formula Verify whether the signature is valid, where k represents the number of time periods.
4. The intelligent traffic vehicle average speed security acquisition device based on ECC encryption is characterized by: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for safely obtaining the average speed of an intelligent transportation vehicle based on ECC encryption as described in any one of claims 1 to 3 above is implemented.
5. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which is used to execute the ECC encryption-based method for safely obtaining the average speed of smart transportation vehicles as described in any one of claims 1-3.
Citation Information
Patent Citations
Traffic sensor network data transmission method and system based on hybrid encryption, and medium
CN112469003A
Federal learning-based privacy protection model aggregation system and method in Internet of Vehicles
CN113163366A