Search

CN-122028032-A - Data sharing method and system based on equality test

CN122028032ACN 122028032 ACN122028032 ACN 122028032ACN-122028032-A

Abstract

The invention provides a data sharing method and a system based on equality test, which relate to the technical field of vehicle networking data sharing, and the method comprises the steps of acquiring global public parameters, vehicle pseudonym information and vehicle private keys; the method comprises the steps of integrating a shared data message, the parameters and a private key to generate a trapdoor containing an authorized cloud server to execute an equality test and a message for encrypting the shared data, dividing the same group of messages into groups according to a receiving group pseudonym set corresponding to the message, executing the equality test on the same group of messages, removing repeated messages and storing the same group of messages, decrypting the message to be shared based on self pseudonym information, the private key and global public parameters by a receiver to obtain the shared data, adapting to a scene of multiple senders and multiple receivers, realizing safe retrieval of the encrypted data, removing duplication of the repeated data, considering the safety, the high efficiency and the privacy protection of data sharing, and meeting the real-time data sharing requirement of the Internet of vehicles.

Inventors

  • WANG WENCHONG
  • ZHANG QIANG
  • WANG CHUANSU
  • ZHANG OU
  • DING SHIYU
  • HUANG JIANXI
  • WANG XUJIAN
  • DING TAO

Assignees

  • 奇瑞汽车股份有限公司

Dates

Publication Date
20260512
Application Date
20260129

Claims (10)

  1. 1. A data sharing method based on equality test, comprising: Acquiring global public parameters, vehicle pseudonym information and vehicle private keys; Based on the shared data message, the vehicle pseudonym information, the global public parameter and the vehicle private key are integrated to generate a message comprising trapdoors for authorizing the cloud server equality test and encrypting the shared data; Dividing the group based on the receiving group kana set corresponding to the message, then carrying out equality test on the message belonging to the same group, and storing the repeated message after eliminating; And decrypting the issued message to be shared based on the vehicle pseudonym information, the vehicle private key and the global public parameter to obtain shared data.
  2. 2. The method of claim 1, wherein the step of integrating the global public parameter and the vehicle private key based on the shared data message to generate a message including a trapdoor for authorizing a cloud server equality test and for encrypting shared data comprises: Generating a ciphertext for encrypting the shared data based on the shared data message, the vehicle pseudonym information, the global public parameter and the vehicle private key; And integrating the vehicle pseudonym information and the ciphertext according to the global public parameters to generate a message comprising trapdoors for authorizing the cloud server equality test.
  3. 3. The method of claim 2, wherein the step of generating ciphertext for encrypting shared data based on the shared data message, the vehicle pseudonym information, the global public parameter, and the vehicle private key comprises: When the data needs to be shared, a pseudonym set of a data receiving group corresponding to the shared data message and the vehicle pseudonym information is determined; Based on the first true random number generated by the vehicle-mounted quantum random number generator, the shared data message, the pseudonym set of the data receiving group, the global public parameter and the vehicle private key calculate ciphertext of each encryption parameter comprising the shared data.
  4. 4. The method of claim 2, wherein the step of integrating the vehicle pseudonym information and the ciphertext to generate a message including trapdoors for authorizing cloud server equality testing based on the global public parameter comprises: Generating trapdoors based on the vehicle pseudonym information and a second true random number corresponding to a main private key in the global public parameter, wherein the trapdoors are authorization credentials for testing the equality of the cloud server; And integrating the received group kana set corresponding to the vehicle kana information and the ciphertext into a message according to the trapdoor, and uploading the message to the cloud server.
  5. 5. The method of claim 1, wherein the step of dividing the group based on the set of receiving group pseudonyms corresponding to the message, performing an equality test on the message belonging to one group, and performing storage and transmission after eliminating the repeated message comprises the steps of: Dividing the messages with the same receiving group pseudonym set into a group according to the receiving group pseudonym set corresponding to each message; if only one message exists in the group, storing the message; And if a plurality of messages exist in the group, extracting ciphertext in each message according to the trapdoor to perform equality test, and selecting a unique message for each test result to store.
  6. 6. The method of claim 1, wherein prior to the step of decrypting the stored and delivered message based on the vehicle pseudonym information, the vehicle private key and the global public parameter to obtain shared data, the method further comprises: and adjusting the encryption parameters of the ciphertext in the stored message based on the identity set to be revoked and the global public parameters, which are synchronized from the trusted authority, so as to obtain the message to be shared after the user to be revoked is removed.
  7. 7. The method of claim 1, wherein the step of obtaining global public parameters, vehicle pseudonym information, and vehicle privacy key comprises: deriving based on a security parameter corresponding to a current Internet of vehicles data sharing scene and the maximum number of data receivers to determine a global public parameter, wherein the global public parameter comprises a bilinear pair, a group generation element, a preset parameter and a hash function; and determining the vehicle pseudonym information and the vehicle private key based on the vehicle unique identity information generated by the global public parameters.
  8. 8. A data sharing system based on equality testing, comprising: the acquisition module acquires global public parameters, vehicle pseudonym information and vehicle private keys; the generation module is used for integrating and generating a trapdoor for authorizing the cloud server equality test and a message for encrypting shared data based on the shared data message, the vehicle pseudonym information, the global public parameter and the vehicle private key; The test module is used for dividing the received group pseudonym sets corresponding to the messages into groups, then carrying out equality test on the messages belonging to the same group, and storing the repeated messages after eliminating the repeated messages; And the sharing module decrypts the issued message to be shared based on the vehicle pseudonym information, the vehicle private key and the global public parameter to obtain shared data.
  9. 9. An electronic device comprising a memory, a processor and a program stored on the memory and capable of running on the processor, the processor implementing the method of any one of claims 1 to 7 when executing the program.
  10. 10. A computer readable storage medium, characterized in that the computer program is stored in the readable storage medium, which computer program, when executed, implements the method of any of claims 1-7.

Description

Data sharing method and system based on equality test Technical Field The invention relates to the technical field of internet of vehicles data sharing, in particular to a data sharing method and system based on equality test. Background With the rapid development of intelligent transportation systems and internet of vehicles (V2X) technology, the cooperative work among vehicles, roadside units (RSUs) and cloud servers has become a key to improving road safety and traffic efficiency. In the prior art, vehicles and RSU share traffic data, such as vehicle position, speed, road condition, emergency and other information, in real time through a wireless communication technology, so as to realize functions of dynamic path planning, collision early warning, traffic flow optimization and the like. The existing internet of vehicles data sharing scheme is limited to communication modes of single sender and single receiver or single sender and multiple receivers, is difficult to adapt to requirements that vehicles and RSUs synchronize a large amount of data to a cloud server in an actual scene and are distributed to multiple receivers efficiently, and therefore data redundancy and transmission efficiency are low, in the aspect of data security, public key and keyword search encryption (PKKS) only support encryption ciphertext search under the same keyword, the internet of vehicles can not adapt to scenes that different users of the internet of vehicles encrypt and upload data by using different public keys, public key encryption (PKEET) with equality test solves the problem of searching across public keys, but calculation cost and security of the internet of vehicles still have optimized space, and in the aspect of malicious node revocation, the existing scheme is independent of block chain technology, though reliable revocation can be achieved, the problems of overlarge calculation amount and system cost exist, and communication efficiency is affected. In summary, in the intelligent transportation and internet of vehicles scenarios, efficient data sharing between multiple senders and multiple receivers, secure retrieval of encrypted data, and quick revocation of malicious nodes remain a technical challenge to be solved. Disclosure of Invention The invention aims to provide a data sharing method and system based on equality test, so as to solve the technical problems of sharing safety and low sharing efficiency under the condition of multiparty sharing. In a first aspect, the present invention provides a data sharing method based on equality test, including: Acquiring global public parameters, vehicle pseudonym information and vehicle private keys; Based on the shared data message, the vehicle pseudonym information, the global public parameter and the vehicle private key are integrated to generate a message comprising trapdoors for authorizing the cloud server equality test and encrypting the shared data; Dividing the group based on the receiving group kana set corresponding to the message, then carrying out equality test on the message belonging to the same group, and storing the repeated message after eliminating; And decrypting the issued message to be shared based on the vehicle pseudonym information, the vehicle private key and the global public parameter to obtain shared data. In an alternative embodiment, based on the shared data message, the step of integrating the global public parameter and the vehicle private key to generate a message including trapdoors for authorizing cloud server equality testing and encrypting shared data includes: Generating a ciphertext for encrypting the shared data based on the shared data message, the vehicle pseudonym information, the global public parameter and the vehicle private key; And integrating the vehicle pseudonym information and the ciphertext according to the global public parameters to generate a message comprising trapdoors for authorizing the cloud server equality test. In an alternative embodiment, the step of generating ciphertext for encrypting the shared data based on the shared data message, the vehicle pseudonym information, the global public parameter and the vehicle private key includes: When the data needs to be shared, a pseudonym set of a data receiving group corresponding to the shared data message and the vehicle pseudonym information is determined; Based on the first true random number generated by the vehicle-mounted quantum random number generator, the shared data message, the pseudonym set of the data receiving group, the global public parameter and the vehicle private key calculate ciphertext of each encryption parameter comprising the shared data. In an alternative embodiment, the step of integrating the vehicle pseudonym information and the ciphertext to generate a message including trapdoors for authorizing cloud server equality testing according to the global public parameter includes: Generating trapdoors based on the vehicle pseudonym inform