Certificateless cross-domain identity authentication method, system, device and medium
Through the certificate-less cross-domain identity authentication method, the alliance chain is used to verify the vehicle identity in the Internet of Vehicles system, which solves the security and efficiency issues of cross-domain identity authentication in the Internet of Vehicles system and achieves lightweight authentication process and efficient identity verification. .
Patent Information
- Application Number
- CN202410920202.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-11
AI Technical Summary
Cross-domain identity authentication in existing Internet of Vehicles systems has problems such as single point of failure, cumbersome management processes, high communication and computing costs, and it is difficult for distributed authentication methods to balance security and privacy protection.
Using a certificate-less cross-domain identity authentication method, the key generation center generates system parameters within the integer multiplication cycle group and uploads them to the alliance chain. The node server is used in combination with the alliance chain to verify the charging pile request message, provide instant transaction services, and ensure vehicle authentication. safety and efficiency.
It avoids cumbersome certificate management requirements, making the authentication process lighter and more efficient. It also ensures user anonymity, message integrity and attack resistance, and has high security and scalability.
Smart Images

Figure CN118764258A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication and Internet of Things security, and specifically to a certificateless cross-domain identity authentication method, system, device and medium. Background Art
[0002] Vehicle-to-Grid (V2G) technology can combine electric vehicles as energy storage units with smart grids, playing an important role in the development of domestic energy interconnection. As more and more electric vehicles join the vehicle networking system, the problem of user privacy leakage in an open network environment becomes more and more serious. At the same time, the high mobility of vehicles also brings a massive demand for cross-domain identity authentication. Most of the current authentication schemes are based on public key cryptography, which has the disadvantages of single point failure, cumbersome management process, and high communication and computing costs; while the distributed authentication method has the risk of privacy leakage and it is difficult to take into account security at the same time. Under this trend, how to ensure the security and efficiency of cross-domain identity authentication in the vehicle networking system is an urgent problem to be solved. Summary of the invention
[0003] In order to solve the problem of how the existing technology can ensure the security and efficiency of cross-domain identity authentication in the Internet of Vehicles system, this application proposes a certificateless cross-domain identity authentication method, including:
[0004] The key generation center selects random numbers in the integer multiplication cycle group and combines them with the generator to calculate the system parameters and upload them to the alliance chain;
[0005] When a registered vehicle is charged or discharged in other trust domains outside the registered trust domain, a charging pile request message is generated according to the system parameters and sent to the node server of the other trust domain;
[0006] The node server is used to verify the charging pile request message in combination with the system parameters in the alliance chain to obtain a successfully authenticated vehicle;
[0007] The node server is used to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle.
[0008] Preferably, the method of selecting a random number in an integer multiplication cycle group by a key generation center and combining it with a generator to calculate the system parameters and upload them to the alliance chain includes:
[0009] Using the key generation center, points on the elliptic curve in a finite field and points at infinity are selected to form an additive cyclic group of an elliptic curve of order q, and a generator, a first hash function, a second hash function, and a third hash function are determined;
[0010] The key generation center selects a random number in the integer multiplication cyclic group as the system private key of the key generation center, and calculates the system public key of the key generation center in combination with the generator;
[0011] The key generation center selects a random number in the integer multiplication cycle group as the private key of the node server registered in the trust domain, and calculates the public key of the node server registered in the trust domain in combination with the generator;
[0012] The key generation center selects random numbers in the integer multiplication cycle group as the private keys of the node servers in other trust domains, and calculates the public keys of the node servers in other trust domains in combination with the generator;
[0013] The key generation center is used to publish and upload to the alliance chain the addition cycle group, generator, first hash function, second hash function, third hash function, system public key of the key generation center, public key of the node server of the registered trust domain, and public key of the node server of other trust domains;
[0014] Among them, the system parameters include: an additive cycle group, a generator, a first hash function, a second hash function, a third hash function, a system public key of a key generation center, a public key of a node server of a registered trust domain, and a public key of a node server of other trust domains. One or more of the public keys.
[0015] Preferably, before the registered vehicle is charged and discharged in other trust domains outside the registered trust domain, the process further includes: a vehicle registration process; the vehicle registration process includes:
[0016] When the vehicle is not registered, the vehicle pseudonym identity is calculated by using the random number in the integer multiplication cyclic group selected by the unregistered vehicle and the generator, and the real vehicle identity and the vehicle pseudonym identity are sent to the node server of the registration trust domain through a secure channel;
[0017] Using the node server of the registered trust domain to verify whether the real identity of the vehicle is legal and whether the pseudonymous identity of the vehicle in the alliance chain is unique;
[0018] The node server of the registered trust domain is used to calculate the encrypted pseudonym of the vehicle according to the real identity of the vehicle, the domain identifier to which the vehicle belongs, the private key of the node server of the registered trust domain, the system public key of the key generation center and the first hash function;
[0019] The node server of the registration trust domain generates vehicle registration information according to the real identity of the vehicle, the pseudonym of the vehicle, the encrypted pseudonym of the vehicle and the identifier of the domain to which the vehicle belongs, and stores it in a local database; generates vehicle identity information according to the pseudonym of the vehicle, the encrypted pseudonym of the vehicle and the identifier of the domain to which the vehicle belongs, and sends it to the vehicle through a secure channel for storage;
[0020] The node server of the registered trust domain is used to issue authentication tokens to the vehicle as source transactions and upload them to the state database of the alliance chain.
[0021] Preferably, when a registered vehicle is charged or discharged in other trust domains outside the registered trust domain, a charging pile request message is generated according to the system parameters and sent to a node server of the other trust domain, including:
[0022] When the registered vehicle initiates a charging and discharging application to a charging pile in another trust domain, an encryption calculation is performed according to the vehicle encryption pseudonym, the public key of the node server in another trust domain, the second hash function and the timestamp to obtain a transaction index;
[0023] Generate input set information of new transaction based on output set information of source transaction using registered vehicles;
[0024] Using the registered vehicles to generate an aggregate message according to the system parameters and sending it to charging piles in other trust domains;
[0025] The charging pile is used to generate charging pile request information according to the aggregated message and send the charging pile request information to the node server.
[0026] Preferably, the step of using the registered vehicles to generate an aggregate message according to the system parameters and sending the aggregate message to charging piles in other trust domains includes:
[0027] The random number in the integer multiplication cyclic group is selected by using the registered vehicles and combined with the generator to calculate the random identification;
[0028] Using a registered vehicle, generating an identity information hash value calculated locally by the vehicle according to the charge and discharge request information to be signed, the vehicle identity information, the vehicle public key, the random identifier, the third hash function and the timestamp;
[0029] Generate partial signature information using the registered vehicle’s identity information hash value, random number, and vehicle private key calculated locally;
[0030] Generate complete signature information based on partial signature information and random identifier using a registered vehicle;
[0031] Using registered vehicles, an aggregate message is generated based on vehicle identity information, charging and discharging request information to be signed, transaction information, vehicle public key and timestamp, and sent to charging piles in other trust domains.
[0032] Preferably, the using the charging pile to generate charging pile request information according to the aggregate message and sending it to the node server includes:
[0033] The charging pile detects whether the timestamp meets the real-time requirement according to the aggregated message, and discards the message if it does not meet the requirement; otherwise, a charging pile request message is generated according to the aggregated message, the session key between the vehicle and the node server, and the encryption algorithm agreed upon by the charging pile and the node server;
[0034] Generate a first session verification code using the charging pile according to the session key between the charging pile and the node server, the charging pile request message, the random number selected by the charging pile, and the timestamp;
[0035] The charging pile is used to send a charging pile request message, a first session verification code, a random number selected by the charging pile, and a timestamp to the node server.
[0036] Preferably, the step of verifying the charging pile request message by using the node server in combination with the system parameters in the alliance chain to obtain a successfully authenticated vehicle includes:
[0037] The node server is used to detect whether the timestamp in the charging pile request message meets the real-time requirement. If not, the message is discarded; otherwise, a second session verification code is generated according to the charging pile request message, the session key between the charging pile and the node server, and the random number selected by the charging pile;
[0038] The node server is used to determine whether the second session verification code and the first session verification code are equal. If they are not equal, the charging pile identity authentication fails; otherwise, the charging pile identity authentication passes, and the charging pile request message is decrypted to obtain the vehicle identity information, the charging and discharging request message to be signed, the complete signature information, the vehicle public key and the timestamp;
[0039] The node server is used to calculate the identity information hash value remotely calculated by the node server according to the vehicle identity information, the charge and discharge request message to be signed, the vehicle public key, the random identifier, the timestamp and the third hash function;
[0040] The node server is used to determine whether the calculation result of the partial signature information and the generator is equal to the calculation result of the identity information hash value, the random identifier and the vehicle public key remotely calculated by the node server; if they are not equal, the signature authentication fails; otherwise, the signature authentication passes, and a first hash value is calculated according to the vehicle public key and the first hash function;
[0041] The node server is used to compare the first hash value with the hash value in the source transaction output set information. If they are not equal, the hash value verification fails; otherwise, the hash value verification passes and the charging and discharging application of the registered vehicle is accepted.
[0042] Preferably, the using the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle includes:
[0043] Generate instant transactions using the node server and issue a certain number of authentication tokens to successfully authenticated vehicles;
[0044] The node server is used to broadcast the instant transaction to the charging piles in the area, and provide charging and discharging services to the successfully authenticated vehicles;
[0045] The node server is used to upload the instant transaction to the state database of the alliance chain.
[0046] Preferably, it also includes:
[0047] Using the successfully authenticated vehicles to generate an aggregated transaction based on the instant transaction, and sending it to the node server for authentication;
[0048] The node server is used to verify the identity of the charging pile, and after the verification is successful, a session key between the charging pile and the node server is selected.
[0049] Preferably, it also includes:
[0050] Using an unregistered vehicle, a random number in an integer multiplication cyclic group is selected as the vehicle private key, and the vehicle public key is calculated by combining the generator and saved in the vehicle's tamper-proof onboard unit;
[0051] The node server is used to verify the identity of the charging pile, and after the verification is successful, a security key is selected as the session key between the charging pile and the node server.
[0052] Based on the same application concept, this application also proposes a certificateless cross-domain identity authentication system, including:
[0053] The initialization module is used to select random numbers in the integer multiplication cycle group through the key generation center and combine them with the generator to calculate the system parameters and upload them to the alliance chain;
[0054] A cross-domain charging and discharging application module, which is used to generate a charging pile request message according to the system parameters and send it to the node server of the other trust domain when the registered vehicle is charged and discharged in other trust domains outside the registered trust domain;
[0055] An authentication module, used to verify the charging pile request message by using the node server in combination with the system parameters in the alliance chain to obtain a successfully authenticated vehicle;
[0056] The charging and discharging module is used to use the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle.
[0057] On the other hand, the present application also proposes an electronic device, comprising: at least one processor and a memory; the memory and the processor are connected via a bus;
[0058] The memory is used to store one or more programs;
[0059] When the one or more programs are executed by the at least one processor, a certificateless cross-domain identity authentication method as described above is implemented.
[0060] On the other hand, the present application also proposes a readable storage medium on which an execution program is stored. When the execution program is executed, a certificateless cross-domain identity authentication method as described above is implemented.
[0061] Compared with the prior art, the beneficial effects of this application are:
[0062] A certificateless cross-domain identity authentication method, system, device and medium, comprising: selecting a random number in an integer multiplication cycle group through a key generation center and combining it with a generator to calculate system parameters, and uploading them to a consortium chain; when a registered vehicle is charged and discharged in other trust domains outside the registered trust domain, generating a charging pile request message according to the system parameters and sending it to the node server of the other trust domain; using the node server to verify the charging pile request message in combination with the system parameters in the consortium chain to obtain a successfully authenticated vehicle; using the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle; the present application avoids the cumbersome certificate management requirements, and the authentication process is more lightweight and the authentication efficiency is higher; the cross-domain authentication of the present application can simultaneously ensure the anonymity, message integrity and unlinkability of the user, and can resist common attacks such as replay attacks and tampering attacks, and has high security; the consortium chain of the present application combines the anti-tampering advantages of blockchain technology, and can efficiently trace the identity of malicious vehicles;
[0063] The aggregated transaction update of the present application has high scalability. When the number of verifications is increased, the storage capacity of the blockchain database will not be significantly changed, and the transaction efficiency can be maintained at a relatively stable level. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 This is a flow chart of a certificateless cross-domain identity authentication method for this application;
[0065] Figure 2 This is a model diagram of a certificateless cross-domain identity authentication system based on alliance chain transactions for the Internet of Vehicles system of this application;
[0066] Figure 3 A model diagram for users to generate instant transactions based on source transactions in the alliance chain-based transaction process of this application;
[0067] Figure 4 This is a flowchart of the transaction authentication phase in the cross-domain identity authentication of this application;
[0068] Figure 5 This is a result diagram of a certificateless cross-domain identity authentication system for this application;
[0069] Figure 6 A schematic diagram of an electronic device of the present application. DETAILED DESCRIPTION
[0070] In view of the problem that it is difficult to strike a balance between security and efficiency in cross-domain identity authentication of the Internet of Vehicles system, this application proposes a certificateless cross-domain identity authentication method, which can have a high authentication efficiency while protecting user privacy and security, so as to adapt to the complex and changeable cross-domain identity authentication requirements in the open network environment of the Internet of Vehicles system. This application includes sub-steps such as system initialization, registration phase, new transaction generation, transaction authentication and transaction phase, which can ensure the anonymity, message integrity and unlinkability of users, and can resist common network attacks such as replay attacks and tampering attacks, while ensuring security and having a high authentication efficiency. At the same time, combined with the advantages of blockchain technology, it can achieve the traceability of malicious users and the scalability of authentication schemes, so as to adapt to the complex and changeable cross-domain identity authentication requirements in the open network environment of the Internet of Vehicles system. In order to better understand this application, the content of this application is further explained below in conjunction with the drawings and embodiments of the specification.
[0071] Embodiment 1:
[0072] A certificateless cross-domain identity authentication method, the specific process is as follows Figure 1 As shown, including:
[0073] Step 1: The key generation center selects random numbers in the integer multiplication cycle group and combines them with the generator to calculate the system parameters and upload them to the alliance chain;
[0074] Step 2: when a registered vehicle is charged or discharged in another trust domain outside the registered trust domain, a charging pile request message is generated according to the system parameters and sent to a node server in the other trust domain;
[0075] Step 3, using the node server in combination with the system parameters in the alliance chain to verify the charging pile request message, and obtain the successfully authenticated vehicle;
[0076] Step 4: Use the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle.
[0077] In step 1, the key generation center selects random numbers in the integer multiplication cycle group and combines them with the generator to calculate the system parameters, and uploads them to the alliance chain, including:
[0078] Key generation center initialization: The key generation center defines an elliptic curve in a finite field, and forms an elliptic curve additive cycle group of order q by the points on the elliptic curve and the points at infinity, and determines its generator; then the key generation center randomly selects the first hash function, the second hash function and the third hash function for subsequent authentication.
[0079] The key generation center selects a random number in the integer multiplication cyclic group as the system private key of the key generation center, and calculates the corresponding system public key of the key generation center in combination with the generator.
[0080] The node server in the trust domain selects a random number in the integer multiplication cycle group as the private key of the node server, and calculates the corresponding public key of the node server in combination with the generator; similarly, the node servers in other trust domains also select random numbers as the private keys of the node servers and calculate the public keys of the node servers.
[0081] The system publishes parameters including the additive cycle group, generator, first hash function, second hash function, third hash function, system public key of the key generation center, public key of the node server, etc., and uploads them to the alliance chain.
[0082] Before step 2, the process also includes: a vehicle registration process, wherein the vehicle registration process specifically includes:
[0083] Select any trust domain as the registration trust domain, register in the trust domain and apply for a pseudonym:
[0084] The real identity of the vehicle is the unique identity of the vehicle or the equipment identification code. A random number in the integer multiplication cycle group is selected and combined with the generator to calculate the vehicle pseudonym identity. Then {real identity of the vehicle, pseudonym identity of the vehicle} is sent to the node server of the registered trust domain through a secure channel.
[0085] The node server of the registered trust domain verifies the legitimacy of the real identity of the vehicle and verifies the uniqueness of the vehicle pseudonym in the alliance chain status database, and then calculates the encrypted pseudonym of the vehicle based on the real identity of the vehicle, the domain identifier to which the vehicle belongs, the public key of the node server of the registered trust domain, the system public key of the key generation center and the first hash function.
[0086] The node server of the registration trust domain saves the vehicle's registration information {vehicle real identity, vehicle pseudonym identity, vehicle encrypted pseudonym, vehicle domain identifier} in a local database, and sends the vehicle identity information {vehicle pseudonym identity, vehicle encrypted pseudonym, vehicle domain identifier} to the vehicle through a secure channel, and the vehicle saves it in the tamper-proof on-board unit OBU.
[0087] The node server of the registered trust domain issues an authentication token to the vehicle as a source transaction through a registration transaction to initialize the user's authentication authority. The initialized source transaction is uploaded to the alliance chain state database by the node server of the registered trust domain.
[0088] The vehicle selects a random number in the integer multiplication cyclic group as the vehicle private key, and calculates the corresponding vehicle public key in combination with the generator P, and then saves {vehicle public key, vehicle private key} in the tamper-proof on-board unit OBU.
[0089] The charging piles in other trust domains send their identity to the node servers in other trust domains. After passing the registration verification, the node server selects a secure key as the session key between the charging pile and the node server, and then saves {charging pile identity, session key between the charging pile and the node server} in the local database, and sends the session key to the charging pile through a secure channel. After receiving it, the charging pile saves it in a secure storage device.
[0090] In step 2, when a registered vehicle is charged or discharged in other trust domains outside the registered trust domain, generating a charging pile request message according to the system parameters and sending it to a node server in the other trust domain specifically includes:
[0091] When a registered vehicle initiates a charging and discharging application to a charging pile in another trust domain, an encryption calculation is performed based on the vehicle's encrypted pseudonym, the public key of the node server in the other trust domain, and the timestamp to obtain the transaction index.
[0092] Based on the output set information in the source transaction, the input set information in the new transaction is generated.
[0093] The vehicle selects a random number within the integer multiplication cyclic group and calculates a random identifier in combination with the generator. It then performs encryption calculation based on the charge and discharge request message to be signed, the vehicle identity information, the vehicle public key, the vehicle private key, and the timestamp to obtain the complete signature information.
[0094] The vehicle sends the aggregated message {vehicle identity information, charging and discharging request information to be signed, vehicle transaction information, vehicle public key, timestamp} to the charging pile, where the vehicle's complete signature information is included in the latest input set of vehicle transaction information;
[0095] The charging pile first checks whether the timestamp meets the real-time requirement. If not, the message is discarded. Then, a request message is generated according to the encryption algorithm agreed upon by the charging pile and the node server, and the first session verification code is generated through the message authentication code verification mechanism, session key and random number selected by the charging pile and the node server. Finally, the charging pile sends {charging pile request message, first session verification code, random number selected by the charging pile, timestamp} to the node servers in other trust domains.
[0096] In step 3, the node server is used to verify the charging pile request message in combination with the system parameters in the alliance chain, and the vehicle successfully authenticated specifically includes:
[0097] The node servers of other trust domains first check whether the timestamp meets the real-time requirement. If not, the message is discarded. Then, the second session verification code is recalculated based on the message authentication code verification mechanism, session key, charging pile request message and random number agreed upon by the charging pile and the node server, and compared with the first session verification code. If they are not equal, the charging pile identity authentication fails, and the node servers of other trust domains report the error to the key generation center.
[0098] The node servers in other trust domains decrypt the charging pile request message to obtain the plain text, and then perform signature verification in the same way as the vehicle generates the signature based on the decrypted {vehicle identity information, charging and discharging request information to be signed, complete signature information, vehicle public key, timestamp} information.
[0099] After the signature verification is passed, the node servers in other trust domains confirm the source transaction information of the vehicle by retrieving the alliance chain status database based on the vehicle transaction information.
[0100] The node servers in other trust domains use a hash function to calculate the hash value of the vehicle public key contained in the instant transaction input information, and compare it with the hash value in the source transaction output information corresponding to the instant transaction. If the two are equal, the hash value verification is passed.
[0101] After the above conditions are met, the transaction authentication is successful and the vehicle's charge and discharge request message is accepted.
[0102] Step 4, using the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle specifically includes:
[0103] The node servers of other trust domains generate an instant transaction locally and issue a certain number of authentication tokens to vehicles that have successfully been authenticated. Correspondingly, if the vehicle authentication fails or contains malicious request information, a certain number of authentication tokens will be deducted based on the degree of malice. Then, the node servers of other trust domains use the hash value of the vehicle public key and the number of authentication tokens issued to construct the output of the instant transaction.
[0104] The node servers in other trust domains send the real-time transaction information to the charging piles in the area and upload the real-time transaction information to the alliance chain status database; the charging piles broadcast the real-time transaction in the management area and provide charging and discharging services to the vehicles.
[0105] The vehicle generates an aggregate transaction, constructs the input information of the aggregate transaction based on other transactions containing authentication tokens, and constructs the output information of the aggregate transaction based on the local key pair {vehicle public key, vehicle private key} stored in the tamper-proof on-board unit OBU; the vehicle then sends the aggregated transaction to the node server in other trust domains for transaction verification.
[0106] After the temporary transaction generated by the vehicle is verified by the aggregation and node server, the aggregated transaction will be defined as the latest source transaction, and the node servers of other trust domains will make corresponding updates to the vehicle's transaction information in the alliance chain state database; the vehicle can further generate a latest instant transaction based on the updated source transaction for the next cross-domain identity authentication process or authentication token aggregation transaction process.
[0107] This application has the following advantages: 1) Compared with the traditional certificate-based authentication mode, this certificateless authentication scheme avoids the cumbersome certificate management requirements, the authentication process is more lightweight, the authentication efficiency is higher, and the cryptographic computational overhead is lower. 2) This scheme comprehensively considers the open network environment in the cross-domain authentication scenario. The designed authentication process can simultaneously ensure the user's anonymity, message integrity, and unlinkability, and can resist common attacks such as replay attacks and tampering attacks. It has high security and combines the anti-tampering advantages of blockchain technology to efficiently trace the identity of malicious vehicles. 3) This authentication scheme has high scalability. Through the transaction update mechanism, the storage capacity of the blockchain database will not be significantly changed when the number of verifications is increased, and the transaction efficiency can be maintained at a relatively stable level.
[0108] Embodiment 2:
[0109] Select trust domain A as the registration trust domain and trust domain B as other trust domains; vehicles registered in trust domain A apply for charging and discharging operations in trust domain B. The system includes alliance chain, node server GS, key generation center KGC, charging pile CS, electric vehicle EV and other units. Figure 2 As shown in the figure, and the node server, key generation center and charging pile are completely trusted, a certificateless cross-domain identity authentication method is described in detail, including:
[0110] Step 1: The key generation center selects random numbers in the integer multiplication cycle group and combines them with the generator to calculate the system parameters and upload them to the alliance chain;
[0111] Step 2: when a registered vehicle is charged or discharged in another trust domain outside the registered trust domain, a charging pile request message is generated according to the system parameters and sent to a node server in the other trust domain;
[0112] Step 3, using the node server in combination with the system parameters in the alliance chain to verify the charging pile request message, and obtain the successfully authenticated vehicle;
[0113] Step 4: Use the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle.
[0114] The vehicle registered in trust domain B is an EV B .
[0115] In step 1, the key generation center selects random numbers in the integer multiplication cycle group and combines them with the generator to calculate the system parameters, and uploads them to the alliance chain, including:
[0116] The key generation center KGC defines the elliptic curve E:y in a finite field 2 =x 3 +Ax+B mod p, where A,B∈Z p ; Z p is a finite field whose number of elements is the largest prime number p, representing the set of integers modulo p; and satisfies 4A 3 +27B 2 ≠0, the points on the elliptic curve E and the points at infinity form an elliptic curve additive cyclic group G of order q, whose generator is P, p is the first largest prime number, and q is the second largest prime number.
[0117] The key generation center KGC randomly selects three secure hash functions, which are the first hash function H1: Second hash function H2: The third hash function H3:
[0118] The key generation center KGC selects the integer multiplication cyclic group A random number in the key generation center is used as the system private key Combined with the generator P, the system public key PK of the key generation center is calculated KGC =SK KGC ·P.
[0119] The subscript A or B of each unit of the node server GS, key generation center KGC, charging pile CS, and electric vehicle EV represents the trust domain to which it belongs.
[0120] Node server GS of trust domain A A Select the cyclic group of integer multiplication A random number in the private key of the node server in trust domain A Combined with generator P, the public key of the node server in trust domain A is calculated Similarly, the node server GS of trust domain B B Also select a random number to generate the system private key And calculate the public key
[0121] System Published Parameters And upload it to the alliance chain.
[0122] Before step 2, the process also includes: a vehicle registration process, wherein the vehicle registration process specifically includes:
[0123] Vehicle EV A Register in Trust Domain A and apply for a vehicle pseudonym identity:
[0124] Vehicle EV A The real identity of the vehicle is It selects the cyclic group of integer multiplication A random number within Generate vehicle pseudonym ID p ′ seudo = r·P, then {ID real ,ID p ′ seudo}Sent to the node server GS of trust domain A through a secure channel A .
[0125] Node server GS of trust domain A A Check the vehicle’s real ID real The legitimacy of the vehicle and the pseudonymous ID of the vehicle are verified in the alliance chain status database p ′ seudo The uniqueness of the vehicle is then calculated Among them, F A is the domain identifier of the vehicle, and H1 is the first hash function.
[0126] Node server GS of trust domain A A Register the information {ID real ,ID p ′ seudo ,ID pseudo ,F A}Save it in the local database and save the vehicle identity information ID EVA ={ID p ′ seudo , ID pseudo , F A}Sent to the vehicle EV via a secure channel A , Vehicle EVA It is stored in the tamper-proof on-board unit OBU.
[0127] Node server GS of trust domain A A Through a registration transaction, the vehicle EV A Issue authentication tokens as source transactions to initialize the user's authentication authority. The initialized source transaction is issued by the node server GS of the trust domain A. A Upload to the alliance chain status database.
[0128] Vehicle EV A Select the cyclic group of integer multiplication A random number within As the vehicle private key, and calculate PK EVA =SK EVA P as its corresponding public key, and then {SK EVA ,PK EVA}Stored in the tamper-proof on-board unit OBU.
[0129] Charging pile CS in trust domain B B Identify Sent to the node server GS of trust domain B B After passing the registration verification, the node server GS of the trust domain B B Choose a secure key As charging pile CS B With node server GS B The session key is then The data is saved in the local database and the charging pile CS is transmitted through a secure channel. B With node server GS B Session key Sent to the node server GS of trust domain B B , the node server GS of trust domain B B Received the charging pile CS B With node server GS B Session key Then save it in a secure storage device.
[0130] In step 2, when a registered vehicle is charged or discharged in other trust domains outside the registered trust domain, generating a charging pile request message according to the system parameters and sending it to a node server in the other trust domain specifically includes:
[0131] When the vehicle EV A To the charging pile CS in trust domain B B When a charge / discharge application is initiated, the vehicle EV A Get the transaction index through encryption calculation Where IDpseudo is the encrypted pseudonym for the vehicle, H2 is the second hash function, and t is the timestamp.
[0132] Vehicle EV A Generate the input set information in the new transaction based on the output set information in the source transaction ′ ,like Figure 3 As shown in the figure. Input N is the input set information of the source transaction, and output N is the output set information of the source transaction. ′ is the input set information of the instant transaction, output N ′ Output collection information for instant transactions.
[0133] Vehicle EV A Select the cyclic group of integer multiplication A random number within Calculate the random identifier R = d·P, and then calculate H EVA =H3(M EVA ,ID EVA ,PK EVA ,R,t), and further calculate the partial signature information S EVA =(H EVA ·d+SK EVA ) mod p, thus obtaining the vehicle EV A The complete signature information is σ EVA = {R,S EVA}; Among them, H EVA is the identity information hash value calculated locally by the vehicle, H3 is the third hash function, M EVA The charge and discharge request information to be signed, ID EVA is the vehicle identity information, PK EVA is the vehicle public key, t is the timestamp, and p is the largest prime number.
[0134] Vehicle EV A Aggregate message MSet EVA ={ID EVA ,M EVA ,Tran EVA ,PK EVA ,t} sent to the charging pile CS in trust domain B B , where the complete signature information σ EVA Contained in transaction information Tran EVA Input collection information ′ middle;
[0135] Charging pile CS in trust domain B BFirst, check whether the timestamp t meets the real-time requirement. If not, discard the message and then generate a charging pile request message. and pass the session key Further calculation Encrypt is the encryption algorithm agreed upon by the charging pile and the node server. is the first session verification code, It is the message authentication code verification mechanism agreed upon by the charging pile and the node server. is the random number selected for the charging pile. Sent to the node server GS of trust domain B B .
[0136] In step 3, the node server is used to verify the charging pile request message in combination with the system parameters in the alliance chain, and the vehicle successfully authenticated specifically includes:
[0137] Node server GS of trust domain B B Receive a signed message and verify the validity of the signature Figure 4 As shown, including:
[0138] Node server GS of trust domain B B First, check whether the timestamp t meets the real-time requirement. If not, discard the message. Then calculate And compare Is it equal to If they are not equal, the charging pile CS in domain B is trusted. B Authentication failed, the node server GS of trust domain B B Report the error to the key generation center KGC. is the second session verification code, This is the verification code for the first session.
[0139] Node server GS of trust domain B B Request message for charging pile Decrypt and get the plaintext Then according to the obtained {ID EVA ,M EVA ,σ EVA ,PK EVA ,t}Calculate H ′ EVA =H3(M EVA ,ID EVA ,PK EVA ,R,t), if S EVA P=H ′ EVA ·R+PK EVA The signature verification is successful. EVAis the vehicle aggregation message, Decrypt is the decryption algorithm agreed upon by the charging pile and the node server, H ′ EVA It is the identity information hash value calculated remotely by the node server.
[0140] Node server GS of trust domain B B Based on transaction information Tran EVA , confirm the source transaction information of the vehicle by retrieving the alliance chain status database.
[0141] Node server GS of trust domain B B Use the first hash function to calculate the public key PK contained in the instant transaction input EVA Hash value And the hash value in the source transaction output corresponding to the instant transaction By comparison, if the two are equal, the hash value is verified.
[0142] After the above conditions are met, the transaction authentication is successful, and the node server GS of domain B is trusted. B The charge / discharge request message is accepted.
[0143] In step 4, using the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle specifically includes:
[0144] Node server GS of trust domain B B Generate an instant transaction locally to the successfully authenticated vehicle EV A Issue V authentication tokens; accordingly, if the vehicle EV A If the authentication fails or contains malicious request information, a certain number of authentication tokens will be deducted according to the degree of maliciousness; then the node server GS of the trust domain B B Using parameter H PK and V construct the output of the instant transaction, where H PK PK is the vehicle public key EVA The hash value of .
[0145] Node server GS of trust domain B B Send the instant transaction information to the charging pile CS in the trust domain B B , and upload the instant transaction information to the alliance chain status database; the charging pile CS in trust domain B B Broadcast the instant transaction within the management area and send it to the vehicle EV A Provide charging and discharging services.
[0146] Vehicle EV AGenerate an aggregate transaction, construct the input of the aggregate transaction based on other transactions containing authentication tokens, and based on the local key pair {SK EVA ,PK EVA}Construct the output of the aggregate transaction; then the vehicle EV A Send the aggregated transaction to the node server GS of trust domain B B Conduct transaction verification.
[0147] Vehicle EV A After the generated temporary transaction is verified by the aggregation and node servers, the aggregated transaction will be defined as the latest source transaction and will be validated by the node server GS of the trust domain B. B In the alliance chain state database, the vehicle EV A Transaction information of Tran EVA Make corresponding updates; Vehicle EV A Based on the updated source transaction, a latest instant transaction can be further generated for the next cross-domain identity authentication process or the authentication token aggregation transaction process.
[0148] This application proposes a certificateless cross-domain identity authentication method that can guarantee the anonymity of users, message integrity and unlinkability, and can resist common network attacks such as replay attacks and tampering attacks, while ensuring security and having high authentication efficiency. At the same time, combined with the advantages of blockchain technology, it can achieve the traceability of malicious users and the scalability of authentication schemes to meet the complex and changeable cross-domain identity authentication needs in the open network environment of the Internet of Vehicles system.
[0149] Embodiment 3:
[0150] A certificateless cross-domain identity authentication system, the structure is as follows Figure 5 As shown, including:
[0151] The initialization module is used to select random numbers in the integer multiplication cycle group through the key generation center and combine them with the generator to calculate the system parameters and upload them to the alliance chain;
[0152] A cross-domain charging and discharging application module, which is used to generate a charging pile request message according to the system parameters and send it to the node server of the other trust domain when the registered vehicle is charged and discharged in other trust domains outside the registered trust domain;
[0153] An authentication module, used to verify the charging pile request message by using the node server in combination with the system parameters in the alliance chain to obtain a successfully authenticated vehicle;
[0154] The charging and discharging module is used to use the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle.
[0155] Initialization module, specifically used for:
[0156] Using the key generation center, points on the elliptic curve in a finite field and points at infinity are selected to form an additive cyclic group of an elliptic curve of order q, and a generator, a first hash function, a second hash function, and a third hash function are determined;
[0157] The key generation center selects a random number in the integer multiplication cyclic group as the system private key of the key generation center, and calculates the system public key of the key generation center in combination with the generator;
[0158] The key generation center selects a random number in the integer multiplication cycle group as the private key of the node server registered in the trust domain, and calculates the public key of the node server registered in the trust domain in combination with the generator;
[0159] The key generation center selects random numbers in the integer multiplication cycle group as the private keys of the node servers in other trust domains, and calculates the public keys of the node servers in other trust domains in combination with the generator;
[0160] The key generation center is used to publish and upload to the alliance chain the addition cycle group, generator, first hash function, second hash function, third hash function, system public key of the key generation center, public key of the node server of the registered trust domain, and public key of the node server of other trust domains;
[0161] Among them, the system parameters include: an additive cycle group, a generator, a first hash function, a second hash function, a third hash function, a system public key of a key generation center, a public key of a node server of a registered trust domain, and a public key of a node server of other trust domains. One or more of the public keys.
[0162] It also includes a vehicle registration module, which is specifically used to:
[0163] When the vehicle is not registered, the vehicle pseudonym identity is calculated by using the random number in the integer multiplication cyclic group selected by the unregistered vehicle and the generator, and the real vehicle identity and the vehicle pseudonym identity are sent to the node server of the registration trust domain through a secure channel;
[0164] Using the node server of the registered trust domain to verify whether the real identity of the vehicle is legal and whether the pseudonymous identity of the vehicle in the alliance chain is unique;
[0165] The node server of the registered trust domain is used to calculate the encrypted pseudonym of the vehicle according to the real identity of the vehicle, the domain identifier to which the vehicle belongs, the private key of the node server of the registered trust domain, the system public key of the key generation center and the first hash function;
[0166] The node server of the registration trust domain generates vehicle registration information according to the real identity of the vehicle, the pseudonym of the vehicle, the encrypted pseudonym of the vehicle and the identifier of the domain to which the vehicle belongs, and stores it in a local database; generates vehicle identity information according to the pseudonym of the vehicle, the encrypted pseudonym of the vehicle and the identifier of the domain to which the vehicle belongs, and sends it to the vehicle through a secure channel for storage;
[0167] The node server of the registered trust domain is used to issue authentication tokens to the vehicle as source transactions and upload them to the state database of the alliance chain.
[0168] Cross-domain charging and discharging application module, including:
[0169] A transaction index construction submodule, used for performing encryption calculation according to the vehicle encryption pseudonym, the public key of the node server of the other trust domain, the second hash function and the timestamp to obtain the transaction index when the registered vehicle initiates a charging and discharging application to the charging pile of the other trust domain;
[0170] The output set information construction submodule is used to generate the input set information of the new transaction based on the output set information of the source transaction using the registered vehicles;
[0171] An aggregate message sending submodule, used to generate an aggregate message based on the system parameters using registered vehicles and send it to charging piles in other trust domains;
[0172] The charging pile request message generation submodule is used to use the charging pile to generate charging pile request information according to the aggregate message and send it to the node server.
[0173] Aggregate message sending submodule, specifically used for:
[0174] The random number in the integer multiplication cyclic group is selected by using the registered vehicles and combined with the generator to calculate the random identification;
[0175] Using a registered vehicle, generating an identity information hash value calculated locally by the vehicle according to the charge and discharge request information to be signed, the vehicle identity information, the vehicle public key, the random identifier, the third hash function and the timestamp;
[0176] Generate partial signature information using the registered vehicle’s identity information hash value, random number, and vehicle private key calculated locally;
[0177] Generate complete signature information based on partial signature information and random identifier using a registered vehicle;
[0178] Using registered vehicles, an aggregate message is generated based on vehicle identity information, charging and discharging request information to be signed, transaction information, vehicle public key and timestamp, and sent to charging piles in other trust domains.
[0179] The charging pile request message generation submodule is specifically used for:
[0180] The charging pile detects whether the timestamp meets the real-time requirement according to the aggregated message, and discards the message if it does not meet the requirement; otherwise, a charging pile request message is generated according to the aggregated message, the session key between the vehicle and the node server, and the encryption algorithm agreed upon by the charging pile and the node server;
[0181] Generate a first session verification code using the charging pile according to the session key between the charging pile and the node server, the charging pile request message, the random number selected by the charging pile, and the timestamp;
[0182] The charging pile is used to send a charging pile request message, a first session verification code, a random number selected by the charging pile, and a timestamp to the node server.
[0183] Authentication module, specifically used for:
[0184] The node server is used to detect whether the timestamp in the charging pile request message meets the real-time requirement. If not, the message is discarded; otherwise, a second session verification code is generated according to the charging pile request message, the session key between the charging pile and the node server, and the random number selected by the charging pile;
[0185] The node server is used to determine whether the second session verification code and the first session verification code are equal. If they are not equal, the charging pile identity authentication fails; otherwise, the charging pile identity authentication passes, and the charging pile request message is decrypted to obtain the vehicle identity information, the charging and discharging request message to be signed, the complete signature information, the vehicle public key and the timestamp;
[0186] The node server is used to calculate the identity information hash value remotely calculated by the node server according to the vehicle identity information, the charge and discharge request message to be signed, the vehicle public key, the random identifier, the timestamp and the third hash function;
[0187] The node server is used to determine whether the calculation result of the partial signature information and the generator is equal to the calculation result of the identity information hash value, the random identifier and the vehicle public key remotely calculated by the node server; if they are not equal, the signature authentication fails; otherwise, the signature authentication passes, and a first hash value is calculated according to the vehicle public key and the first hash function;
[0188] The node server is used to compare the first hash value with the hash value in the source transaction output set information. If they are not equal, the hash value verification fails; otherwise, the hash value verification passes and the charging and discharging application of the registered vehicle is accepted.
[0189] The charging and discharging module is specifically used for:
[0190] Generate instant transactions using the node server and issue a certain number of authentication tokens to successfully authenticated vehicles;
[0191] The node server is used to broadcast the instant transaction to the charging piles in the area, and provide charging and discharging services to the successfully authenticated vehicles;
[0192] The node server is used to upload the instant transaction to the state database of the alliance chain.
[0193] It also includes a transaction update module, which is specifically used to:
[0194] Using the successfully authenticated vehicles to generate an aggregated transaction based on the instant transaction, and sending it to the node server for authentication;
[0195] The node server uses the aggregated transaction after successful authentication as the source transaction to update the vehicle transaction information in the state database of the alliance chain.
[0196] The vehicle registration module is also used to:
[0197] Using an unregistered vehicle, a random number in an integer multiplication cyclic group is selected as the vehicle private key, and the vehicle public key is calculated by combining the generator and saved in the vehicle's tamper-proof onboard unit;
[0198] The node server is used to verify the identity of the charging pile, and after the verification is successful, a session key between the charging pile and the node server is selected.
[0199] Embodiment 4:
[0200] like Figure 6 As shown, the present invention also provides an electronic device, which may be a computer device, a single-chip device, an intelligent mobile device, etc. The electronic device in this embodiment may include a processor, a memory, a transceiver component, etc. The memory, the processor, and the transceiver component are connected via a bus; the memory may be used to store an execution program, and an exemplary execution program may include instructions; the processor is used to execute the instructions stored in the memory. The memory may also be used to store data, which may be called and / or modified when the instructions are executed.
[0201] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in a storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of a certificateless cross-domain identity authentication method in the above embodiment.
[0202] Embodiment 5:
[0203] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It can be understood that the storage medium here can include both a built-in storage medium in an electronic device and an extended storage medium supported by the electronic device. The storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more execution programs (including program codes). It should be noted that the storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk storage. The processor loads and executes one or more instructions stored in the storage medium, which can implement the steps of a certificateless cross-domain identity authentication method in the above embodiment.
[0204] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0205] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0206] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0207] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0208] The above are merely embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application are included in the scope of the claims of the present application to be approved.
Claims
1. A certificateless cross-domain identity authentication method, It is characterized in that include: The key generation center selects random numbers in the integer multiplication cycle group and combines them with the generator to calculate the system parameters and upload them to the alliance chain; When a registered vehicle is charged or discharged in other trust domains outside the registered trust domain, a charging pile request message is generated according to the system parameters and sent to the node server of the other trust domain; The node server is used to verify the charging pile request message in combination with the system parameters in the alliance chain to obtain a successfully authenticated vehicle; The node server is used to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle.
2. The method according to claim 1, It is characterized in that The key generation center selects random numbers in the integer multiplication cycle group and combines them with generators to calculate system parameters, and uploads them to the alliance chain, including: Using the key generation center, points on the elliptic curve in a finite field and points at infinity are selected to form an additive cyclic group of an elliptic curve of order q, and a generator, a first hash function, a second hash function, and a third hash function are determined; The key generation center selects a random number in the integer multiplication cyclic group as the system private key of the key generation center, and calculates the system public key of the key generation center in combination with the generator; The key generation center selects a random number in the integer multiplication cycle group as the private key of the node server registered in the trust domain, and calculates the public key of the node server registered in the trust domain in combination with the generator; The key generation center selects random numbers in the integer multiplication cycle group as the private keys of the node servers in other trust domains, and calculates the public keys of the node servers in other trust domains in combination with the generator; The key generation center is used to publish and upload to the alliance chain the addition cycle group, generator, first hash function, second hash function, third hash function, system public key of the key generation center, public key of the node server of the registered trust domain, and public key of the node server of other trust domains; Among them, the system parameters include: an additive cycle group, a generator, a first hash function, a second hash function, a third hash function, a system public key of a key generation center, a public key of a node server of a registered trust domain, and a public key of a node server of other trust domains. One or more of the public keys.
3. The method according to claim 1, It is characterized in that Before the registered vehicle is charged and discharged in other trust domains outside the registered trust domain, the method further includes: a vehicle registration process; the vehicle registration process includes: When the vehicle is not registered, the vehicle pseudonym identity is calculated by using the random number in the integer multiplication cyclic group selected by the unregistered vehicle and the generator, and the real vehicle identity and the vehicle pseudonym identity are sent to the node server of the registration trust domain through a secure channel; Using the node server of the registered trust domain to verify whether the real identity of the vehicle is legal and whether the pseudonymous identity of the vehicle in the alliance chain is unique; The node server of the registered trust domain is used to calculate the encrypted pseudonym of the vehicle according to the real identity of the vehicle, the domain identifier to which the vehicle belongs, the private key of the node server of the registered trust domain, the system public key of the key generation center and the first hash function; The node server of the registration trust domain generates vehicle registration information according to the real identity of the vehicle, the pseudonym of the vehicle, the encrypted pseudonym of the vehicle and the identifier of the domain to which the vehicle belongs, and stores it in a local database; generates vehicle identity information according to the pseudonym of the vehicle, the encrypted pseudonym of the vehicle and the identifier of the domain to which the vehicle belongs, and sends it to the vehicle through a secure channel for storage; The node server of the registered trust domain is used to issue authentication tokens to the vehicle as source transactions and upload them to the state database of the alliance chain.
4. The method according to claim 1, It is characterized in that When a registered vehicle is charged or discharged in another trust domain outside the registered trust domain, a charging pile request message is generated according to the system parameters and sent to a node server in another trust domain, including: When the registered vehicle initiates a charging and discharging application to a charging pile in another trust domain, an encryption calculation is performed according to the vehicle encryption pseudonym, the public key of the node server in another trust domain, the second hash function and the timestamp to obtain a transaction index; Generate input set information of new transaction based on output set information of source transaction using registered vehicles; Using the registered vehicles to generate an aggregate message according to the system parameters and sending it to charging piles in other trust domains; The charging pile is used to generate charging pile request information according to the aggregated message and send the charging pile request information to the node server.
5. The method according to claim 4, It is characterized in that The method of using the registered vehicle to generate an aggregate message according to the system parameters and sending it to charging piles in other trust domains includes: The random number in the integer multiplication cyclic group is selected by using the registered vehicles and combined with the generator to calculate the random identification; Using a registered vehicle, generating an identity information hash value calculated locally by the vehicle according to the charge and discharge request information to be signed, the vehicle identity information, the vehicle public key, the random identifier, the third hash function and the timestamp; Generate partial signature information using the registered vehicle’s identity information hash value, random number, and vehicle private key calculated locally; Generate complete signature information based on partial signature information and random identifier using a registered vehicle; Using registered vehicles, an aggregate message is generated based on vehicle identity information, charging and discharging request information to be signed, transaction information, vehicle public key and timestamp, and sent to charging piles in other trust domains.
6. The method according to claim 4, It is characterized in that The using the charging pile to generate charging pile request information according to the aggregated message and sending the charging pile request information to the node server includes: The charging pile detects whether the timestamp meets the real-time requirement according to the aggregated message, and discards the message if it does not meet the requirement; otherwise, a charging pile request message is generated according to the aggregated message, the session key between the vehicle and the node server, and the encryption algorithm agreed upon by the charging pile and the node server; Generate a first session verification code using the charging pile according to the session key between the charging pile and the node server, the charging pile request message, the random number selected by the charging pile, and the timestamp; The charging pile is used to send a charging pile request message, a first session verification code, a random number selected by the charging pile, and a timestamp to the node server.
7. The method according to claim 1, It is characterized in that The method of verifying the charging pile request message by using the node server in combination with the system parameters in the alliance chain to obtain a successfully authenticated vehicle includes: The node server is used to detect whether the timestamp in the charging pile request message meets the real-time requirement. If not, the message is discarded; otherwise, a second session verification code is generated according to the charging pile request message, the session key between the charging pile and the node server, and the random number selected by the charging pile; The node server is used to determine whether the second session verification code and the first session verification code are equal. If they are not equal, the charging pile identity authentication fails; otherwise, the charging pile identity authentication passes, and the charging pile request message is decrypted to obtain the vehicle identity information, the charging and discharging request message to be signed, the complete signature information, the vehicle public key and the timestamp; The node server is used to calculate the identity information hash value remotely calculated by the node server according to the vehicle identity information, the charge and discharge request message to be signed, the vehicle public key, the random identifier, the timestamp and the third hash function; The node server is used to determine whether the calculation result of the partial signature information and the generator is equal to the calculation result of the identity information hash value, the random identifier and the vehicle public key remotely calculated by the node server; if they are not equal, the signature authentication fails; otherwise, the signature authentication passes, and a first hash value is calculated according to the vehicle public key and the first hash function; The node server is used to compare the first hash value with the hash value in the source transaction output set information. If they are not equal, the hash value verification fails; otherwise, the hash value verification passes and the charging and discharging application of the registered vehicle is accepted.
8. The method according to claim 1, It is characterized in that The using the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle includes: Generate instant transactions using the node server and issue a certain number of authentication tokens to successfully authenticated vehicles; The node server is used to broadcast the instant transaction to the charging piles in the area, and provide charging and discharging services to the successfully authenticated vehicles; The node server is used to upload the instant transaction to the state database of the alliance chain.
9. The method according to claim 1, It is characterized in that Also includes: Using the successfully authenticated vehicles to generate an aggregated transaction based on the instant transaction, and sending it to the node server for authentication; The node server uses the aggregated transaction after successful authentication as the source transaction to update the vehicle transaction information in the state database of the alliance chain.
10. The method according to claim 3, It is characterized in that Also includes: Using an unregistered vehicle, a random number in an integer multiplication cyclic group is selected as the vehicle private key, and the vehicle public key is calculated by combining the generator and saved in the vehicle's tamper-proof onboard unit; The node server is used to verify the identity of the charging pile, and after the verification is successful, a session key between the charging pile and the node server is selected.
11. A certificateless cross-domain identity authentication system, It is characterized in that include: The initialization module is used to select random numbers in the integer multiplication cycle group through the key generation center and combine them with the generator to calculate the system parameters and upload them to the alliance chain; A cross-domain charging and discharging application module, which is used to generate a charging pile request message according to the system parameters and send it to the node server of the other trust domain when the registered vehicle is charged and discharged in other trust domains outside the registered trust domain; An authentication module, used to verify the charging pile request message by using the node server in combination with the system parameters in the alliance chain to obtain a successfully authenticated vehicle; The charging and discharging module is used to use the node server to generate an instant transaction to provide charging and discharging services to the successfully authenticated vehicle.
12. An electronic device, It is characterized in that include: at least one processor and memory; The memory and the processor are connected via a bus; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, a certificateless cross-domain identity authentication method as described in any one of claims 1 to 10 is implemented.
13. A readable storage medium, It is characterized in that An execution program is stored thereon, and when the execution program is executed, a certificateless cross-domain identity authentication method as described in any one of claims 1 to 10 is implemented.
Citation Information
Cited By
Lightweight cross-domain authentication method for Internet of Vehicles based on block chain technology
CN120034371A
Security identity authentication method and system for alliance chain cross-chain interoperation scene
CN120602096A
