CN112153646B - Authentication method, equipment and system - Google Patents
Authentication method, equipment and system Download PDFInfo
- Publication number
- CN112153646B CN112153646B CN201910579227.9A CN201910579227A CN112153646B CN 112153646 B CN112153646 B CN 112153646B CN 201910579227 A CN201910579227 A CN 201910579227A CN 112153646 B CN112153646 B CN 112153646B
- Authority
- CN
- China
- Prior art keywords
- node
- authentication
- replacement
- nodes
- child
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0853—Network architectures or network communication protocols for network security for authentication of entities using an additional device, e.g. smartcard, SIM or a different communication terminal
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
- H04W12/069—Authentication using certificates or pre-shared keys
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
- H04L63/061—Network architectures or network communication protocols for network security for supporting key management in a packet data network for key exchange, e.g. in peer-to-peer networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0869—Network architectures or network communication protocols for network security for authentication of entities for achieving mutual authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0876—Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
- H04L9/0825—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s) using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/14—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using a plurality of keys or algorithms
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/321—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving a third party or a trusted authority
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/30—Security of mobile devices; Security of mobile applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2209/00—Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
- H04L2209/84—Vehicles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/06—Network architectures or network communication protocols for network security for supporting key management in a packet data network
- H04L63/062—Network architectures or network communication protocols for network security for supporting key management in a packet data network for key distribution, e.g. centrally by trusted party
- H04L63/064—Hierarchical key distribution, e.g. by multi-tier trusted parties
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/04—Key management, e.g. using generic bootstrapping architecture [GBA]
- H04W12/043—Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/44—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/48—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application provides an authentication method, an authentication device and an authentication system, which relate to the technical field of communication, wherein an authentication server can acquire information of a plurality of nodes or information of a replacement node in a vehicle-mounted system and authenticate the plurality of nodes according to the information of the plurality of nodes or authenticate the replacement node according to the information of the replacement node, and after the authentication is passed, the authentication server can also send an identifier of a child node of the node, key information of the child node of the node, an identifier of a parent node of the node and key information of the parent node of the node to the node of the vehicle-mounted system, so that when the vehicle-mounted system is started, the node is authenticated with other nodes of the vehicle-mounted system, and the safety of the vehicle-mounted system is improved.
Description
Technical Field
The application relates to the technical field of vehicle networking, in particular to an authentication method, equipment and a system.
Background
At present, the functions of automobiles are continuously increased, and the automobiles are continuously developed towards intellectualization and networking. The networking of the vehicles not only enables a vehicle manufacturer to know and track the conditions of the vehicles, but also brings great convenience to the daily life of users. However, if an illegal user goes deep into the networked automobile system through the network to operate and control the vehicle, great threats can be brought to the vehicle safety of the user, for example, the illegal user can monitor data of the vehicle-mounted device and send a malicious or false instruction by installing unauthorized devices in the vehicle, so that the function of the vehicle is interfered or destroyed, and the vehicle safety is affected. Therefore, attention has been paid to how to ensure that vehicle-mounted equipment is legitimate equipment.
In recent years, various authentication methods have been proposed in the industry, and it is desired to ensure that a device mounted on a vehicle is a legitimate device. However, these methods are authentication methods for a certain device (e.g., a gateway) in a vehicle, i.e., these methods can only ensure that a certain device (e.g., a gateway) in a vehicle is a legitimate device, which reduces the security of the vehicle-mounted system.
Disclosure of Invention
The embodiment of the application provides an authentication method, equipment and a system, which can authenticate a plurality of nodes in a vehicle-mounted system, thereby improving the safety of the vehicle-mounted system.
In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
in a first aspect, an embodiment of the present application provides an authentication method, where the authentication method is used to authenticate multiple nodes in an in-vehicle system, and the method includes: the authentication server acquires the information of the plurality of nodes; the authentication server receiving authentication requests from the plurality of nodes; and the authentication server sends authentication responses of the nodes to the nodes respectively according to the information of the nodes.
In the technical solution provided by the first aspect, the authentication server may authenticate the plurality of nodes in the vehicle-mounted system by receiving authentication requests of the plurality of nodes in the vehicle-mounted system and sending authentication responses of the plurality of nodes to the plurality of nodes respectively according to information of the plurality of nodes, thereby improving security of the vehicle-mounted system.
With reference to the first aspect, in a first possible implementation manner, the information of the multiple nodes includes identifications of the multiple nodes and key information of the multiple nodes. Based on the first possible implementation manner of the first aspect, the authentication server may send authentication responses of the plurality of nodes to the plurality of nodes respectively according to the identifiers of the plurality of nodes and the key information of the plurality of nodes, so that the plurality of nodes in the vehicle-mounted system may be authenticated, and the security of the vehicle-mounted system is improved.
With reference to the first aspect and the first possible implementation manner of the first aspect, in a second possible implementation manner, the multiple nodes include a primary authentication node and multiple secondary authentication nodes, and if the multiple nodes are successfully authenticated, the method further includes: the authentication server sends the identification of the secondary authentication node and the key information of the secondary authentication node to the main authentication node; the authentication server sends the identification of the primary authentication node and the key information of the primary authentication node to the secondary authentication node. Based on the second possible implementation manner of the first aspect, the authentication server may send the identifier of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node after the plurality of nodes are successfully authenticated, and send the identifier of the primary authentication node and the key information of the primary authentication node to the secondary authentication node, so that when the vehicle-mounted system is started, the primary authentication node authenticates the secondary authentication node.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the multiple nodes further include child nodes of multiple secondary authentication nodes, and the method further includes: the authentication server generates authentication keys for the child nodes of the plurality of secondary authentication nodes, and the authentication keys of the child nodes of the secondary authentication nodes which are the same as the secondary authentication nodes are the same; the authentication server sends the identification of the child node of the secondary authentication node and the authentication key to the secondary authentication node; the authentication server sends the identification of the secondary authentication node and the authentication key to the child nodes of the secondary authentication node. Based on the third possible implementation manner of the first aspect, the authentication server may generate an authentication key for a child node of the secondary authentication node, send an identifier of the child node of the secondary authentication node and the authentication key to the secondary authentication node, and send the identifier of the secondary authentication node and the authentication key to the child node of the secondary authentication node, so that when the vehicle-mounted system is started, the secondary authentication node authenticates the child node of the secondary authentication node.
With reference to the first aspect and various possible implementation manners of the first aspect, in a fourth possible implementation manner, the authentication server obtains an identifier of a replacement node and key information of the replacement node; the authentication server receiving an authentication request from the replacement node; and the authentication server sends the authentication response of the replacement node to the replacement node according to the identification of the replacement node and the key information of the replacement node. Based on the fourth possible implementation manner of the first aspect, the authentication server may authenticate the replacement node by receiving the authentication request of the replacement node, and sending an authentication response of the replacement node to the replacement node according to the identifier of the replacement node and the key information of the replacement node, thereby improving the security of the vehicle-mounted system.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, if the replacing node is successfully authenticated and the replacing node has a parent node, the method further includes: the authentication server sends the identification of the replacement node and the key information of the replacement node to a father node of the replacement node; the authentication server transmits, to the replacement node, an identification of a parent node of the replacement node and key information of the parent node of the replacement node. Based on the fifth possible implementation manner of the first aspect, if the replacement node is successfully authenticated and the replacement node has a parent node, the authentication server sends the identifier of the replacement node and the key information of the replacement node to the parent node of the replacement node, and sends the identifier of the parent node of the replacement node and the key information of the parent node of the replacement node to the replacement node, so that the replacement node and the parent node of the replacement node are authenticated.
With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, if the replacement node is a child node of the secondary authentication node, the key information of the replacement node and the key information of the parent node of the replacement node include the authentication key. Based on the sixth possible implementation manner of the first aspect, if the replacement node is a child node of the secondary authentication node, the authentication server sends the identifier of the replacement node and the authentication key to the secondary authentication node, and sends the identifier of the secondary authentication node and the authentication key to the replacement node, so that the replacement node and the secondary authentication node perform authentication.
With reference to the fifth possible implementation manner of the first aspect and the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner, if the replacement node has a child node, the method further includes: the authentication server sends the identifier of the child node of the replacement node and the key information of the child node of the replacement node to the replacement node; the authentication server sends the identification of the replacement node and the key information of the replacement node to the child nodes of the replacement node. Based on the seventh possible implementation manner of the first aspect, if the replacement node has a child node, the authentication server may send the identifier of the child node of the replacement node and the key information of the child node of the replacement node to the replacement node, and send the identifier of the replacement node and the key information of the replacement node to the child node of the replacement node, so that the replacement node and the child node of the replacement node perform authentication.
With reference to the fifth possible implementation manner of the first aspect, the sixth possible implementation manner of the first aspect, and the sixth possible implementation manner of the first aspect, in an eighth possible implementation manner, the method further includes: the authentication server receives an authentication completion message from the replacement node. Based on the eighth possible implementation manner of the first aspect, the authentication server may know whether the replacement node and the child node of the replacement node and/or the parent node of the replacement node are successfully authenticated by receiving the authentication completion message of the replacement node.
In a second aspect, an embodiment of the present application provides an authentication method, where the authentication method is applied to an in-vehicle system, where the in-vehicle system includes a plurality of nodes, and the method includes: the plurality of nodes send authentication requests of the plurality of nodes to an authentication server; the plurality of nodes receive authentication responses of the plurality of nodes from the authentication server.
In the technical solution provided by the second aspect, the vehicle-mounted system may send the authentication requests of the plurality of nodes to the authentication server, so that the authentication server authenticates the plurality of nodes in the vehicle-mounted system, thereby improving the security of the vehicle-mounted system.
With reference to the second aspect, in a first possible implementation manner, the multiple nodes include a primary authentication node and multiple secondary authentication nodes, where the primary authentication node is connected to the multiple secondary authentication nodes, and if the multiple nodes are successfully authenticated, the method further includes: the primary authentication node receives the identification of the secondary authentication node and the key information of the secondary authentication node from the authentication server; the secondary authentication node receives the identification of the main authentication node and the key information of the main authentication node from the authentication server; the primary authentication node authenticates the secondary authentication node. Based on the first possible implementation manner of the second aspect, the primary authentication node may authenticate the secondary authentication node according to the identifier of the primary authentication node, key information of the primary authentication node, the identifier of the secondary authentication node, and the key information of the secondary authentication node.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the multiple nodes further include multiple sub-nodes of a secondary authentication node, where the secondary authentication node is connected to the sub-nodes of the secondary authentication node, and if the primary authentication node successfully authenticates the secondary authentication node, the method further includes: the secondary authentication node receives the identification of the child node of the secondary authentication node from the authentication server and an authentication key, wherein the authentication key is generated by the authentication server for the child nodes of the plurality of secondary authentication nodes, and the authentication keys of the child nodes of the secondary authentication nodes which are the same as the secondary authentication node are the same; the child node of the secondary authentication node receives the identification of the secondary authentication node and the authentication key from the authentication server; the secondary authentication node authenticates child nodes of the secondary authentication node. Based on the second possible implementation manner of the second aspect, the secondary authentication node may authenticate the child node of the secondary authentication node according to the identifier of the secondary authentication node, the identifier of the child node of the secondary authentication node, and the authentication key, and in addition, because the authentication keys of the child nodes of the secondary authentication node that are the same as the secondary authentication node are the same, the secondary authentication node does not need to store a plurality of authentication keys, thereby saving the computing resources of the secondary authentication node, and the secondary authentication node does not need to manage a plurality of authentication keys, thereby reducing the burden of the secondary authentication node.
With reference to the second aspect and various possible implementation manners of the second aspect, in a third possible implementation manner, the on-board system further includes a replacement node, and the method further includes: the replacement node sends an authentication request of the replacement node to the authentication server; the replacement node receives an authentication response of the replacement node from the authentication server. Based on the third possible implementation manner of the second aspect, the replacement node in the vehicle-mounted system may send an authentication request of the replacement node to the authentication server, so that the authentication server authenticates the replacement node, thereby improving the security of the vehicle-mounted system.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, if the replacing node is successfully authenticated and the replacing node has a parent node, the method further includes: the parent node of the replacement node receives the identification of the replacement node and the key information of the replacement node from the authentication server; the replacement node receives the identification of the parent node of the replacement node from the authentication server and the key information of the parent node of the replacement node; the replacement node performs mutual authentication with the parent node of the replacement node through the identifier of the replacement node, the key information of the replacement node, the identifier of the parent node of the replacement node, and the key information of the parent node of the replacement node. Based on the fourth possible implementation manner of the second aspect, the replacement node may perform bidirectional authentication with the parent node of the replacement node through the identifier of the replacement node, the key information of the replacement node, the identifier of the parent node of the replacement node, and the key information of the parent node of the replacement node.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, if the replacement node is a child node of the secondary authentication node, the key information of the replacement node and the key information of the parent node of the replacement node include the authentication key. Based on the fifth possible implementation manner of the second aspect, if the replacement node is a child node of the secondary authentication node, the replacement node may perform bidirectional authentication with the parent node of the replacement node according to the identifier of the parent node of the replacement node, the identifier of the replacement node, and the authentication key.
With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, if the replacement node is successfully authenticated with the parent node of the replacement node, and the replacement node has a child node, the method further includes: the replacement node receives the identification of the child node of the replacement node from the authentication server and the key information of the child node of the replacement node; the child node of the replacement node receives the identification of the replacement node from the authentication server and the key information of the replacement node; the replacement node performs mutual authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node, and the key information of the replacement node. Based on the sixth possible implementation manner of the second aspect, if the parent node of the replacement node and the parent node of the replacement node are successfully authenticated and the replacement node has a child node, the replacement node performs bidirectional authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node, and the key information of the replacement node.
With reference to the fourth possible implementation manner of the second aspect, the fifth possible implementation manner of the second aspect, and the sixth possible implementation manner of the second aspect, in a seventh possible implementation manner, if the replacement node is successfully authenticated with the parent node of the replacement node, or if the replacement node is successfully authenticated with the parent node of the replacement node and the child nodes of the replacement node, the method further includes: the replacement node sends an authentication completion message to the authentication server. Based on a seventh possible implementation manner of the second aspect, the replacement node sends an authentication completion message to the authentication server, so that the authentication server knows whether the replacement node and the child node of the replacement node and/or the parent node of the replacement node are successfully authenticated.
In a third aspect, an embodiment of the present application provides an authentication method, where the method includes: the main authentication node sends an authentication request of the main authentication node to an authentication server; the master authentication node receiving an authentication response from the master authentication node of the authentication server; the primary authentication node receives an identification of a secondary authentication node from the authentication server and key information of the secondary authentication node.
In the technical solution provided by the third aspect, the primary authentication node may send an authentication request of the primary authentication node to the authentication service, so that the authentication server authenticates the primary authentication node, and after the authentication of the primary authentication node is successful, the primary authentication node receives an identifier of the secondary authentication node from the authentication server and key information of the secondary authentication node, so that the primary authentication node and the secondary authentication node perform authentication.
With reference to the third aspect, in a first possible implementation manner, the method further includes: the primary authentication node authenticates the secondary authentication node. Based on the first possible implementation manner of the third aspect, the primary authentication node may authenticate the secondary authentication node, so as to improve the security of the vehicle-mounted system.
With reference to the third aspect and the first possible implementation manner of the third aspect, in a second possible implementation manner, the master authentication node is a master authentication node that is initially deployed; or the master authentication node is the master authentication node after the device is replaced. Based on the second possible implementation manner of the third aspect, the primary authentication node is a primary authentication node initially deployed or a primary authentication node after device replacement, and an authentication request of the primary authentication node is sent to the authentication server, so that the authentication server authenticates the primary authentication node.
In a fourth aspect, an embodiment of the present application provides an authentication method, where the method includes: the secondary authentication node sends an authentication request of the secondary authentication node to an authentication server; the secondary authentication node receiving an authentication response from the secondary authentication node of the authentication server; the secondary authentication node receives an identification of the primary authentication node from the authentication server and key information of the primary authentication node.
In the technical solution provided by the fourth aspect, the secondary authentication node may send an authentication request of the secondary authentication node to the authentication service, so that the authentication server authenticates the secondary authentication node, and after the authentication of the secondary authentication node is successful, the secondary authentication node receives the identifier of the primary authentication node and the key information of the primary authentication node from the authentication server, so that the primary authentication node and the secondary authentication node perform authentication.
With reference to the fourth aspect, in a first possible implementation manner, the method further includes: the secondary authentication node receives the identification of the child node of the secondary authentication node from the authentication server and an authentication key, wherein the authentication key is generated by the authentication server for the child node of the secondary authentication node; the secondary authentication node authenticates child nodes of the secondary authentication node. Based on the first possible implementation manner of the fourth aspect, if the secondary authentication node has a child node of the secondary authentication node, the secondary authentication node receives the identifier of the child node of the secondary authentication node and the authentication key from the authentication server, so that the secondary authentication node can authenticate the child node of the secondary authentication node, and the security of the vehicle-mounted system is improved.
With reference to the fourth aspect and the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the secondary authentication node is a secondary authentication node that is initially deployed; or the secondary authentication node is the secondary authentication node after the equipment is replaced. Based on the second possible implementation manner of the fourth aspect, the secondary authentication node is a secondary authentication node initially deployed or a secondary authentication node after device replacement, and an authentication request of the secondary authentication node is sent to the authentication server, so that the authentication server authenticates the secondary authentication node.
In a fifth aspect, an embodiment of the present application provides an authentication method, where the method includes: the child node of the secondary authentication node sends an authentication request of the child node of the secondary authentication node to the authentication server; the child node of the secondary authentication node receives an authentication response from the child node of the secondary authentication node of the authentication server; and the child node of the secondary authentication node receives the identification of the secondary authentication node from the authentication server and an authentication key, wherein the authentication key is generated by the authentication server for the child node of the secondary authentication node.
In the technical solution provided by the fifth aspect, the child node of the secondary authentication node may send an authentication request of the child node of the secondary authentication node to the authentication service, so that the authentication server authenticates the child node of the secondary authentication node, and after the child node of the secondary authentication node succeeds in authentication, the child node of the secondary authentication node receives the identifier of the secondary authentication node and the authentication key from the authentication server, so that the secondary authentication node authenticates the child node of the secondary authentication node.
With reference to the fifth aspect, in a first possible implementation manner, the child node of the secondary authentication node is a child node of a secondary authentication node initially deployed; or the child node of the secondary authentication node is the child node of the secondary authentication node after the device is replaced. Based on
In a first possible implementation manner of the fifth aspect, the child node of the secondary authentication node is a child node of a secondary authentication node initially deployed or a child node of a secondary authentication node after device replacement, and the child node of the secondary authentication node sends an authentication request of the child node of the secondary authentication node to the authentication server, so that the authentication server authenticates the child node of the secondary authentication node.
In a sixth aspect, an embodiment of the present application provides an authentication server, where the authentication server has the function and the method of implementing the first aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a seventh aspect, an embodiment of the present application provides an on-board system, where the on-board system has the function and the method of implementing the second aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In an eighth aspect, an embodiment of the present application provides a master authentication node, where the master authentication node has the function of implementing the method and function described in the third aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a ninth aspect, the present application provides a secondary authentication node, where the secondary authentication node has the function of implementing the method and function described in the fourth aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In a tenth aspect, the present application provides a child node of a secondary authentication node, where the child node of the secondary authentication node has the function of implementing the method and function described in the fifth aspect. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
In an eleventh aspect, an embodiment of the present application provides an authentication server, including: at least one processor, at least one memory, and a communication interface, the at least one memory, and the at least one processor being coupled; the authentication server communicates with other devices through the communication interface, the at least one memory for storing a computer program such that the computer program, when executed by the at least one processor, implements the authentication method as described in the first aspect and its various possible implementations.
In a twelfth aspect, an embodiment of the present application provides an on-vehicle system, including: a primary authentication node, a secondary authentication node and bytes of the secondary authentication node, wherein the primary authentication node may implement the authentication method as described in the third aspect and various possible implementations thereof, the secondary authentication node may implement the authentication method as described in the fourth aspect and various possible implementations thereof, and the child node of the secondary authentication node may implement the authentication method as described in the fifth aspect and various possible implementations thereof.
In a thirteenth aspect, an embodiment of the present application provides a master authentication node, including: at least one processor, at least one memory, and a communication interface, the at least one memory, and the at least one processor being coupled; the master authentication node communicates with other devices through the communication interface, the at least one memory is for storing a computer program such that the computer program, when executed by the at least one processor, implements the authentication method as described in the third aspect and its various possible implementations.
In a fourteenth aspect, an embodiment of the present application provides a secondary authentication node, including: at least one processor, at least one memory, and a communication interface, the at least one memory, and the at least one processor being coupled; the secondary authentication node communicates with other devices through the communication interface, the at least one memory is used for storing a computer program such that the computer program, when executed by the at least one processor, implements the authentication method as described in the fourth aspect and its various possible implementations.
In a fifteenth aspect, an embodiment of the present application provides a child node of a secondary authentication node, including: at least one processor, at least one memory, and a communication interface, the at least one memory, and the at least one processor being coupled; the at least one memory is configured to store a computer program such that, when executed by the at least one processor, the computer program implements the authentication method according to the fifth aspect and its various possible implementations.
In a sixteenth aspect, the present application provides a system chip, which may be applied in an authentication server, and the system chip includes: at least one processor in which the program instructions involved are executed to implement the functionality of the authentication server in the method according to the first aspect and any of its designs. Optionally, the system-on-chip may further include at least one memory storing the related program instructions.
In a seventeenth aspect, the present application provides a system chip, which may be applied in a master authentication node in an in-vehicle system, and the system chip includes: at least one processor in which the program instructions involved are executed to implement the functionality of the master authentication node in the method according to the third aspect and any of its designs. Optionally, the system-on-chip may further include at least one memory storing the related program instructions.
In an eighteenth aspect, the present application provides a system chip, where the system chip may be applied to a secondary authentication node in an in-vehicle system, and the system chip includes: at least one processor in which the program instructions involved are executed to implement the functionality of the secondary authentication node in the method according to the fourth aspect and any of its designs. Optionally, the system-on-chip may further include at least one memory storing the related program instructions.
In a nineteenth aspect, the present application provides a system chip, which may be applied to a child node of a secondary authentication node in an in-vehicle system, and the system chip includes: at least one processor in which the program instructions involved are executed to implement the functionality of a child node of a secondary authentication node in a method according to the fifth aspect and any design thereof. Optionally, the system-on-chip may further include at least one memory storing the related program instructions.
In a twentieth aspect, embodiments of the present application provide a computer-readable storage medium, such as a computer non-transitory readable storage medium. Having stored thereon a computer program for causing a computer to perform any of the possible methods of the first aspect described above, when the computer program runs on a computer. For example, the computer may be at least one storage node.
In a twenty-first aspect, embodiments of the present application provide a computer-readable storage medium, such as a computer-non-transitory readable storage medium. Having stored thereon a computer program which, when run on a computer, causes the computer to perform any of the possible methods of the second aspect described above. For example, the computer may be at least one storage node.
In a twenty-second aspect, embodiments of the present application provide a computer-readable storage medium, such as a computer-non-transitory readable storage medium. Having stored thereon a computer program for causing a computer to perform any of the possible methods of the third aspect described above, when the computer program runs on a computer. For example, the computer may be at least one storage node.
In a twenty-third aspect, embodiments of the present application provide a computer-readable storage medium, such as a computer-non-transitory readable storage medium. Having stored thereon a computer program which, when run on a computer, causes the computer to perform any of the possible methods of the fourth aspect described above. For example, the computer may be at least one storage node.
In a twenty-fourth aspect, embodiments of the present application provide a computer-readable storage medium, such as a computer-non-transitory readable storage medium. Having stored thereon a computer program which, when run on a computer, causes the computer to perform any of the possible methods of the fifth aspect described above. For example, the computer may be at least one storage node.
In a twenty-fifth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes any of the methods provided in the first aspect to be performed. For example, the computer may be at least one storage node.
In a twenty-sixth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes any of the methods provided by the second aspect to be performed. For example, the computer may be at least one storage node.
In a twenty-seventh aspect, the present application provides a computer program product, which when run on a computer, causes any one of the methods provided in the third aspect to be performed. For example, the computer may be at least one storage node.
In a twenty-eighth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes any of the methods provided in the fourth aspect to be performed. For example, the computer may be at least one storage node.
In a twenty-ninth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes any one of the methods provided in the fifth aspect to be performed. For example, the computer may be at least one storage node.
In a thirtieth aspect, embodiments of the present application provide a communication system, which may include any one or more of the following: an authentication server as in the sixth aspect, or an in-vehicle system as in the seventh aspect, or a primary authentication node as in the eighth aspect, or a secondary authentication node as in the ninth aspect, or bytes of a secondary authentication node as in the tenth aspect, or an authentication server as in the eleventh aspect, or an in-vehicle system as in the twelfth aspect, or a primary authentication node as in the thirteenth aspect, or a secondary authentication node as in the fourteenth aspect, or a sub-node as in the fifteenth aspect, or a system chip as in the sixteenth aspect, or a system chip as in the seventeenth aspect, or a system chip as in the eighteenth aspect, or a system chip as in the nineteenth aspect, or a computer-readable storage medium as in the twentieth aspect, or a computer readable storage medium as in the twenty-second aspect, or a computer readable storage medium as in the twenty-third aspect, or a computer readable storage medium as in the twenty-fourteenth aspect, or a computer program product as in the twenty-fifth aspect, or a computer program product as in the twenty-sixth aspect, or a computer program product as in the twenty-seventh aspect, or a computer program product as in the twenty-eighteenth aspect, or a computer program product as in the twenty-ninth aspect.
It can be understood that any one of the authentication server, the vehicle-mounted system, the primary authentication node, the secondary authentication node, the child node of the secondary authentication node, the system chip, the computer storage medium, the computer program product, or the communication system provided above is used to execute the corresponding method provided above, and therefore, the beneficial effects achieved by the method can refer to the beneficial effects in the corresponding method, and are not described herein again.
In a thirty-first aspect, an embodiment of the present application provides an authentication method, where the authentication method is used to authenticate multiple nodes in an in-vehicle system, and the method includes: acquiring information of the plurality of nodes; receiving authentication requests from the plurality of nodes; and respectively sending the authentication responses of the nodes to the nodes according to the information of the nodes.
In the technical solution provided by the thirty-first aspect, the plurality of nodes in the vehicle-mounted system may be authenticated by receiving authentication requests of the plurality of nodes in the vehicle-mounted system and sending authentication responses of the plurality of nodes to the plurality of nodes according to information of the plurality of nodes, respectively, so as to improve security of the vehicle-mounted system.
With reference to the thirty-first aspect, in a first possible implementation manner, the information of the multiple nodes includes identities of the multiple nodes and key information of the multiple nodes. Based on the first possible implementation manner of the thirty-first aspect, the authentication responses of the plurality of nodes may be sent to the plurality of nodes according to the identifiers of the plurality of nodes and the key information of the plurality of nodes, so that the plurality of nodes in the vehicle-mounted system may be authenticated, and the security of the vehicle-mounted system may be improved.
With reference to the thirty-first aspect and the first possible implementation manner of the thirty-first aspect, in a second possible implementation manner, the multiple nodes include a primary authentication node and multiple secondary authentication nodes, and if the multiple nodes are successfully authenticated, the method further includes: sending the identification of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node; and sending the identification of the main authentication node and the key information of the main authentication node to the secondary authentication node. Based on the thirty-first possible implementation manner, after the multiple nodes are successfully authenticated, the identifier of the secondary authentication node and the key information of the secondary authentication node may be sent to the primary authentication node, and the identifier of the primary authentication node and the key information of the primary authentication node may be sent to the secondary authentication node, so that when the vehicle-mounted system is started, the primary authentication node authenticates the secondary authentication node.
With reference to the second possible implementation manner of the thirty-first aspect, in a third possible implementation manner, the multiple nodes further include child nodes of multiple secondary authentication nodes, and the method further includes: generating authentication keys for child nodes of the plurality of secondary authentication nodes, wherein the authentication keys of the child nodes of the secondary authentication nodes identical to the secondary authentication nodes are identical; sending the identification of the child node of the secondary authentication node and the authentication key to the secondary authentication node; and sending the identification of the secondary authentication node and the authentication key to the child node of the secondary authentication node. Based on the third possible implementation manner of the thirty-first aspect, the authentication key may be generated for a child node of the secondary authentication node, the identifier of the child node of the secondary authentication node and the authentication key may be sent to the secondary authentication node, and the identifier of the secondary authentication node and the authentication key may be sent to the child node of the secondary authentication node, so that when the vehicle-mounted system is started, the secondary authentication node authenticates the child node of the secondary authentication node.
With reference to the thirty-first aspect and various possible implementation manners of the thirty-first aspect, in a fourth possible implementation manner, an identifier of a replacement node and key information of the replacement node are obtained; receiving an authentication request from the replacement node; and sending the authentication response of the replacement node to the replacement node according to the identification of the replacement node and the key information of the replacement node. Based on the fourth possible implementation manner of the thirty-first aspect, the security of the vehicle-mounted system can be improved by receiving the authentication request of the replacement node, and sending the authentication response of the replacement node to the replacement node according to the identifier of the replacement node and the key information of the replacement node.
With reference to the fourth possible implementation manner of the thirty-first aspect, in a fifth possible implementation manner, if the replacing node is successfully authenticated and the replacing node has a parent node, the method further includes: sending the identification of the replacement node and the key information of the replacement node to a parent node of the replacement node; the identification of the parent node of the replacement node and the key information of the parent node of the replacement node are sent to the replacement node. Based on the fifth possible implementation manner of the thirty-first aspect, if the replacement node is successfully authenticated and the replacement node has a parent node, the identifier of the replacement node and the key information of the replacement node are sent to the parent node of the replacement node, and the identifier of the parent node of the replacement node and the key information of the parent node of the replacement node are sent to the replacement node, so that the replacement node and the parent node of the replacement node are authenticated.
With reference to the fifth possible implementation manner of the thirty-first aspect, in a sixth possible implementation manner, if the replacement node is a child node of the secondary authentication node, the key information of the replacement node and the key information of the parent node of the replacement node include the authentication key. Based on the sixth possible implementation manner of the thirty-first aspect, if the replacement node is a child node of the secondary authentication node, the identifier and the authentication key of the replacement node are sent to the secondary authentication node, and the identifier and the authentication key of the secondary authentication node are sent to the replacement node, so that the replacement node and the secondary authentication node perform authentication.
With reference to the fifth possible implementation manner of the thirty-first aspect and the sixth possible implementation manner of the thirty-first aspect, in a seventh possible implementation manner, if the replacement node has a child node, the method further includes: sending the identifier of the child node of the replacement node and the key information of the child node of the replacement node to the replacement node; and sending the identification of the replacing node and the key information of the replacing node to the child node of the replacing node. Based on the seventh possible implementation manner of the thirty-first aspect, if the replacement node has a child node, the identifier of the child node of the replacement node and the key information of the child node of the replacement node may be sent to the replacement node, and the identifier of the replacement node and the key information of the replacement node may be sent to the child node of the replacement node, so that the replacement node and the child node of the replacement node perform authentication.
With reference to the fifth possible implementation manner of the thirty-first aspect, the sixth possible implementation manner of the thirty-first aspect, and the sixth possible implementation manner of the thirty-first aspect, in an eighth possible implementation manner, the method further includes: an authentication complete message is received from the replacement node. Based on the eighth possible implementation manner of the thirty-first aspect, whether the replacement node and the child node of the replacement node and/or the parent node of the replacement node are successfully authenticated may be known by receiving an authentication completion message of the replacement node.
In a thirty-second aspect, an embodiment of the present application provides an authentication method, where the authentication method is applied to an in-vehicle system, where the in-vehicle system includes a plurality of nodes, and the method includes: sending authentication requests of the plurality of nodes to an authentication server; authentication responses of the plurality of nodes from the authentication server are received.
The technical solution provided by the thirty-second aspect may be configured to send an authentication request of a plurality of nodes to the authentication server, so that the authentication server authenticates the plurality of nodes in the vehicle-mounted system, thereby improving the security of the vehicle-mounted system.
With reference to the thirty-second aspect, in a first possible implementation manner, the multiple nodes include a primary authentication node and multiple secondary authentication nodes, where the primary authentication node is connected to the multiple secondary authentication nodes, and if the multiple nodes are successfully authenticated, the method further includes: receiving the identification of the secondary authentication node and the key information of the secondary authentication node from the authentication server; receiving the identification of the main authentication node and the key information of the main authentication node from the authentication server; and authenticating the authentication node. Based on the first possible implementation manner of the thirty-second aspect, the secondary authentication node may be authenticated according to the identifier of the primary authentication node, the key information of the primary authentication node, the identifier of the secondary authentication node, and the key information of the secondary authentication node.
With reference to the first possible implementation manner of the thirty-second aspect, in a second possible implementation manner, the multiple nodes further include multiple sub-nodes of a secondary authentication node, where the secondary authentication node is connected to the sub-nodes of the secondary authentication node, and if the primary authentication node successfully authenticates the secondary authentication node, the method further includes: receiving an identifier of a child node of the secondary authentication node and an authentication key from the authentication server, wherein the authentication key is generated by the authentication server for the child nodes of the plurality of secondary authentication nodes, and the authentication keys of the child nodes of the secondary authentication nodes which are the same as the secondary authentication nodes are the same; receiving the identification of the secondary authentication node and the authentication key from the authentication server; and authenticating the child nodes of the authentication node. Based on the second possible implementation manner of the thirty-second aspect, the child nodes of the secondary authentication node may be authenticated according to the identifier of the secondary authentication node, the identifier of the child node of the secondary authentication node, and the authentication key, and in addition, because the authentication keys of the child nodes of the secondary authentication node that are the same as the secondary authentication node are the same, the secondary authentication node does not need to store a plurality of authentication keys, thereby saving the computing resources of the secondary authentication node, and the secondary authentication node does not need to manage a plurality of authentication keys, thereby reducing the burden of the secondary authentication node.
With reference to the thirty-second aspect and various possible implementation manners of the thirty-second aspect, in a third possible implementation manner, the on-board system further includes a replacement node, and the method further includes: sending an authentication request of the replacement node to the authentication server; an authentication response from the replacement node is received from the authentication server. Based on the thirty-second possible implementation manner, the authentication request of the replacement node may be sent to the authentication server, so that the authentication server authenticates the replacement node, thereby improving the security of the vehicle-mounted system.
With reference to the third possible implementation manner of the thirty-second aspect, in a fourth possible implementation manner, if the replacing node is successfully authenticated and the replacing node has a parent node, the method further includes: receiving the identification of the replacement node and the key information of the replacement node from the authentication server; receiving an identification of a parent node of the replacement node from the authentication server and key information of the parent node of the replacement node; and performing bidirectional authentication with the parent node of the replacement node through the identification of the replacement node, the key information of the replacement node, the identification of the parent node of the replacement node and the key information of the parent node of the replacement node. Based on the fourth possible implementation manner of the thirty-second aspect, bidirectional authentication may be performed with the parent node of the replacement node through the identifier of the replacement node, the key information of the replacement node, the identifier of the parent node of the replacement node, and the key information of the parent node of the replacement node.
With reference to the fourth possible implementation manner of the thirty-second aspect, in a fifth possible implementation manner, if the replacement node is a child node of the secondary authentication node, the key information of the replacement node and the key information of the parent node of the replacement node include the authentication key. Based on the fifth possible implementation manner of the thirty-second aspect, if the replacement node is a child node of the secondary authentication node, bidirectional authentication can be performed with the parent node of the replacement node according to the identifier of the parent node of the replacement node, the identifier of the replacement node, and the authentication key.
With reference to the fifth possible implementation manner of the thirty-second aspect, in a sixth possible implementation manner, if the replacement node is successfully authenticated with the parent node of the replacement node, and the replacement node has a child node, the method further includes: receiving an identification of a child node of the replacement node from the authentication server, and key information of the child node of the replacement node; receiving the identification of the replacement node from the authentication server and the key information of the replacement node; and performing bidirectional authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node and the key information of the replacement node. Based on the sixth possible implementation manner of the thirty-second aspect, if the parent node of the replacement node and the parent node of the replacement node are successfully authenticated and the replacement node has a child node, bidirectional authentication is performed through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node, and the key information of the replacement node and the child node of the replacement node.
With reference to the fourth possible implementation manner of the thirty-second aspect, the fifth possible implementation manner of the thirty-second aspect, and the sixth possible implementation manner of the thirty-second aspect, in a seventh possible implementation manner, if the replacement node is successfully authenticated with the parent node of the replacement node, or if the replacement node is successfully authenticated with the parent node of the replacement node and the child nodes of the replacement node, the method further includes: an authentication completion message is sent to the authentication server. Based on a seventh possible implementation manner of the thirty-second aspect, an authentication completion message is sent to the authentication server, so that the authentication server knows whether the replacement node and the child node of the replacement node and/or the parent node of the replacement node are successfully authenticated.
In a thirty-third aspect, an embodiment of the present application provides an authentication method, where the method includes: sending an authentication request of a main authentication node to an authentication server; receiving an authentication response from a primary authentication node of the authentication server; and receiving the identification of the secondary authentication node from the authentication server and the key information of the secondary authentication node.
The technical solution provided by the thirty-third aspect may send an authentication request of the primary authentication node to the authentication service, so that the authentication server authenticates the primary authentication node, and after the authentication of the primary authentication node is successful, receive an identifier of the secondary authentication node and key information of the secondary authentication node from the authentication server, so as to authenticate with the secondary authentication node.
With reference to the thirty-third aspect, in a first possible implementation manner, the method further includes: and authenticating the authentication node. Based on the first possible implementation manner of the thirty-third aspect, the secondary authentication node may be authenticated, so that the security of the vehicle-mounted system is improved.
With reference to the thirty-third aspect and the first possible implementation manner of the thirty-third aspect, in a second possible implementation manner, the master authentication node is a master authentication node initially deployed; or the master authentication node is the master authentication node after the device is replaced. Based on the second possible implementation manner of the thirty-third aspect, the primary authentication node is a primary authentication node initially deployed or a primary authentication node after device replacement, and an authentication request of the primary authentication node is sent to the authentication server, so that the authentication server authenticates the primary authentication node.
In a fourteenth aspect, an embodiment of the present application provides an authentication method, where the method includes: sending an authentication request of the secondary authentication node to an authentication server; receiving an authentication response from the secondary authentication node of the authentication server; an identification of a master authentication node from the authentication server and key information of the master authentication node are received.
The technical solution provided in the thirty-fourth aspect may send an authentication request of the secondary authentication node to the authentication service, so that the authentication server authenticates the secondary authentication node, and after the authentication of the secondary authentication node is successful, receive the identifier of the primary authentication node and the key information of the primary authentication node from the authentication server, so as to authenticate with the primary authentication node.
With reference to the thirty-fourth aspect, in a first possible implementation manner, the method further includes: receiving an identifier of a child node of a secondary authentication node from the authentication server and an authentication key, wherein the authentication key is generated by the authentication server for the child node of the secondary authentication node; and authenticating the child nodes of the authentication node. Based on the first possible implementation manner of the thirty-fourth aspect, if the secondary authentication node has a child node of the secondary authentication node, the identifier of the child node of the secondary authentication node and the authentication key are received from the authentication server, so that the child node of the secondary authentication node is authenticated, and the security of the vehicle-mounted system is improved.
With reference to the thirty-fourth aspect and the first possible implementation manner of the thirty-fourth aspect, in a second possible implementation manner, the secondary authentication node is a secondary authentication node initially deployed; or the secondary authentication node is the secondary authentication node after the equipment is replaced. Based on the second possible implementation manner of the thirty-fourth aspect, the secondary authentication node is a secondary authentication node initially deployed or a secondary authentication node after device replacement, and sends an authentication request of the secondary authentication node to the authentication server, so as to perform authentication with the authentication server.
In a thirty-fifth aspect, an embodiment of the present application provides an authentication method, where the method includes: sending an authentication request of a child node of the secondary authentication node to an authentication server; receiving an authentication response from a child node of the secondary authentication node of the authentication server; and receiving the identification of the secondary authentication node from the authentication server and an authentication key, wherein the authentication key is generated by the authentication server for the child node of the secondary authentication node.
The technical solution provided by the thirty-fifth aspect may be configured to send an authentication request of a child node of the secondary authentication node to the authentication service, so that the authentication server authenticates the child node of the secondary authentication node, and after the child node of the secondary authentication node succeeds in authentication, receive an identifier of the secondary authentication node and an authentication key from the authentication server, so as to authenticate with the secondary authentication node.
With reference to the thirty-fifth aspect, in a first possible implementation manner, the child node of the secondary authentication node is a child node of a secondary authentication node initially deployed; or the child node of the secondary authentication node is the child node of the secondary authentication node after the device is replaced. Based on the first possible implementation manner of the thirty-fifth aspect, the child node of the secondary authentication node is a child node of a secondary authentication node initially deployed, or a child node of a secondary authentication node after device replacement, and an authentication request of the child node of the secondary authentication node is sent to an authentication server, so as to perform authentication with the authentication server.
Drawings
Fig. 1(a) is a schematic diagram of an authentication system architecture provided in an embodiment of the present application;
FIG. 1(b) is a schematic diagram of an in-vehicle system architecture provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of an authentication method for a digital signature based on a public key cryptography according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a method for identity authentication based on challenge/response according to an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of an authentication device according to an embodiment of the present application;
fig. 5 is a first flowchart illustrating an authentication method according to an embodiment of the present application;
fig. 6 is a first flowchart of a method for writing an identifier of a node and a second registration key of the node in a vehicle-mounted system according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a second method for writing the identifier of the node and the second registration key of the node in the vehicle-mounted system according to the embodiment of the present application;
fig. 8 is a flowchart illustrating a second authentication method according to an embodiment of the present application;
fig. 9 is a third schematic flowchart of an authentication method according to an embodiment of the present application;
fig. 10 is a fourth schematic flowchart of an authentication method according to an embodiment of the present application;
fig. 11 is a fifth flowchart illustrating an authentication method according to an embodiment of the present application;
fig. 12 is a sixth schematic flowchart of an authentication method according to an embodiment of the present application;
fig. 13 is a seventh flowchart illustrating an authentication method according to an embodiment of the present application;
fig. 14 is a first schematic structural diagram of an authentication server according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of an authentication server according to an embodiment of the present application;
FIG. 16 is a first schematic structural diagram of an in-vehicle system provided in an embodiment of the present application;
fig. 17 is a schematic structural diagram of a vehicle-mounted system according to an embodiment of the present application;
FIG. 18 is a third schematic structural diagram of an on-board system provided in an embodiment of the present application;
fig. 19 is a first schematic structural diagram of a primary authentication node according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of a master authentication node according to an embodiment of the present application;
fig. 21 is a first schematic structural diagram of a secondary authentication node according to an embodiment of the present application;
fig. 22 is a schematic structural diagram of a secondary authentication node according to an embodiment of the present application;
fig. 23 is a schematic structural diagram of a child node of a secondary authentication node according to an embodiment of the present application;
fig. 24 is a schematic structural diagram of a communication system according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
It should be noted that the authentication method provided in the embodiment of the present application may be applied to a system that is composed of a plurality of devices and has a hierarchical relationship between the plurality of devices, for example: the system comprises an on-board system, a system consisting of equipment on an airplane and a system consisting of equipment on a bullet train or a high-speed rail. The present application takes the vehicle-mounted system as an example for description, and the authentication methods of other types of systems may refer to specific descriptions of the authentication method of the vehicle-mounted system, which is not repeated herein.
Fig. 1(a) is a schematic structural diagram of an authentication system 100 according to an embodiment of the present disclosure. In fig. 1(a), the authentication system 100 may include an in-vehicle system 10 and an authentication server 20.
The in-vehicle system 10 in fig. 1(a) may include a plurality of electronic devices within the vehicle 30. For example, the in-vehicle system 10 may include an in-vehicle T-box (telematics box), a gateway, a domain controller, an on-board diagnostics (OBD), an Advanced Driving Assistance System (ADAS), and the like. Specifically, the architecture of the in-vehicle system 10 may be as shown in fig. 1 (b).
Fig. 1(b) is a schematic composition diagram of an in-vehicle system 10 according to an embodiment of the present disclosure, and as shown in fig. 1(b), the in-vehicle system 10 includes a T-Box 101, a gateway 102, an OBD 103, a domain controller 104 — a domain controller 106, an ADAS 107, an Electronic Control Unit (ECU) 108 — an ECU113, and a sensor (sensor)114 — a sensor 115.
Wherein, the T-Box 101 and the gateway 102 can be connected through Ethernet. The gateway 102 and the OBD 103 may be connected via an ethernet or Controller Area Network (CAN). Gateway 102 and domain controller may be connected via an ethernet or CAN connection, for example, gateway 102 and domain controller 104 may be connected via an ethernet or CAN connection. The gateway 102 and the ADAS 107 may be connected via ethernet or CAN. The connection between the domain controller and the ECU and between the ADAS and the sensors may be via ethernet or CAN, for example, the connection between the domain controller 104 and the ECU may be via ethernet or CAN, and the connection between the ADAS 107 and the sensors 114 may be via ethernet or CAN.
Among other things, the T-Box 101 may be capable of communicating with devices external to the in-vehicle system 10 and devices internal to the in-vehicle system 10. Among them, the external device of the in-vehicle system 10 may be described as a device other than the in-vehicle system 10, for example, the authentication server 20 in fig. 1 (a); the internal devices of the in-vehicle system 10 may be the devices shown in fig. 1(b), for example, the gateway 102, the OBD 103, the domain controller 104, and the like.
The T-Box 101 communicates with the internal devices of the in-vehicle system 10, and may be used to obtain information about the internal devices of the in-vehicle system 10 (e.g., obtain the identification of the gateway 102); the T-Box 101 communicates with the internal device of the in-vehicle system 10, and may also be configured to forward (or pass-through) the received information sent by the external device of the in-vehicle system 10 to the internal device of the in-vehicle system 10 (for example, forward (or pass-through) the identifier of the T-Box 101 sent by the authentication server 20 to the gateway 102). The T-Box 101 communicates with external devices of the vehicle-mounted system 10 and can be used for authenticating the vehicle-mounted system 10; the T-Box 101 is in communication with an external device of the vehicle-mounted system 10, and can be further used for receiving information (for example, the identification of the T-Box 101 sent to the gateway 102 by the authentication server 20) sent by the external device of the vehicle-mounted system 10 to an internal device of the vehicle-mounted system 10; the T-Box 101 communicates with an external device of the in-vehicle system 10, and may also be configured to forward (or transparently transmit) the acquired information of the internal device of the in-vehicle system 10 to the external device of the in-vehicle system 10 (for example, forward (or transparently transmit) the acquired identifier of the gateway 102 to the authentication server 20).
It should be understood that the architecture of the on-board system 10 shown in fig. 1(b) is for example only, and is not intended to limit the technical solution of the present application. It will be understood by those skilled in the art that the in-vehicle system 10 may include other devices in a specific implementation, and the number of the devices (e.g., domain controllers) in the in-vehicle system 10 may be determined according to specific needs.
The authentication server 20 in fig. 1(a) may have the capability to authenticate devices in the in-vehicle system 10. For example, the T-Box 101 in FIG. 1(b) is authenticated; authenticating the gateway 102 in fig. 1 (b); authenticating the OBD 103 in fig. 1 (b); authenticating the domain controller 104 and 106 in FIG. 1 (b); authenticating the ADAS 107 in fig. 1 (b); authenticating the ECU 108-ECU113 in fig. 1 (b); authentication of sensors 114-115 in fig. 1(b), and so forth.
It should be understood that the authentication system 100 shown in fig. 1(a) is only for example and is not used to limit the technical solution of the present application. It will be understood by those skilled in the art that the authentication system 100 may include other devices in the implementation process, and the number of devices in the authentication server 20 and the in-vehicle system 10 may be determined according to the specific needs, without limitation.
In the prior art, in a possible implementation manner, the authentication server 20 authenticates the device in the vehicle-mounted system 10 by using a digital signature authentication method based on a public key password.
The following describes, with reference to fig. 2, an example in which the authentication server 20 performs authentication using a digital signature based on public key cryptography, with reference to the T-Box 101 authentication in fig. 1 (b).
As shown in fig. 2, the authentication method includes steps 201 to 210:
step 201: T-Box 101 generates a first random number.
Step 202: the T-Box 101 sends the first random number and the identification of the T-Box 101 to the authentication server 20.
Step 203: the authentication server 20 receives the first random number from the T-Box 101 and the identification of the T-Box 101, calculates a first signature and generates a second random number.
Step 204: the authentication server 20 encrypts the first signature with the private key of the authentication server 20 and sends the second random number, the identification of the authentication server 20, and the encrypted first signature to the T-Box 101.
Step 205: the T-Box 101 receives the second random number, the identification of the authentication server 20, and the encrypted first signature from the authentication server 20, and decrypts the encrypted first signature with the public key of the authentication server 20.
Wherein, the T-Box 101 may pre-store the public key of the authentication server 20; if the T-Box 101 does not store the public key of the authentication server 20, the authentication server 20 may send the public key to the T-Box 101 in step 205.
Step 206: the T-Box 101 computes a first signature, and if the first signature computed by the T-Box 101 is the same as the first signature decrypted by the T-Box 101, the T-Box 101 computes a second signature.
Step 207: the T-Box 101 encrypts the second signature with the private key of the T-Box 101 and sends the encrypted second signature to the authentication server 20.
Step 208: the authentication server 20 receives the encrypted second signature from the T-Box 101 and decrypts the encrypted second signature with the public key of the T-Box 101.
The authentication server 20 may pre-store the public key of the T-Box 101; if the authentication server 20 does not store the public key of the T-Box 101, the T-Box 101 may send the public key to the authentication server 20 in step 208.
Step 209: the authentication server 20 calculates a second signature, and if the second signature calculated by the authentication server 20 is the same as the second signature decrypted by the authentication server 20, the authentication server 20 sends a verification success message to the T-Box 101.
Step 210: the T-Box 101 receives the verification success message from the authentication server 20.
Based on the method shown in fig. 2, the authentication server 20 can authenticate the T-Box 101, but the authentication server 20 has the following problems in authenticating the devices in the in-vehicle system 10: (1) the T-Box 101 (or the authentication server 20) is to store the public key of the authentication server 20 (or the T-Box 101) and the private key of the T-Box 101 (or the authentication server 20); (2) the T-Box 101 (or the authentication server 20) encrypts the message with its own private key, and the authentication server 20 (or the T-Box 101) decrypts the encrypted message with the public key of the T-Box 101 (or the authentication server 20) after receiving the encrypted message. In which storing the public key, encrypting and decrypting the message requires a certain amount of computing resources, and therefore the method shown in fig. 2 is not applicable to the authentication server 20 and the T-Box 101 where computing resources are limited.
In another possible implementation manner, the authentication server 20 may authenticate the device in the in-vehicle system 10 by using a challenge/response (challenge/response) identity authentication method.
The T-Box 101 authentication in fig. 1(b) will be described below as an example in which the authentication server 20 adopts a challenge/response identity authentication-based method.
As shown in fig. 3, the method includes steps 301-310.
Step 301: the T-Box 101 sends the identification of the T-Box 101 to the authentication server 20.
Step 302: the authentication server 20 receives the T-Box 101 identification from the T-Box 101 and queries the database for the presence of the T-Box 101 identification.
Step 303: if the identity of the T-Box 101 is present in the database, the authentication server 20 generates a random number.
Step 304: the authentication server 20 transmits the random number to the T-Box 101.
Step 305: the T-Box 101 receives the random number from the authentication server 20, combines the identification of the T-Box 101 with the random number, and generates a string using a Hash function.
Step 306: the T-Box 101 encrypts the string with a symmetric key.
Wherein the symmetric key can be pre-stored in the T-Box 101.
Step 307: the T-Box 101 transmits the encrypted character string to the authentication server 20.
Step 308: the authentication server 20 receives the encrypted string from the T-Box 101 and decrypts the encrypted string with the symmetric key.
The symmetric key may be pre-stored in the authentication server 20, and if the symmetric key is not stored in the authentication server 20, the T-Box 101 may send the symmetric key to the authentication server 20 before step 308.
Step 309: the authentication server 20 combines the identifier of the T-Box 101 and the random number, generates a character string using a Hash (Hash) function, and determines whether the character string is the same as the decrypted character string.
Step 310: if the character string is the same as the decrypted character string, the authentication server 20 sends a message that the authentication is successful to the T-Box 101; if the character string is not the same as the decrypted character string, the authentication server 20 sends a message of authentication failure to the T-Box 101.
Based on the method shown in fig. 3, the authentication server 20 can authenticate the T-Box 101. In the process of authenticating the T-Box 101 by the authentication server 20, the T-Box 101 encrypts the message by using the symmetric key, and the authentication server 20 decrypts the message by using the symmetric key, so that the T-Box 101 (or the authentication server 20) does not need to store the public key of the authentication server 20 (or the T-Box 101) and the private key of the T-Box 101 (or the authentication server 20), but only stores the symmetric key, and in addition, the method shown in fig. 3 occupies less computing resources when encrypting and decrypting the message by using the symmetric key, and therefore, the method shown in fig. 3 has lower requirements on computing resources of the authentication device. However, since the security of authentication using a symmetric key is low, the method shown in fig. 3 is not suitable for legal authentication with high security requirements between the in-vehicle system 10 and an external device (e.g., the authentication server 20).
In view of the prior art authentication process, the method shown in fig. 2 and the method shown in fig. 3 are for authenticating one device (e.g., T-Box 101) in the in-vehicle system 10, but cannot authenticate a plurality of devices in the in-vehicle system 10.
In order to solve the problem that a plurality of devices of the vehicle-mounted system 10 cannot be authenticated at present, in the embodiment of the present application, the authentication server may obtain information of each device in the vehicle-mounted system, and authenticate each device in the vehicle-mounted system according to the information of the device, and a specific process of the authentication method may refer to the embodiment corresponding to the method shown in fig. 5 and fig. 8. By this method, the authentication server 20 can authenticate all of the plurality of devices of the in-vehicle system 10, thereby improving the security of the in-vehicle system 10.
In a specific implementation, each of the authentication server 20 shown in fig. 1(a) and the devices (e.g., T-Box 101, gateway 102, etc.) shown in fig. 1(b) may adopt the composition structure shown in fig. 4, or include the components shown in fig. 4.
Fig. 4 is a schematic composition diagram of an authentication device 400 according to an embodiment of the present disclosure, where the authentication device 400 may be a centralized controller or a chip or a system on chip in the centralized controller, and may also be a functional entity or a chip or a system on chip in the functional entity. The authentication device 400 comprises a processor 401, a communication line 402 and a communication interface 403.
Further, the authentication device 400 may also include a memory 404. The processor 401, the memory 404 and the communication interface 403 may be connected by a communication line 402.
The processor 401 may be a Central Processing Unit (CPU), a general purpose processor Network (NP), a Digital Signal Processor (DSP), a microprocessor, a microcontroller, a Programmable Logic Device (PLD), or any combination thereof. The processor 401 may also be any other device with processing function, such as a circuit, a device, or a software module, without limitation.
A communication line 402 for transmitting information between the respective components included in the authentication apparatus 400.
A communication interface 403 for communicating with other devices or other communication networks. The other communication network may be an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), or the like. The communication interface 403 may be a module, a circuit, a transceiver, or any device capable of enabling communication.
A memory 404 for storing instructions. Wherein the instructions may be a computer program.
The memory 404 may be a read-only memory (ROM) or other types of static storage devices that can store static information and/or instructions, a Random Access Memory (RAM) or other types of dynamic storage devices that can store information and/or instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disc storage medium or other magnetic storage devices, and the like, without limitation.
It is to be noted that the memory 404 may exist independently from the processor 401 or may be integrated with the processor 401. The memory 404 may be used for storing instructions or program code or some data or the like. Memory 404 may be located within authentication device 400 or external to authentication device 400, without limitation.
A processor 401 for executing the instructions stored in the memory 404 to implement the methods provided by the embodiments described below in the present application.
In one example, processor 401 may include one or more CPUs, such as CPU0 and CPU1 in fig. 4.
As an alternative implementation, the authentication device 400 includes multiple processors, for example, in addition to the processor 401 in fig. 4, a processor 407 may be included.
As an alternative implementation, the authentication device 400 further comprises an output device 405 and an input device 406. Illustratively, the input device 406 is a keyboard, mouse, microphone, or joystick, among other devices, and the output device 405 is a display screen, speaker (spaker), among other devices.
It should be noted that the constituent structure shown in fig. 4 does not constitute a limitation of the communication apparatus, and the communication apparatus may include more or less components than those shown in fig. 4, or combine some components, or arrange different components, in addition to the components shown in fig. 4.
In the embodiment of the present application, the chip system may be composed of a chip, and may also include a chip and other discrete devices.
In addition, acts, terms, and the like referred to between the embodiments of the present application may be mutually referenced and are not limited. In the embodiment of the present application, the name of the message exchanged between the devices or the name of the parameter in the message, etc. are only an example, and other names may also be used in the specific implementation, which is not limited.
It should be noted that in the description of the present application, the terms "primary authentication node" and "secondary authentication node" are used for the purpose of distinguishing between descriptions, and are not to be construed as indicating or implying relative importance, nor order. The "primary authentication node" may also be described as the "first authentication node" and the "secondary authentication node" may also be described as the "second authentication node".
The following describes an authentication method provided in an embodiment of the present application, taking the architecture shown in fig. 1(a) as an example. Among them, the apparatus in the following embodiments may be provided with the components shown in fig. 4.
It is understood that, in the embodiments of the present application, the authentication server, and/or the in-vehicle system, and/or the primary authentication node, and/or the secondary authentication node, and/or the child node of the secondary authentication node may perform some or all of the steps in the embodiments of the present application, and these steps are merely examples, and the embodiments of the present application may also perform other steps or various modifications of the steps. Moreover, the various steps may be performed in a different order presented in the embodiments of the application, and not all of the steps in the embodiments of the application may be performed.
As shown in fig. 5, in order to provide an authentication method according to an embodiment of the present application, the authentication method shown in fig. 5 is used for authenticating a plurality of nodes in an in-vehicle system, and the authentication method shown in fig. 5 may include steps 501 to 505.
The on-board system may be the on-board system 10 shown in fig. 1 (a). The on-board system 10 may be an on-board system of the vehicle 30 shown in fig. 1 (a). The plurality of nodes in the in-vehicle system may be a plurality of devices among the T-Box 101, the gateway 102, the OBD 103, the domain controller 104-the domain controller 106, the ADAS 107, the ECU 108-the ECU113, and the sensors 114-the sensors 115 shown in fig. 1 (b).
It should be understood that the plurality of nodes in the vehicle mounted system may include more or less nodes than those shown in fig. 1(b), without limitation.
Step 501: the authentication server acquires information of a plurality of nodes.
The authentication server may be the authentication server 20 shown in fig. 1 (a). The plurality of nodes may be a plurality of nodes in the above-described in-vehicle system.
In one possible implementation manner, the authentication server stores information of a plurality of nodes in advance, and the acquiring, by the authentication server, the information of the plurality of nodes includes: the authentication server obtains information of the plurality of nodes from a local.
In one embodiment, an equipment manufacturer or Original Equipment Manufacturer (OEM) pre-writes information for a plurality of nodes in the on-board system 10 into the authentication server 20. For example, the OEM sends information of a plurality of nodes to the authentication server 20, and the authentication server 20 receives the information of the plurality of nodes and stores the received information of the plurality of nodes locally.
In another possible implementation manner, the acquiring, by the authentication server, information of the plurality of nodes includes: the plurality of nodes send first information comprising information of the nodes to an authentication server, and the authentication server receives the first information and acquires the information of the plurality of nodes from the first information.
For example, the device manufacturer or OEM writes information of a node in the vehicle system, and the node sends the information of the node to the authentication server when the node is connected to the authentication server for the first time. Taking the example that the vehicle-mounted system comprises the T-Box, the gateway and the domain controller, the device manufacturer or OEM writes the information of the T-Box in the T-Box, the device manufacturer or OEM writes the information of the gateway in the gateway, and the device manufacturer or OEM writes the information of the domain controller in the domain controller. The T-Box sends the information of the T-Box to the authentication server when the T-Box is connected with the authentication server for the first time, the gateway sends the information of the gateway to the authentication server when the gateway is connected with the authentication server for the first time, and the domain controller sends the information of the domain controller to the authentication server when the domain controller is connected with the authentication server for the first time.
Wherein the information of the plurality of nodes may include an identification of the plurality of nodes and key information of the plurality of nodes.
Wherein the identity of the node may be used to mark the node.
Illustratively, the identification of the node may be a serial number of the node. For example: the identification of the T-Box 101 may be the serial number of the T-Box 101 and the identification of the gateway 102 may be the serial number of the gateway 102.
For example, the identity of the node may be a combination of the identity of the vehicle and the serial number of the node. For example: the identification of the T-Box 101 may be the identification of the vehicle 30 + the serial number of the T-Box 101, the identification of the gateway 102 may be the serial number of the gateway 102 + the identification of the vehicle 30, the identification of the domain controller 104 may be the identification of the vehicle 30 + the serial number of the gateway 102 + the serial number of the domain controller 104, etc.
In a possible implementation manner, the key information of the node may include a key type of the node and/or a first registration key of the node. The key type may include a symmetric key and an asymmetric key, among others. If the key type of the node is a symmetric key, the first registration key of the node may include an encrypted symmetric key of the node; if the key type of the node is an asymmetric key, the first registration key of the node may include a public key of the node.
For example, the key type of the T-Box 101 is an asymmetric key, and the first registration key of the T-Box 101 may be the public key of the T-Box 101; the key type of domain controller 104 is an asymmetric key, and the first registration key of domain controller 104 may be a public key of domain controller 104; the key type of the domain controller 105 is a symmetric key, and the first registration key of the domain controller 105 may be an encrypted symmetric key of the domain controller 105.
In another possible implementation manner, the key information of the node may not include the key type of the node. The node may send the key type of the node to the authentication server in step 504, so that the authentication server sends the authentication responses of the plurality of nodes to the plurality of nodes according to the information of the plurality of nodes and the key types of the plurality of nodes, respectively.
Step 502: a plurality of nodes in the vehicle-mounted system send authentication requests of the plurality of nodes to an authentication server.
Wherein the authentication request of the node can be used for instructing an authentication server to authenticate the node.
Optionally, the authentication request of the node includes an identification of the node.
Further optionally, the authentication request of the node further includes a key type of the node.
Optionally, the node stores an identifier of the node; alternatively, the node stores the identity of the node and the key type of the node.
Further optionally, the node further stores a second registration key of the node.
For example, a device manufacturer or OEM may write an identification of a node, a key type of the node, and a second registration key for the node in an in-vehicle system.
For example, the device manufacturer or OEM may write the identification of the T-Box 101, the key type of the T-Box 101, and the second registration key of the T-Box 101 in the T-Box 101. The device manufacturer or OEM may write in gateway 102 an identification of gateway 102, a key type of gateway 102, and a second registration key for gateway 102. The device manufacturer or OEM may write in the domain controller 105 an identification of the domain controller 105, a key type of the domain controller 105, and a second registration key of the domain controller 105. The device manufacturer or OEM may write in the ADAS 107 an identification of the ADAS 107, a key type of the ADAS 107 and a second registration key for the ADAS 107. The device manufacturer or OEM may write in the ECU 108 the identity of the ECU 108, the key type of the ECU 108, and a second registration key for the ECU 108. The device manufacturer or OEM may write in the sensor 114 the identification of the sensor 114, the key type of the sensor 114, and a second registration key for the sensor 114.
It should be understood that a device manufacturer or OEM may write more or less information than described above in a node in the on-board system, without limitation. For example, if the key type of the node is a symmetric key, the device manufacturer or OEM may not write the key type of the node in the vehicle system, that is, if the key type of the node is not stored in the node, it may indicate that the key type of the node is a symmetric key. For another example, if the authentication server stores the key type of the node, the device manufacturer or OEM may not write the key type of the node in the vehicle-mounted system, and subsequently, the authentication server may send the key type of the node to the node.
Optionally, if the key type of the node is an asymmetric key, the second registration key of the node includes a private key of the node. If the key type of the node is a symmetric key, the second registration key of the node includes an encrypted symmetric key of the node.
Further optionally, if the key type of the node is an asymmetric key, the second registration key of the node further includes a public key of the node.
In the following, a method for writing information in a node in an in-vehicle system by a device manufacturer is described, taking an example that the device manufacturer writes an identifier of the node and a second registration key of the node in the in-vehicle system.
As shown in fig. 6, a method for writing an identifier of a node and a second registration key of the node in an in-vehicle system for a device manufacturer. The method includes steps 601-607.
The method shown in fig. 6 is described by taking a node in the vehicle-mounted system as the gateway 102 as an example, and reference may be made to the method shown in fig. 6 for details in the case that the node in the vehicle-mounted system is another node.
Step 601: the device manufacturer sends the gateway 102 an authorization code for the gateway 102.
Step 602: gateway 102 receives the authorization code from the device manufacturer's gateway 102 and verifies that the authorization code for gateway 102 is correct.
Optionally, if the authorization code for gateway 102 to verify gateway 102 is incorrect, gateway 102 sends a verification failure message to the device manufacturer.
Step 603: gateway 102 sends an authentication pass message to the device manufacturer.
Step 604: the device manufacturer receives the authentication pass message from gateway 102 and generates a second registration key for gateway 102.
Step 605: the device manufacturer sends the gateway 102 identification and the second registration key for the gateway 102 to the gateway 102.
Step 606: the gateway 102 receives the identification of the gateway 102 from the device manufacturer and the second registration key of the gateway 102 and sends a write success message to the device manufacturer.
Step 607: the device manufacturer receives a write success message from gateway 102.
After step 607, the device manufacturer may also send the OEM the identification of gateway 102 and the second registration key for gateway 102, which the OEM may store and securely maintain for gateway 102.
The device manufacturer may also send information regarding the plurality of nodes in the in-vehicle system (e.g., the identities of the plurality of nodes, the key types of the plurality of nodes, second registration keys of the plurality of nodes, authorization codes of the plurality of nodes, etc.) to the OEM in one or more batches, which may store and securely maintain the information regarding the plurality of nodes. Subsequently, the OEM may write the relevant information of the node in the node of the vehicle-mounted system according to the relevant information of the plurality of nodes.
The method for writing information in the node in the vehicle-mounted system by the OEM is described below by taking as an example that the OEM writes the identifier of the node and the second registration key of the node in the vehicle-mounted system.
As shown in fig. 7, a method for writing an identity of a node and a second registration key of the node in an in-vehicle system for an OEM is provided. The method comprises steps 701-707.
The method shown in fig. 7 is described by taking a node in the vehicle-mounted system as the gateway 102 as an example, and reference may be made to the method shown in fig. 7 for details in the case that the node in the vehicle-mounted system is another node.
Step 701: the device manufacturer sends the OEM an authorization code for gateway 102, an identification of gateway 102, and a second registration key for gateway 102.
Optionally, the device manufacturer sends an encrypted authorization code for gateway 102 to the OEM, which stores the encrypted authorization code. For example: the device manufacturer encrypts the authorization code of the gateway 102, sends the encrypted authorization code of the gateway 102 to the OEM, and the OEM receives the encrypted authorization code of the gateway 102 and encrypts and stores the authorization code.
Step 702: the OEM sends the gateway 102 an authorization code for the gateway 102.
Step 703: gateway 102 receives the authorization code from the OEM's gateway 102 and verifies that the authorization code for gateway 102 is correct.
Optionally, if the authorization code for gateway 102 to verify gateway 102 is incorrect, gateway 102 sends a verification failure message to the OEM.
Step 704: gateway 102 sends an authentication pass message to the OEM.
Step 705: the OEM receives the authentication pass message from gateway 102 and sends an identification of gateway 102 and a second registration key for gateway 102 to gateway 102.
Step 706: gateway 102 receives the identification of gateway 102 from the OEM and the second registration key for gateway 102 and sends a write success message to the OEM.
Step 707: the OEM receives a write success message from gateway 102.
Optionally, if the device manufacturer does not send the second registration key of the gateway 102 to the OEM in step 701, the OEM may generate the second registration key of the gateway 102 after receiving the verification passing message from the gateway 102, and then send the identifier of the gateway 102 and the second registration key of the gateway 102 to the gateway 102.
Step 503: an authentication server receives authentication requests from a plurality of nodes.
Step 504: the authentication server sends authentication responses of the plurality of nodes to the plurality of nodes respectively according to the information of the plurality of nodes.
Wherein the authentication response of the node may be in response to the authentication request of the node.
In a possible implementation manner, the authentication request of the node includes an identifier of the node, after receiving the authentication request of the node, the authentication server obtains the key type of the node according to the authentication request of the node and the information of the node (the information of the node may include the identifier of the node, the key type of the node, and the first registration key of the node) obtained in step 501, authenticates the node according to the key type of the node, and sends the authentication response of the node to the node.
Optionally, if the key type of the node is a symmetric key, the authentication server authenticates the node by using the method shown in fig. 3, and if the key type of the node is an asymmetric key, the authentication server authenticates the node by using the method shown in fig. 2.
For example, taking the gateway 102 sending an authentication request to an authentication server, where the authentication request includes an identifier of the gateway 102, and the authentication server stores the identifier of the gateway 102, a key type of the gateway 102, and a first registration key of the gateway 102, where the key type of the gateway 102 is an asymmetric key, after receiving the authentication request of the gateway 102, the authentication server may query, according to the identifier of the gateway 102 included in the authentication request of the gateway 102, that the key type of the gateway 102 is an asymmetric key, authenticate the gateway 102 by using the method shown in fig. 2, and after the authentication is completed, send an authentication response of the gateway 102 to the gateway 102.
Illustratively, the domain controller 104 sends an authentication request to an authentication server, where the authentication request includes an identifier of the domain controller 104, and the authentication server stores the identifier of the domain controller 104, a key type of the domain controller 104, and a first registration key of the domain controller 104, where the key type of the domain controller 104 is a symmetric key, for example, after receiving the authentication request of the domain controller 104, the authentication server may query, according to the identifier of the domain controller 104 included in the authentication request of the domain controller 104, that the key type of the domain controller 104 is the symmetric key, authenticate the domain controller 104 by using the method shown in fig. 3, and after the authentication is completed, send an authentication response of the domain controller 104 to the domain controller 104.
For example, by sending an authentication request to an authentication server by the ECU 108, where the authentication request includes an identifier of the ECU 108, and the authentication server stores the identifier of the ECU 108, a key type of the ECU 108, and a first registration key of the ECU 108, where the key type of the ECU 108 is a symmetric key, for example, after receiving the authentication request of the ECU 108, the authentication server may query the identifier of the ECU 108 included in the authentication request of the ECU 108 for the key type of the ECU 108 to be the symmetric key, authenticate the ECU 108 by using the method shown in fig. 3, and after the authentication is completed, send an authentication response of the ECU 108 to the ECU 108.
For example, taking the sensor 114 sending an authentication request to an authentication server, where the authentication request includes the identifier of the sensor 114, and the authentication server stores the identifier of the sensor 114, the key type of the sensor 114, and the first registration key of the sensor 114, where the key type of the sensor 114 is a symmetric key, after receiving the authentication request of the sensor 114, the authentication server may query, according to the identifier of the sensor 114 included in the authentication request of the sensor 114, that the key type of the sensor 114 is the symmetric key, authenticate the sensor 114 by using the method shown in fig. 3, and after the authentication is completed, send an authentication response of the sensor 114 to the sensor 114.
In another possible implementation manner, the authentication request of the node includes an identifier of the node and a key type of the node, and after receiving the authentication request of the node, the authentication server may authenticate the node according to the key type of the node and send an authentication response of the node to the node.
Optionally, if the key type of the node is a symmetric key, the authentication server authenticates the node by using the method shown in fig. 3, and if the key type of the node is an asymmetric key, the authentication server authenticates the node by using the method shown in fig. 2.
Illustratively, taking the T-Box 101 to send an authentication request to the authentication server, where the authentication request includes an identifier of the T-Box 101 and a key type of the T-Box 101, where the key type of the T-Box 101 is an asymmetric key as an example, after receiving the authentication request of the T-Box 101, the authentication server may authenticate the T-Box 101 by using the method shown in fig. 2, and after the authentication is completed, send an authentication response of the T-Box 101 to the T-Box 101.
For example, taking the domain controller 105 sending an authentication request to an authentication server, where the authentication request includes an identifier of the domain controller 105 and a key type of the domain controller 105, where the key type of the domain controller 105 is an asymmetric key, the authentication server may authenticate the domain controller 105 by using the method shown in fig. 2 after receiving the authentication request of the domain controller 105, and after the authentication is completed, send an authentication response of the domain controller 105 to the domain controller 105.
For example, taking the OBD 103 sending an authentication request to an authentication server, where the authentication request includes an identifier of the OBD 103 and a key type of the OBD 103, where the key type of the OBD 103 is a symmetric key as an example, after receiving the authentication request of the OBD 103, the authentication server may authenticate the OBD 103 by using the method shown in fig. 3, and after the authentication is completed, send an authentication response of the OBD 103 to the OBD 103.
For example, taking the ADAS 107 sending an authentication request to the authentication server, where the authentication request includes an identifier of the ADAS 107 and a key type of the ADAS 107, where the key type of the ADAS 107 is a symmetric key as an example, after receiving the authentication request of the ADAS 107, the authentication server may authenticate the ADAS 107 by using the method shown in fig. 3, and after the authentication is completed, send an authentication response of the ADAS 107 to the ADAS 107.
It should be noted that, the device manufacturer or OEM may set a key type for a node according to the specific situation of the node, so as to determine the authentication method of the authentication server for the node through the key type.
In a possible implementation manner, if the node has sufficient computing power and storage resources, the device manufacturer or OEM sets the key type of the node as an asymmetric key, and subsequently, the authentication service authenticates the node by using the method shown in fig. 2; if the node does not have enough computing power and/or storage resources, the device manufacturer or OEM sets the key type of the node as a symmetric key, and subsequently, the authentication service authenticates the node using the method shown in fig. 3.
In another possible implementation manner, if the security requirement of the node is high, the device manufacturer or OEM sets the key type of the node as an asymmetric key, and subsequently, the authentication service authenticates the node by using the method shown in fig. 2; if the security requirement of the node is low, the device manufacturer or OEM sets the key type of the node as a symmetric key, and subsequently, the authentication service authenticates the node by using the method shown in fig. 3.
Optionally, the authentication response of the node is used to indicate that the node has succeeded or failed in authentication.
Illustratively, the authentication response of the node may include 1-bit indication information. For example, if the authentication response of the node includes 0, it may indicate that the node has successfully authenticated, and if the authentication response of the node includes 1, it may indicate that the node has failed to authenticate; or, if the authentication response of the node includes 0, it may indicate that the node authentication has failed, and if the authentication response of the node includes 1, it may indicate that the node authentication has succeeded.
Optionally, if the node is successfully authenticated, the authentication server sends an authentication response of the node to the node, where the authentication response of the node is used to indicate that the node is successfully authenticated; if the node fails to authenticate, the authentication server does not send a message to the node.
For example, the authentication response of the node may include a 1-bit indication, and for example, if the gateway 102 successfully authenticates, the authentication server may send the 1-bit indication (e.g., 0) to the gateway 102 so that the gateway 102 knows that the authentication is successful.
For example, the authentication response of the node may include an identification of the node, and for example, if the OBD 103 is successfully authenticated, the authentication server may send the identification of the OBD 103 to the OBD 103 so that the OBD 103 knows that its authentication is successful.
For example, the authentication response of the node may include an identifier of a parent node of the node and key information of the parent node of the node, and taking the ECU 111 authentication success as an example, the authentication server may send the identifier of the domain controller 106 and the key information of the domain controller 106 to the ECU 111 so that the ECU 111 knows that the authentication is successful, and subsequently, when the vehicle 30 is started, the authentication may be performed with the domain controller 106 according to the identifier of the domain controller 106 and the key information of the domain controller 106.
Illustratively, the authentication response of the node may include an identifier of a child node of the node and key information of the child node of the node, and taking the authentication success of the gateway 102 as an example, the authentication server sends the identifier of the ADAS 107 and the key information of the ADAS 107 to the gateway 102 so that the gateway 102 knows the authentication success, and then, when the vehicle 30 starts, the vehicle may authenticate with the ADAS 107 according to the identifier of the ADAS 107 and the key information of the ADAS 107.
For example, the authentication response of the node may include the identifier of the parent node of the node, the key information of the parent node of the node, the identifier of the child node of the node, and the key information of the child node of the node, and taking the authentication success of the domain controller 105 as an example, the authentication server sends the identifier of the gateway 102, the key information of the gateway 102, the identifier of the ECU 110, and the key information of the ECU 110 to the domain controller 105, so that the domain controller 105 knows the authentication success, and then, when the vehicle 30 starts, the authentication may be performed with the gateway 102 according to the identifier of the gateway 102 and the key information of the gateway 102, and the authentication may be performed with the ECU 110 according to the identifier of the ECU 110 and the key information of the ECU 110.
For example, taking the ECU109 authentication failure as an example, the authentication server does not send a message to the ECU109, the ECU109 does not receive the authentication response of the node within a preset time (e.g., 10 seconds (s)), and the ECU109 may consider that the authentication has failed.
Step 505: a plurality of nodes in the in-vehicle system receive authentication responses from the plurality of nodes of the authentication server.
It should be noted that the authentication server may also authenticate the plurality of nodes in other manners, which is not limited. For example, the authentication server may also authenticate a plurality of nodes (described as authentication server authenticating gateway 102) by using the following method (step 1-step 8).
Step 1: the gateway 102 sends the identification of the gateway to the authentication server.
Step 2: the authentication server receives an Identification (ID) from the gateway 102 and generates a random number.
And step 3: the authentication server sends the random number (msg1) to the gateway 102.
And 4, step 4: the gateway 102 receives the random number from the authentication server, and calculates a signature value (Sig) from the random numberpk(msg1,ID))。
And 5: gateway 102 sends the signature value to the authentication server.
Step 6: the authentication server receives the signature value from the gateway 102 and calculates the signature value from the random number.
And 7: if the signature value calculated by the authentication server is the same as the received signature value, an authentication success message is sent to the gateway 102.
And 8: gateway 102 receives an authentication success message from the authentication server.
Based on the method shown in fig. 5, the authentication server may receive authentication requests from a plurality of nodes in the vehicle-mounted system, authenticate the plurality of nodes according to the acquired information of the plurality of nodes, and send authentication responses of the plurality of nodes to the plurality of nodes, so that the plurality of nodes in the vehicle-mounted system may be authenticated, thereby improving the security of the vehicle-mounted system.
Optionally, in a first implementation scenario of the embodiment shown in fig. 5, the plurality of nodes include a primary authentication node and a plurality of secondary authentication nodes, and the primary authentication node is connected to the plurality of secondary authentication nodes.
Further optionally, if the plurality of nodes are authenticated successfully, the method shown in fig. 5 further includes steps 506 to 510.
Step 506: the authentication server sends the identification of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node.
Wherein the primary authentication node may be the gateway 102 shown in fig. 1 (b). The secondary authentication node may be a plurality of nodes among the T-Box 101, OBD 103, domain controller 104-domain controller 106, and ADAS 107 shown in fig. 1 (b).
Optionally, the authentication server sends the identifier of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node through the T-Box 101.
Illustratively, taking a primary authentication node as the gateway 102 and a secondary authentication node as the domain controller 104 as an example, the authentication server sends the identifier of the domain controller 104 and the key information of the domain controller 104 to the T-Box 101, and after receiving the identifier of the domain controller 104 and the key information of the domain controller 104, the T-Box 101 sends the identifier of the domain controller 104 and the key information of the domain controller 104 to the gateway 102.
Illustratively, taking the primary authentication node as the gateway 102 and the secondary authentication node as the domain controller 105 as an example, the authentication server passes the identifier of the domain controller 105 and the key information of the domain controller 105 to the gateway 102 through the T-Box 101.
Optionally, if the key type of the secondary authentication node is an asymmetric key, the key information of the secondary authentication node includes a public key of the secondary authentication node; if the key type of the secondary authentication node is a symmetric key, the key information of the secondary authentication node comprises the symmetric key of the secondary authentication node.
For example, if the key type of the OBD 103 is a symmetric key, the authentication server sends the identification of the OBD 103 and the symmetric key of the OBD 103 to the gateway 102.
For another example, if the key type of domain controller 104 is an asymmetric key, the authentication server sends the identity of domain controller 104 and the public key of domain controller 104 to gateway 102.
Optionally, the identifier of the secondary authentication node and the key information of the secondary authentication node are encrypted with the first registration key of the primary authentication node.
For example, if the key type of the domain controller 105 is a symmetric key and the key type of the gateway 102 is an asymmetric key, the authentication server sends the gateway 102 the identity of the domain controller 105 and the symmetric key of the domain controller 105, wherein the identity of the domain controller 105 and the symmetric key of the domain controller 105 are encrypted with the public key of the gateway 102.
For another example, if the key type of the T-Box 101 is an asymmetric key and the key type of the gateway 102 is an asymmetric key, the authentication server sends the identifier of the T-Box 101 and the public key of the T-Box 101 to the gateway 102, wherein the identifier of the T-Box 101 and the public key of the T-Box 101 are encrypted by the public key of the gateway 102.
Step 507: the primary authentication node receives the identity of the secondary authentication node from the authentication server and key information for the secondary authentication node.
Optionally, the identifier of the secondary authentication node and the key information of the secondary authentication node are encrypted by using a first registration key of the primary authentication node, and if the key type of the primary authentication node is an asymmetric key (that is, the first registration key of the primary authentication node includes a public key of the primary authentication node), the primary authentication node decrypts the encrypted identifier of the secondary authentication node and the key information of the secondary authentication node by using a private key of the primary authentication node; if the key type of the primary authentication node is a symmetric key (i.e. the first registration key of the primary authentication node includes the symmetric key of the primary authentication node), the primary authentication node decrypts the encrypted identifier of the secondary authentication node and the key information of the secondary authentication node by using the symmetric key of the primary authentication node, so that the primary authentication node can obtain the identifier of the secondary authentication node and the key information of the secondary authentication node.
Illustratively, taking the key type of the gateway 102 as an asymmetric key, the gateway 102 receives the identifier of the domain controller 106 and the key information of the domain controller 106 from the authentication server, wherein, for example, the identifier of the domain controller 106 and the key information of the domain controller 106 are encrypted by the public key of the gateway 102, the gateway 102 receives the encrypted identifier of the domain controller 106 and the key information of the domain controller 106, and decrypts the encrypted identifier of the domain controller 106 and the key information of the domain controller 106 by the private key of the gateway 102.
Step 508: and the authentication server sends the identification of the main authentication node and the key information of the main authentication node to the secondary authentication node.
Optionally, the authentication server sends the identifier of the primary authentication node and the key information of the primary authentication node to the secondary authentication node through the T-Box 101.
For example, taking the primary authentication node as the gateway 102 and the secondary authentication node as the domain controller 104, the authentication server sends the identifier of the gateway 102 and the key information of the gateway 102 to the T-Box 101, the T-Box 101 sends the identifier of the gateway 102 and the key information of the gateway 102 to the gateway 102 after receiving the identifier of the gateway 102 and the key information of the gateway 102, and the gateway 102 sends the identifier of the gateway 102 and the key information of the gateway 102 to the domain controller 104 after receiving the identifier of the gateway 102 and the key information of the gateway 102.
Illustratively, taking the primary authentication node as the gateway 102 and the secondary authentication node as the domain controller 105 as an example, the authentication server passes the identifier of the gateway 102 and the key information of the gateway 102 through the T-Box 101 and the gateway 102 to the domain controller 105.
Optionally, if the key type of the master authentication node is an asymmetric key, the key information of the master authentication node includes a public key of the master authentication node; if the key type of the master authentication node is a symmetric key, the key information of the master authentication node comprises the symmetric key of the master authentication node.
For example, if the key type of the gateway 102 is a symmetric key, the authentication server sends the ADAS 107 an identification of the gateway 102 and the symmetric key of the gateway 102.
For another example, if the key type of the gateway 102 is an asymmetric key, the authentication server sends the identification of the gateway 102 and the public key of the gateway 102 to the OBD 103.
Optionally, the identifier of the primary authentication node and the key information of the primary authentication node are encrypted with the first registration key of the secondary authentication node.
For example, if the key type of the domain controller 105 is a symmetric key and the key type of the gateway 102 is an asymmetric key, the authentication server sends the identifier of the gateway 102 and the public key of the gateway 102 to the domain controller 105, wherein the identifier of the gateway 102 and the public key of the gateway 102 are encrypted with the symmetric key of the domain controller 105.
For another example, if the key type of the T-Box 101 is an asymmetric key and the key type of the gateway 102 is an asymmetric key, the authentication server sends the identifier of the gateway 102 and the public key of the gateway 102 to the T-Box 101, wherein the identifier of the gateway 102 and the public key of the gateway 102 are encrypted by the public key of the T-Box 101.
Step 509: the secondary authentication node receives the identity of the primary authentication node and key information of the primary authentication node from the authentication server.
Optionally, the identifier of the primary authentication node and the key information of the primary authentication node are encrypted by using a first registration key of the secondary authentication node, and if the key type of the secondary authentication node is an asymmetric key (that is, the first registration key of the secondary authentication node includes a public key of the secondary authentication node), the secondary authentication node decrypts the encrypted identifier of the primary authentication node and the key information of the primary authentication node by using a private key of the secondary authentication node; if the key type of the secondary authentication node is a symmetric key (that is, the first registration key of the secondary authentication node includes the symmetric key of the secondary authentication node), the secondary authentication node decrypts the encrypted identifier of the primary authentication node and the key information of the primary authentication node by using the symmetric key of the secondary authentication node, so that the secondary authentication node can acquire the identifier of the primary authentication node and the key information of the primary authentication node.
Illustratively, taking the key type of the domain controller 106 as an asymmetric key, the domain controller 106 receives the identifier of the gateway 102 and the key information of the gateway 102 from the authentication server, wherein, for example, the identifier of the gateway 102 and the key information of the gateway 102 are encrypted by a public key of the domain controller 106, the domain controller 106 receives the encrypted identifier of the gateway 102 and the key information of the gateway 102, and decrypts the encrypted identifier of the gateway 102 and the key information of the gateway 102 by a private key of the domain controller 106.
Illustratively, taking the key type of the domain controller 105 as a symmetric key, the domain controller 105 receives the identifier of the gateway 102 and the key information of the gateway 102 from the authentication server, wherein the identifier of the gateway 102 and the key information of the gateway 102 are encrypted by the symmetric key of the domain controller 105, and the domain controller 105 receives the encrypted identifier of the gateway 102 and the key information of the gateway 102 and decrypts the encrypted identifier of the gateway 102 and the key information of the gateway 102 by the symmetric key of the domain controller 105.
Step 510: and the primary authentication node authenticates the secondary authentication node.
Optionally, the primary authentication node performs bidirectional authentication on the secondary authentication node according to the identifier of the primary authentication node, the key information of the primary authentication node, the identifier of the secondary authentication node, and the key information of the secondary authentication node.
The method for the primary authentication node to perform bidirectional authentication on the secondary authentication node according to the identifier of the primary authentication node, the key information of the primary authentication node, the identifier of the secondary authentication node, and the key information of the secondary authentication node may refer to the method shown in fig. 2.
Optionally, the primary authentication node performs unidirectional authentication on the secondary authentication node according to the identifier of the primary authentication node and the key information of the primary authentication node.
The method for the primary authentication node to perform the one-way authentication on the secondary authentication node according to the identifier of the primary authentication node and the key information of the primary authentication node may refer to the method shown in fig. 3.
It should be noted that, if the primary authentication node performs the unidirectional authentication on the secondary authentication node according to the identifier of the primary authentication node and the key information of the primary authentication node, step 506 and step 507 may not be performed.
Optionally, the primary authentication node performs unidirectional authentication on the secondary authentication node according to the identifier of the secondary authentication node and the key information of the secondary authentication node.
The method for the primary authentication node to perform the one-way authentication on the secondary authentication node according to the identifier of the secondary authentication node and the key information of the secondary authentication node may refer to the method shown in fig. 3.
If the primary authentication node performs the one-way authentication on the secondary authentication node according to the identifier of the secondary authentication node and the key information of the secondary authentication node, step 508 and step 509 may not be performed.
Optionally, if the primary authentication node successfully authenticates the secondary authentication node, step 511 is executed; and if the primary authentication node fails to authenticate the secondary authentication node, the vehicle-mounted system is prohibited from being started.
It should be noted that, in practical applications, the steps 508 to 509 may be performed first, and then the steps 506 to 507 may be performed, which is not limited.
Based on the first implementation scenario of the embodiment shown in fig. 5, the primary authentication node may receive the identifier of the secondary authentication node and the key information of the secondary authentication node from the authentication server, and the secondary authentication node may receive the identifier of the primary authentication node and the key information of the primary authentication node from the authentication server, so that the primary authentication node may perform bidirectional authentication on the secondary authentication node according to the identifier of the primary authentication node, the key information of the primary authentication node, the identifier of the secondary authentication node, and the key information of the secondary authentication node.
Optionally, in a second implementation scenario of the embodiment shown in fig. 5, the multiple nodes further include child nodes of multiple secondary authentication nodes, and the secondary authentication nodes are connected to the child nodes of the secondary authentication nodes. The first implementation scenario of the embodiment shown in fig. 5 further comprises steps 511-516.
Step 511: the authentication server generates authentication keys for child nodes of the plurality of secondary authentication nodes.
Among them, the child nodes of the plurality of secondary authentication nodes may be a plurality of nodes among the ECU 108 to the ECU113, and the sensors 114 to the sensors 115 shown in fig. 1 (b).
Optionally, the authentication keys of the child nodes of the secondary authentication node that are the same as the secondary authentication node are the same.
For example, the authentication keys of the child node ECU 108 and the ECU109 of the domain controller 104 are the same.
For another example, the child node ECUs 111, 112, and 113 of the domain controller 106 have the same authentication key.
It should be noted that, the authentication keys of the child nodes of the secondary authentication node that is the same as the secondary authentication node are the same, so the secondary authentication node does not need to store the authentication keys of the child nodes of a plurality of secondary authentication nodes, which can save storage resources, and the secondary authentication node does not need to manage a plurality of authentication keys, thereby reducing the burden of the secondary authentication node.
Optionally, the authentication server may generate an authentication key of the node for the node in the vehicle-mounted system, and the authentication keys of the nodes having the connection relationship are the same.
For example, the authentication server may generate an authentication key for domain controller 104, an authentication key for domain controller 106, and an authentication key for OBD 103, where the authentication key for domain controller 104 is the same as the authentication key for domain controller 106, and the authentication key for domain controller 104 is different from the authentication key for OBD 103.
Step 512: the authentication server sends the secondary authentication node an identification of a child node of the secondary authentication node and an authentication key.
Optionally, the authentication server sends the identifier of the child node of the secondary authentication node and the authentication key to the secondary authentication node through the T-Box 101.
For example, taking the primary authentication node as the gateway 102, the secondary authentication node as the domain controller 104, and the child node of the secondary authentication node as the ECU 108, the authentication server sends the identifier of the ECU 108 and the authentication key to the T-Box 101, after the T-Box 101 receives the identifier of the ECU 108 and the authentication key, the identifier of the ECU 108 and the authentication key are sent to the gateway 102, and the gateway 102 receives the identifier of the ECU 108 and the authentication key, and sends the identifier of the ECU 108 and the authentication key to the domain controller 104.
Illustratively, taking the primary authentication node as the gateway 102, the secondary authentication node as the domain controller 105, and the child node of the secondary authentication node as the ECU 110, the authentication server passes the identity of the ECU 110 and the authentication key through the T-Box 101 and the gateway 102 to the domain controller 105.
Optionally, the identifier of the child node of the secondary authentication node and the authentication key are encrypted with the first registration key of the secondary authentication node.
For example, if the key type of domain controller 105 is a symmetric key and the key type of ECU 110 is a symmetric key, the authentication server sends the identity of ECU 110 and the symmetric key of ECU 110 to domain controller 105, where the identity of ECU 110 and the symmetric key of ECU 110 are encrypted with the symmetric key of domain controller 105.
Step 513: the secondary authentication node receives an identification of a child node of the secondary authentication node from the authentication server and an authentication key.
Optionally, the identifier of the child node of the secondary authentication node and the authentication key are encrypted by using the first registration key of the secondary authentication node, and if the key type of the secondary authentication node is an asymmetric key (that is, the first registration key of the secondary authentication node includes the public key of the secondary authentication node), the secondary authentication node decrypts the encrypted identifier of the child node of the secondary authentication node and the authentication key by using the private key of the secondary authentication node; if the key type of the secondary authentication node is a symmetric key (that is, the first registration key of the secondary authentication node includes the symmetric key of the secondary authentication node), the secondary authentication node decrypts the encrypted identifier of the child node of the secondary authentication node and the authentication key by using the symmetric key of the secondary authentication node, so that the secondary authentication node can obtain the identifier of the child node of the secondary authentication node and the authentication key.
For example, taking the key type of domain controller 105 as an asymmetric key, domain controller 105 receives the id of ECU 110 and the authentication key from the authentication server, where the id of ECU 110 and the authentication key are encrypted by the public key of domain controller 105, domain controller 105 receives the encrypted id of ECU 110 and the authentication key, and decrypts the encrypted id of ECU 110 and the authentication key by the private key of domain controller 105.
Step 514: the authentication server sends the identification of the secondary authentication node and the authentication key to the child nodes of the secondary authentication node.
Optionally, the authentication server sends the identifier of the secondary authentication node and the authentication key to the child node of the secondary authentication node through the T-Box 101.
Illustratively, taking the primary authentication node as the gateway 102, the secondary authentication node as the ADAS 107, and the child node of the secondary authentication node as the sensor 114, the authentication server sends the identifier of the ADAS 107 and the authentication key to the T-Box 101, the T-Box 101 sends the identifier of the ADAS 107 and the authentication key to the gateway 102 after receiving the identifier of the ADAS 107 and the authentication key, the gateway 102 sends the identifier of the ADAS 107 and the authentication key to the ADAS 107 after receiving the identifier of the ADAS 107 and the authentication key, and the ADAS 107 sends the identifier of the ADAS 107 and the authentication key to the sensor 114 after receiving the identifier of the ADAS 107 and the authentication key.
Illustratively, taking the primary authentication node as the gateway 102, the secondary authentication node as the domain controller 106, and the child node of the secondary authentication node as the ECU113, the authentication server passes the identifier of the domain controller 106 and the authentication key through the T-Box 101, the gateway 102, and the domain controller 106 to the ECU 113.
Optionally, the identifier of the secondary authentication node and the authentication key are encrypted with the first registration key of the child node of the secondary authentication node.
For example, if the key type of the domain controller 105 is a symmetric key and the key type of the ECU 110 is a symmetric key, the authentication server sends the identity of the domain controller 105 and the authentication key to the ECU 110, wherein the identity of the domain controller 105 and the authentication key are encrypted with the symmetric key of the ECU 110.
Step 515: the child node of the secondary authentication node receives the identity from the secondary authentication node and the authentication key.
Optionally, the identifier of the secondary authentication node and the authentication key are encrypted with the first registration key of the child node of the secondary authentication node, and if the key type of the child node of the secondary authentication node is an asymmetric key (that is, the first registration key of the child node of the secondary authentication node includes the public key of the child node of the secondary authentication node), the child node of the secondary authentication node decrypts the encrypted identifier of the secondary authentication node and the authentication key with the private key of the child node of the secondary authentication node; if the key type of the child node of the secondary authentication node is a symmetric key (that is, the first registration key of the child node of the secondary authentication node includes the symmetric key of the child node of the secondary authentication node), the child node of the secondary authentication node decrypts the encrypted identifier of the secondary authentication node and the authentication key by using the symmetric key of the child node of the secondary authentication node, so that the child node of the secondary authentication node can obtain the identifier of the secondary authentication node and the authentication key.
For example, taking the key type of the ECU 111 as a symmetric key, the ECU 111 receives the identifier of the domain controller 106 and the authentication key from the authentication server, wherein the identifier of the domain controller 106 and the authentication key are encrypted by the symmetric key of the ECU 111, and the ECU 111 receives the encrypted identifier of the domain controller 106 and the encrypted authentication key and decrypts the encrypted identifier of the domain controller 106 and the encrypted authentication key by the symmetric key of the ECU 111.
Step 516: and the secondary authentication node authenticates the child nodes of the secondary authentication node.
Optionally, the secondary authentication node performs bidirectional authentication on the child node of the secondary authentication node according to the identifier of the secondary authentication node, the identifier of the child node of the secondary authentication node, and the authentication key.
The method for the secondary authentication node to perform bidirectional authentication on the child node of the secondary authentication node according to the identifier of the secondary authentication node, the identifier of the child node of the secondary authentication node, and the authentication key may refer to the method shown in fig. 2.
Optionally, the secondary authentication node performs unidirectional authentication on the child nodes of the secondary authentication node according to the identifier of the secondary authentication node and the authentication key.
The method for the secondary authentication node to perform the unidirectional authentication on the child nodes of the secondary authentication node according to the identifier of the secondary authentication node and the authentication key may refer to the method shown in fig. 3.
If the secondary authentication node performs one-way authentication on the child nodes of the secondary authentication node according to the identifier of the secondary authentication node and the authentication key, step 512 and step 513 may not be executed.
Optionally, the secondary authentication node performs unidirectional authentication on the child node of the secondary authentication node according to the identifier of the child node of the secondary authentication node and the authentication key.
The method for the secondary authentication node to perform the unidirectional authentication on the child node of the secondary authentication node according to the identifier of the child node of the secondary authentication node and the authentication key may refer to the method shown in fig. 3.
It should be noted that, if the secondary authentication node performs the unidirectional authentication on the child node of the secondary authentication node according to the identifier of the child node of the secondary authentication node and the authentication key, step 514 and step 515 may not be performed.
Optionally, if the primary authentication node successfully authenticates the secondary authentication node, the vehicle-mounted system is started; and if the primary authentication node fails to authenticate the secondary authentication node, the vehicle-mounted system is prohibited from being started.
It should be noted that, in practical applications, the steps 514 to 515 may be performed first, and then the steps 512 to 513 may be performed, which is not limited.
Based on the second implementation scenario of the embodiment shown in fig. 5, the authentication server may generate an authentication key for each of the sub-nodes of the secondary authentication nodes, send the identifiers of the sub-nodes of the secondary authentication nodes and the authentication key to the secondary authentication nodes, and send the identifiers of the secondary authentication nodes and the authentication key to the sub-nodes of the secondary authentication nodes, so that the secondary authentication nodes perform bidirectional authentication on the sub-nodes of the secondary authentication nodes according to the identifiers of the secondary authentication nodes, the identifiers of the sub-nodes of the secondary authentication nodes, and the authentication key.
Optionally, in a third implementation scenario of the embodiment shown in fig. 5, the vehicle-mounted system further includes a replacement node, and the method shown in fig. 5 further includes steps 517 to 521.
517: the authentication server acquires the identification of the replacement node and the key information of the replacement node.
Wherein, the replacement node may be a node after replacing the nodes in the T-Box 101, the gateway 102, the OBD 103, the domain controller 104-106, the ADAS 107, the ECU 108-ECU113, and the sensor 114-sensor 115 shown in fig. 1 (b); alternatively, the replacement node may be a node in which components of the nodes in the T-Box 101, the gateway 102, the OBD 103, the domain controller 104-106, the ADAS 107, the ECU 108-ECU113, and the sensors 114-115 shown in fig. 1(b) are replaced.
For example, the replacement node may be a new gateway after the gateway 102 is replaced, or the replacement node may be a domain controller after components of the domain controller 104 are replaced.
The description of step 517 may refer to the above detailed description of step 501, and is not repeated here.
Step 518: the replacement node sends an authentication request of the replacement node to the authentication server.
Wherein the authentication request of the replacement node is used for indicating authentication of the replacement node.
The description of step 518 may refer to the detailed description of step 502, which is not repeated herein.
Step 519: the authentication server receives an authentication request from the replacement node.
Step 520: and the authentication server sends the authentication response of the replacement node to the replacement node according to the identification of the replacement node and the key information of the replacement node.
Wherein the authentication response of the replacement node may be in response to the authentication request of the replacement node.
The description of step 520 may refer to the above detailed description of step 504, and is not repeated here.
Step 521: the replacement node receives an authentication response from the authentication server.
Based on the third implementation scenario of the embodiment shown in fig. 5, the authentication server may receive the authentication request of the replacement node, authenticate the replacement node according to the acquired identifier of the replacement node and the key information of the replacement node, send the authentication response of the replacement node to the replacement node, and authenticate the replacement node, thereby improving the security of the vehicle-mounted system.
Optionally, in the fourth implementation scenario of the embodiment shown in fig. 5, if the replacing node is successfully authenticated and the replacing node has a parent node, the third implementation scenario of the embodiment shown in fig. 5 further includes steps 522 to 526.
Step 522: the authentication server transmits the identification of the replacement node and the key information of the replacement node to the parent node of the replacement node.
Optionally, the primary authentication node is a parent node of the secondary authentication node, and the secondary authentication node is a parent node of a child node of the secondary authentication node.
Illustratively, if the replacement node is domain controller 104, the parent node of the replacement node may be gateway 102; if the replacement node is a sensor 114, the parent node of the replacement node may be the ADAS 107.
Optionally, if the replacement node is a child node of the secondary authentication node, the key information of the replacement node includes the authentication key.
If the replacement node is the secondary authentication node, the description of step 522 may refer to the detailed description of step 506, and is not repeated here.
If the replacement node is a child node of the secondary authentication node, the description of step 522 may refer to the detailed description of step 512, which is not described herein again.
Step 523: the parent node of the replacement node receives the identification of the replacement node from the authentication server and the key information of the replacement node.
If the replacement node is the secondary authentication node, the description of step 523 may refer to the detailed description of step 507, which is not described herein again.
If the replacement node is a child node of the secondary authentication node, the description of step 523 may refer to the detailed description of step 513, which is not described herein again.
Step 524: the authentication server transmits, to the replacement node, an identification of a parent node of the replacement node, and key information of the parent node of the replacement node.
Optionally, if the replacement node is a child node of the secondary authentication node, the key information of the parent node of the replacement node includes the authentication key.
If the replacement node is the secondary authentication node, the description of step 524 may refer to the detailed description of step 508, which is not described herein again.
If the replacement node is a child node of the secondary authentication node, the description of step 524 may refer to the detailed description of step 514, which is not described herein again.
Step 525: the replacement node receives, from the authentication server, an identification of a parent node of the replacement node, and key information of the parent node of the replacement node.
If the replacement node is the secondary authentication node, the description of step 525 may refer to the detailed description of step 509, which is not described herein again.
If the replacement node is a child node of the secondary authentication node, the description of step 525 may refer to the detailed description of step 515, which is not described herein again.
Step 526: the replacement node performs mutual authentication with the parent node of the replacement node through the identifier of the replacement node, the key information of the replacement node, the identifier of the parent node of the replacement node, and the key information of the parent node of the replacement node.
Optionally, the method for the replacement node to perform bidirectional authentication with the parent node of the replacement node through the identifier of the replacement node, the key information of the replacement node, the identifier of the parent node of the replacement node, and the key information of the parent node of the replacement node may refer to the method shown in fig. 2.
Optionally, if the parent node of the replacement node and the replacement node are successfully authenticated, the replacement node sends an authentication completion message to the authentication server, where the authentication completion message is used to indicate that the parent node of the replacement node and the replacement node is successfully authenticated.
Optionally, if the parent node of the replacement node and the replacement node fails to authenticate, the replacement node sends an authentication failure message to the authentication server, where the authentication failure message is used to indicate that the parent node of the replacement node and the replacement node fails to authenticate.
It should be noted that, in practical applications, the steps 524 to 525 may be performed first, and then the steps 523 to 524 may be performed, without limitation.
Based on the fourth implementation scenario of the embodiment shown in fig. 5, the parent node of the replacement node may receive the identifier of the replacement node and the key information of the replacement node from the authentication server, and the replacement node may receive the identifier of the parent node of the replacement node and the key information of the parent node of the replacement node from the server, so that the replacement node performs bidirectional authentication with the parent node of the replacement node through the identifier of the replacement node, the key information of the replacement node, the identifier of the parent node of the replacement node, and the key information of the parent node of the replacement node.
Optionally, in the fifth implementation scenario of the embodiment shown in fig. 5, if the authentication of the replacement node is successful and the replacement node has a child node, the third implementation scenario of the embodiment shown in fig. 5 or the fourth implementation scenario of the embodiment shown in fig. 5 further includes steps 527 to 531.
Step 527: the authentication server sends the identifier of the child node of the replacement node and the key information of the child node of the replacement node to the replacement node.
Optionally, the secondary authentication node is a child node of the primary authentication node.
Illustratively, if the replacement node is a gateway 102, the child nodes of the replacement node may include one or more of a T-Box 101, an OBD 103, a domain controller 104-a domain controller 106, and an ADAS 107. If the replacement node is a domain controller 104, the child nodes of the replacement node may include an ECU 108 and/or an ECU 109.
Optionally, the child node of the replacement node is a child node of the secondary authentication node, and the key information of the child node of the replacement node includes the authentication key.
If the replacement node is the master authentication node, the description of step 527 may refer to the detailed description of step 506, which is not described herein again.
If the replacement node is a secondary authentication node, the description of step 527 may refer to the detailed description of step 512, which is not described herein again.
Step 528: the replacement node receives from the authentication server an identification of a child node of the replacement node and key information of the child node of the replacement node.
If the replacement node is the primary authentication node, the description of step 528 may refer to the detailed description of step 507, which is not described herein again.
If the replacement node is the secondary authentication node, the description of step 528 may refer to the detailed description of step 513, and is not repeated here.
Step 529: and the authentication server sends the identification of the replacement node and the key information of the replacement node to the child nodes of the replacement node.
Optionally, the child node of the replacement node is a child node of the secondary authentication node, and the key information of the replacement node includes an authentication key.
If the replacement node is the primary authentication node, the description of step 529 may refer to the detailed description of step 508, which is not described herein again.
If the replacement node is a secondary authentication node, the description of step 529 may refer to the specific description of step 514, and is not described herein again.
Step 530: the child node of the replacement node receives the identification of the replacement node of the authentication server, and the key information of the replacement node.
If the replacement node is the primary authentication node, the description of step 530 may refer to the detailed description of step 509, which is not described herein again.
If the replacement node is the secondary authentication node, the description of step 530 may refer to the detailed description of step 515, which is not described herein again.
Step 531: the replacing node carries out bidirectional authentication with the child node of the replacing node through the identifier of the child node of the replacing node, the key information of the child node of the replacing node, the identifier of the replacing node, the key information of the replacing node and the child node of the replacing node.
Optionally, the method for the replacement node to perform bidirectional authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node, and the key information of the replacement node may refer to the method shown in fig. 2.
Optionally, if the child nodes of the replacement node and the replacement node are successfully authenticated, the node sends an authentication completion message to the authentication server, where the authentication completion message is used to indicate that the child nodes of the replacement node and the replacement node are successfully authenticated.
Optionally, if the child nodes of the replacement node and the replacement node fail to authenticate, the node sends an authentication failure message to the authentication server, where the authentication failure message is used to indicate that the child nodes of the replacement node and the replacement node fail to authenticate.
It should be noted that, in practical applications, the steps 529 to 530 may be executed first, and then the steps 527 to 528 may be executed, which is not limited.
Based on the fifth implementation scenario of the embodiment shown in fig. 5, the replacement node may receive the identifier of the child node of the replacement node and the key information of the child node of the replacement node from the authentication server, and the child node of the replacement node may receive the table of the replacement node and the key information of the replacement node from the authentication server, so that the replacement node performs bidirectional authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node, and the key information of the replacement node.
The method shown in fig. 5 is a specific description of the authentication method provided in the embodiment of the present application in terms of interaction between a vehicle-mounted system and an authentication server, and the authentication method provided in the embodiment of the present application is described in terms of interaction between a primary authentication node, a secondary authentication node, and a child node of the secondary authentication node and the authentication server.
As shown in fig. 8, for another authentication method provided in the embodiment of the present application, the authentication method shown in fig. 8 may include steps 801 to 820.
Step 801: the authentication server acquires information of a plurality of nodes.
Step 802: the master authentication node sends an authentication request of the master authentication node to an authentication server.
The master authentication node may be a master authentication node initially deployed; alternatively, the master authentication node may be a master authentication node after the device is replaced.
For example, the primary authentication node may be the gateway 102 shown in fig. 1 (b).
As another example, the master authentication node may be a node after the gateway 102 is replaced.
Step 803: the authentication server receives an authentication request from a master authentication node.
Step 804: the authentication server sends an authentication response of the master authentication node to the master authentication node.
Step 805: the primary authentication node receives an authentication response from the primary authentication node of the authentication server.
The descriptions of step 801 to step 805 may refer to the detailed descriptions of step 501 to step 505, and are not described herein again.
Step 806: the secondary authentication node sends an authentication request of the secondary authentication node to the authentication server.
The secondary authentication node is initially deployed; or the secondary authentication node is the secondary authentication node after the equipment is replaced.
For example, the secondary authentication node may be one or more of the T-Box 101, OBD 103, domain controller 104-domain controller 106, and ADAS 107 shown in fig. 1 (b).
As another example, the secondary authentication node may be a node in which one or more of the T-Box 101, the OBD 103, the domain controller 104-the domain controller 106, and the ADAS 107 are replaced.
Step 807: the authentication server receives an authentication request from the secondary authentication node.
Step 808: the authentication server sends an authentication response of the secondary authentication node to the secondary authentication node.
Step 809: the secondary authentication node receives an authentication response from the secondary authentication node of the authentication server.
The descriptions of step 806 to step 809 may refer to the detailed descriptions of step 502 to step 505, which are not described herein again.
Step 810: the child node of the secondary authentication node sends an authentication request of the child node of the secondary authentication node to the authentication server.
The child nodes of the secondary authentication nodes are the child nodes of the secondary authentication nodes which are initially deployed; or the child node of the secondary authentication node is the child node of the secondary authentication node after the device is replaced.
For example, the child nodes of the secondary authentication node may be one or more of the ECU 108-ECU113, sensor 114-sensor 115 shown in fig. 1 (b).
For another example, the child nodes of the secondary authentication node may be nodes in which one or more of the ECU 108 to the ECU113, the sensor 114 to the sensor 115 shown in fig. 1(b) are replaced.
Step 811: the authentication server receives an authentication request from a child node of the secondary authentication node.
Step 812: the authentication server sends an authentication response of the child node of the secondary authentication node to the child node of the secondary authentication node.
Step 813: the child node of the secondary authentication node receives an authentication response from the child node of the secondary authentication node of the authentication server.
The descriptions of step 810-step 813 may refer to the detailed descriptions of step 502-step 505, which are not repeated herein.
Step 814: the authentication server sends the identification of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node.
Step 815: the primary authentication node receives the identity of the secondary authentication node from the authentication server and key information for the secondary authentication node.
Step 816: and the authentication server sends the identification of the main authentication node and the key information of the main authentication node to the secondary authentication node.
Step 817: the secondary authentication node receives the identity of the primary authentication node and key information of the primary authentication node from the authentication server.
The descriptions of steps 814 to 817 may refer to the detailed descriptions of steps 506 to 509, and are not described herein again.
Step 818: the authentication server generates an authentication key for a child node of the secondary authentication node.
The description of step 818 may refer to the detailed description of step 511, which is not repeated herein.
Step 819: the authentication server sends the identification of the secondary authentication node and the authentication key to the child nodes of the secondary authentication node.
Step 820: the child node of the secondary authentication node receives the identity of the secondary authentication node from the authentication server and the authentication key.
The descriptions of step 819 to step 820 may refer to the above detailed descriptions of step 514 to step 515, which are not described herein again.
It should be noted that, the embodiment of the present application does not limit the execution sequence among steps 802 to 804, steps 806 to 809, and steps 810 to 813, for example, the embodiment of the present application may execute steps 806 to 809, then execute steps 802 to 805, and finally execute steps 810 to 813, and the embodiment of the present application may also execute steps 810 to 813, then execute steps 806 to 809, and finally execute steps 802 to 805.
It should be noted that the present embodiment does not limit the execution sequence among step 814 to step 815, step 816 to step 817, and step 818 to step 820, for example, the present embodiment may execute step 818 to step 820, then execute step 816 to step 817, and finally execute step 814 to step 815, and the present embodiment may also execute step 816 to step 817, then execute step 818 to step 820, and finally execute step 814 to step 815.
Based on the method shown in fig. 8, after the authentication of the primary authentication node, the secondary authentication node, and the child nodes of the secondary authentication node is successful, the authentication server may send the identifier of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node, send the identifier of the primary authentication node and the key information of the primary authentication node to the secondary authentication node, and send the identifier of the secondary authentication node and the key information of the secondary authentication node to the child nodes of the secondary authentication node, so that the subsequent primary authentication node authenticates the secondary authentication node, and the secondary authentication node authenticates the child nodes of the secondary authentication node.
Optionally, in a first implementation scenario of the embodiment shown in fig. 8, the method shown in fig. 8 further includes steps 821-824.
Step 821: the authentication server sends the secondary authentication node an identification of a child node of the secondary authentication node and an authentication key.
Step 822: the secondary authentication node receives an identification of a child node of the secondary authentication node from the authentication server and an authentication key.
The descriptions of steps 821-822 may refer to the detailed descriptions of steps 512-513, and are not repeated here.
Step 823: and the primary authentication node authenticates the secondary authentication node.
The description of step 823 may refer to the specific description of step 510, which is not described herein again.
Step 824: and the secondary authentication node authenticates the child nodes of the secondary authentication node.
The description of step 824 may refer to the detailed description of step 516, which is not repeated herein.
It should be noted that, in the embodiment of the present application, the execution sequence between steps 821-822 and step 823 is not limited, and in the embodiment of the present application, steps 821-822 may be executed first, and then step 823 is executed, and in the embodiment of the present application, step 823 may be executed first, and then step 821-822 is executed.
It should be noted that the execution sequence of step 823 and step 824 is not limited in the embodiment of the present application, step 823 may be executed first, and then step 824 may be executed, and step 824 may also be executed first, and then step 823 is executed.
Based on the first implementation scenario of the embodiment shown in fig. 8, the primary authentication node may authenticate the secondary authentication node according to the identifier of the primary authentication node, the key information of the primary authentication node, the identifier of the secondary authentication node, and the key information of the secondary authentication node, and the secondary authentication node may authenticate the secondary authentication node according to the identifier of the secondary authentication node, and the authentication key.
The authentication method provided by the embodiment of the application is described below by taking an example that a vehicle-mounted system comprises a gateway, an OBD, a T-Box, a domain controller and an ECU.
As shown in fig. 9, for another authentication method provided in the embodiment of the present application, in a vehicle production line, the authentication method shown in fig. 9 may be used for an authentication server to authenticate a gateway, an OBD, a T-Box, a domain controller, and an ECU, and the authentication method shown in fig. 9 includes steps 901 to 932.
Step 901: the authentication server acquires information of a plurality of nodes.
The plurality of nodes comprise a gateway, an OBD, a T-Box, a domain controller and an ECU.
Step 902: the OBD sends an authentication request of the OBD to the authentication server.
Step 903: the authentication server receives an authentication request from the OBD.
Step 904: the authentication server sends an authentication response of the OBD to the OBD.
Step 905: the OBD receives an authentication response from the OBD of the authentication server.
Step 906: and if the OBD is successfully authenticated, the gateway sends an authentication request of the gateway to the authentication server through the OBD.
Step 907: the authentication server receives an authentication request from the gateway through the OBD.
Step 908: the authentication server sends an authentication response of the gateway to the gateway through the OBD.
Step 909: the gateway receives an authentication response of the gateway from the authentication server via the OBD.
Step 910: the T-Box sends an authentication request of the T-Box to the authentication server.
Step 911: the authentication server receives an authentication request from the T-Box.
Step 912: the authentication server sends an authentication response of the T-Box to the T-Box.
Step 913: the T-Box receives the T-Box's authentication response from the authentication server.
Step 914: the domain controller transmits an authentication request of the domain controller to the authentication server.
Step 915: the authentication server receives an authentication request from the domain controller.
Step 916: the authentication server transmits an authentication response of the domain controller to the domain controller.
Step 917: the domain controller receives an authentication response of the domain controller from the authentication server.
Step 918: the ECU transmits an authentication request of the ECU to the authentication server.
Step 919: the authentication server receives an authentication request from the ECU.
Step 920: the authentication server sends an authentication response of the ECU to the ECU.
Step 921: the ECU receives an authentication response of the ECU from the authentication server.
If the authentication server successfully authenticates the gateway, the OBD, the T-Box, the domain controller and the ECU, step 922 is executed.
If the authentication server fails to authenticate the gateway, the OBD, the T-Box, the domain controller and the equipment in the ECU, the equipment may be illegal equipment, and the authentication server can authenticate the equipment again; alternatively, after the device is replaced, the authentication server authenticates the replaced device.
Step 922: the authentication server generates an authentication key for the ECU.
Step 923: and the authentication server sends the identification of the OBD, the key information of the OBD, the identification of the T-Box, the key information of the T-Box, the identification of the domain controller and the key information of the domain controller to the gateway through the OBD.
Step 924: the gateway receives an identification of the OBD, key information of the OBD, an identification of the T-Box, key information of the T-Box, an identification of the domain controller, and key information of the domain controller from the authentication server through the OBD.
Step 925: the authentication server sends the identification of the gateway and the key information of the gateway to the OBD.
Step 926: the OBD receives the identification of the gateway from the authentication server and the key information of the gateway.
Step 927: the authentication server sends the identification of the gateway and the key information of the gateway to the T-Box.
Step 928: the T-Box receives the identity of the gateway from the authentication server and the key information for the gateway.
Step 929: the authentication server transmits the identification of the gateway, the key information of the gateway, the identification of the ECU, and the authentication key to the domain controller.
Step 930: the domain controller receives an identification of the gateway, key information of the gateway, an identification of the ECU, and an authentication key from the authentication server.
Step 931: the authentication server sends the identity of the domain controller and the authentication key to the ECU.
Step 932: the ECU receives the identity of the domain controller and the authentication key from the authentication server.
For the specific process and the beneficial effects of the method shown in fig. 9, reference may be made to descriptions in various implementation scenarios of the embodiments shown in fig. 5 and fig. 5, and descriptions in various implementation scenarios of the embodiments shown in fig. 8 and fig. 8, which are not described herein again.
Optionally, in a first implementation scenario of the embodiment shown in fig. 9, after the gateway, the OBD, the T-Box, the domain controller, and the ECU pass authentication, they may be combined into an on-board system. For the vehicle-mounted system, the gateway is connected with the OBD, the T-Box and the domain controller, and the domain controller is also connected with the ECU. As shown in fig. 10, the method shown in fig. 9 further includes steps 1001-1004.
Step 1001: the gateway authenticates the domain controller.
Step 1002: and if the gateway successfully authenticates the domain controller, the domain controller authenticates the ECU.
Optionally, if the gateway fails to authenticate the domain controller, the vehicle-mounted system is prohibited from being started.
Step 1003: and if the domain controller successfully authenticates the ECU, the domain controller sends an authentication success message to the gateway.
Optionally, if the domain controller fails to authenticate the ECU, the vehicle-mounted system is prohibited from being started.
Optionally, if the domain controller fails to authenticate the ECU, the domain controller sends an authentication failure message to the gateway.
Step 1004: the gateway authenticates the OBD.
Step 1005: and if the gateway successfully authenticates the OBD, the gateway authenticates the T-Box.
Optionally, if the OBD authentication by the gateway fails, the vehicle-mounted system is prohibited from being started.
Optionally, if the gateway fails to authenticate the T-Box, the vehicle-mounted system is prohibited from starting; and if the gateway successfully authenticates the T-Box, starting the vehicle-mounted system.
For the specific process and beneficial effects of the method shown in fig. 10, reference may be made to descriptions in various implementation scenarios of the embodiment shown in fig. 5 and descriptions in various implementation scenarios of the embodiment shown in fig. 8, which are not described herein again.
As shown in fig. 11, for another authentication method provided in the embodiment of the present application, after a gateway in the vehicle-mounted system in fig. 10 is replaced, the method shown in fig. 11 may authenticate the replaced gateway, and the authentication method shown in fig. 11 may include steps 1101 to 1117.
Step 1101: and the authentication server acquires the identifier of the replaced gateway and the key information of the replaced gateway.
Step 1102: and the replaced gateway sends an authentication request of the replaced gateway to an authentication server through the T-Box.
Step 1103: the authentication server receives an authentication request from the replaced gateway through the T-Box.
Step 1104: and the authentication server sends the authentication response of the replaced gateway to the replaced gateway through the T-Box according to the identifier of the replaced gateway and the key information of the replaced gateway.
Step 1105: the replaced gateway receives an authentication response of the replaced gateway from the authentication server through the T-Box.
Step 1106: and if the replaced gateway is successfully authenticated, the authentication server sends the identification of the OBD, the key information of the OBD, the identification of the T-Box, the key information of the T-Box, the identification of the domain controller and the key information of the domain controller to the replaced gateway through the T-Box.
Step 1107: and the replaced gateway receives the identification of the OBD, the key information of the OBD, the identification of the T-Box, the key information of the T-Box, the identification of the domain controller and the key information of the domain controller from the authentication server through the T-Box.
Step 1108: and the authentication server sends the identifier of the replaced gateway and the key information of the replaced gateway to the OBD through the T-Box.
Step 1109: the OBD receives the identification of the replaced gateway and the key information of the replaced gateway from the authentication server through the T-Box.
Step 1110: and the authentication server sends the identification of the replaced gateway and the key information of the replaced gateway to the T-Box.
Step 1111: the T-Box receives the identity of the replaced gateway and the key information of the replaced gateway from the authentication server.
Step 1112: and the authentication server sends the identifier of the replaced gateway and the key information of the replaced gateway to the domain controller through the T-Box.
Step 1113: and the domain controller receives the identification of the replaced gateway and the key information of the replaced gateway from the authentication server through the T-Box.
Step 1114: and the replaced gateway and the T-Box perform bidirectional authentication.
Step 1115: and if the replaced gateway and the T-Box perform bidirectional authentication successfully, performing bidirectional authentication on the replaced gateway and the OBD.
Step 1116: and if the replaced gateway and the OBD are successfully authenticated bidirectionally, the replaced gateway and the domain controller are authenticated bidirectionally.
Step 1117: and if the replaced gateway and the domain controller are successfully authenticated in the two directions, the replaced gateway sends a replacement authentication success message to the authentication server through the T-Box.
For the specific process and beneficial effects of the method shown in fig. 11, reference may be made to descriptions in various implementation scenarios of the embodiment shown in fig. 5 and descriptions in various implementation scenarios of the embodiment shown in fig. 8, which are not described herein again.
As shown in fig. 12, for another authentication method provided in the embodiment of the present application, after the domain controller in the in-vehicle system in fig. 10 is replaced, the method shown in fig. 12 may authenticate the replaced domain controller, and the authentication method shown in fig. 12 may include steps 1201 to 1214.
Step 1201: and the authentication server acquires the identifier of the replaced domain controller and the key information of the replaced domain controller.
Step 1202: and the replaced domain controller sends an authentication request of the replaced domain controller to the authentication server through the T-Box.
Step 1203: the authentication server receives an authentication request from the replaced domain controller through the T-Box.
Step 1204: and the authentication server sends the authentication response of the replaced domain controller to the replaced domain controller through the T-Box according to the identifier of the replaced domain controller and the key information of the replaced domain controller.
Step 1205: the replaced domain controller receives an authentication response of the replaced domain controller from the authentication server through the T-Box.
Step 1206: and if the replaced domain controller is successfully authenticated, the authentication server sends the identifier of the replaced domain controller and the key information of the replaced domain controller to the gateway through the T-Box.
Step 1207: the gateway receives the identity of the replaced domain controller and key information of the replaced domain controller from the authentication server through the T-Box.
Step 1208: and the authentication server sends the identification of the gateway, the key information of the gateway, the identification of the ECU and the authentication key to the replaced domain controller through the T-Box.
Step 1209: and the replaced domain controller receives the identification of the gateway, the key information of the gateway, the identification of the ECU and the authentication key from the authentication server through the T-Box.
Step 1210: and the authentication server sends the identifier of the replaced domain controller and the authentication key to the ECU through the T-Box.
Step 1211: the ECU receives the identity of the replaced domain controller and the authentication key from the authentication server through the T-Box.
Step 1212: and the replaced domain controller and the gateway perform bidirectional authentication.
Step 1213: and if the replaced domain controller and the gateway are successfully subjected to bidirectional authentication, the replaced domain controller and the ECU are subjected to bidirectional authentication.
Step 1214: and if the replaced domain controller is successfully authenticated with the ECU in the two ways, the replaced domain controller sends a replacement authentication success message to the authentication server through the T-Box.
For specific processes and beneficial effects of the method shown in fig. 12, reference may be made to descriptions in various implementation scenarios of the embodiment shown in fig. 5 and descriptions in various implementation scenarios of the embodiment shown in fig. 8, which are not described herein again.
After the OBD in the vehicle-mounted system in fig. 10 is replaced, the method for authenticating the replaced OBD may refer to the method shown in fig. 12, which is not described herein again.
As shown in fig. 13, for another authentication method provided in the embodiment of the present application, after the ECU in the vehicle-mounted system in fig. 10 is replaced, the method shown in fig. 13 may authenticate the replaced ECU, and the authentication method shown in fig. 13 may include steps 1301-1311.
Step 1301: the authentication server acquires the identifier of the replaced ECU and the key information of the replaced ECU.
Step 1302: the replaced ECU sends an authentication request of the replaced ECU to an authentication server through the T-Box.
Step 1303: the authentication server receives an authentication request from the replaced ECU through the T-Box.
Step 1304: and the authentication server sends the authentication response of the replaced ECU to the replaced ECU through the T-Box according to the identification of the replaced ECU and the key information of the replaced ECU.
Step 1305: the replaced ECU receives an authentication response of the replaced ECU from the authentication server through the T-Box.
Step 1306: and if the replaced ECU is successfully authenticated, the authentication server sends the identifier of the replaced ECU and the authentication key to the domain controller through the T-Box.
Step 1307: the domain controller receives the identity of the replaced ECU and the authentication key from the authentication server through the T-Box.
Step 1308: and the authentication server sends the identifier of the domain controller and the authentication key to the replaced ECU through the T-Box.
Step 1309: the replaced ECU receives the identification of the domain controller and the authentication key from the authentication server through the T-Box.
Step 1310: and the replaced ECU and the domain controller perform bidirectional authentication.
Step 1311: and if the replaced ECU is successfully authenticated with the domain controller in the two directions, the replaced ECU sends a replacement authentication success message to the authentication server through the T-Box.
For the specific process and beneficial effects of the method shown in fig. 13, reference may be made to descriptions in various implementation scenarios of the embodiment shown in fig. 5 and descriptions in various implementation scenarios of the embodiment shown in fig. 8, which are not described herein again.
The above-mentioned scheme provided by the embodiment of the present application is introduced mainly from the perspective of interaction between network elements. It is to be understood that, in order to implement the above functions, the authentication server, the in-vehicle system, the primary authentication node, the secondary authentication node, or the sub-node of the secondary authentication node, etc. include a hardware structure and/or a software module corresponding to each function. Those skilled in the art will readily appreciate that the various illustrative elements and algorithm operations described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the authentication server may be divided into the functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
For example, in the case where the functional modules are divided in an integrated manner, fig. 14 shows a schematic configuration diagram of the authentication server 140. The authentication server 140 includes: an acquisition module 1401, a reception module 1402, and a transmission module 1403. An obtaining module 1401, configured to obtain information of the plurality of nodes; a receiving module 1402, configured to receive authentication requests from the plurality of nodes; a sending module 1403, configured to send the authentication responses of the multiple nodes to the multiple nodes respectively according to the information of the multiple nodes.
Optionally, the information of the plurality of nodes includes an identifier of the plurality of nodes and key information of the plurality of nodes.
Optionally, the multiple nodes include a primary authentication node and multiple secondary authentication nodes, and if the multiple nodes are successfully authenticated, the sending module 1403 is further configured to send the identifier of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node; the sending module 1403 is further configured to send the identifier of the primary authentication node and the key information of the primary authentication node to the secondary authentication node.
Optionally, the plurality of nodes further includes a plurality of sub-authentication nodes, and as shown in fig. 15, the authentication server further includes a generating module 1404. A generating module 1404, configured to generate authentication keys for the child nodes of the multiple secondary authentication nodes, where the authentication keys of the child nodes of the secondary authentication nodes that are the same as the secondary authentication nodes are the same; a sending module 1403, further configured to send, to the secondary authentication node, the identifier of the child node of the secondary authentication node and the authentication key; the sending module 1403 is further configured to send the identifier of the secondary authentication node and the authentication key to the child nodes of the secondary authentication node.
Optionally, the obtaining module 1401 is further configured to obtain an identifier of the replacement node and key information of the replacement node; a receiving module 1402, further configured to receive an authentication request from the replacement node; the sending module 1403 is further configured to send the authentication response of the replacement node to the replacement node according to the identifier of the replacement node and the key information of the replacement node.
Optionally, if the replacement node is successfully authenticated and the replacement node has a parent node, the sending module 1403 is further configured to send the identifier of the replacement node and the key information of the replacement node to the parent node of the replacement node; the sending module 1403 is further configured to send the identifier of the parent node of the replacement node and the key information of the parent node of the replacement node to the replacement node.
Optionally, if the replacement node is a child node of the secondary authentication node, the key information of the replacement node and the key information of the parent node of the replacement node include the authentication key.
Optionally, if the replacement node has a child node, the sending module 1403 is further configured to send the identifier of the child node of the replacement node and the key information of the child node of the replacement node to the replacement node; the sending module 1403 is further configured to send the identifier of the replacement node and the key information of the replacement node to the child nodes of the replacement node.
Optionally, the receiving module 1402 is further configured to receive an authentication completion message from the replacement node.
All relevant contents of the operations related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the present embodiment, the authentication server 140 is presented in a form of dividing each functional module in an integrated manner. A "module" herein may refer to a particular ASIC, a circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other device that provides the described functionality. In a simple embodiment, those skilled in the art will appreciate that the authentication server 140 may take the form shown in FIG. 4.
For example, processor 401 in fig. 4 may cause authentication server 140 to perform the authentication method in the above-described method embodiments by calling a computer stored in memory 404 to execute instructions.
Illustratively, the functions/implementation procedures of the obtaining module 1401, the receiving module 1402, the sending module 1403, and the generating module 1404 in fig. 15 may be implemented by the processor 401 in fig. 4 calling computer-executable instructions stored in the memory 404. Alternatively, the functions/implementation procedures of the obtaining module 1401 and the generating module 1404 in fig. 15 may be implemented by the processor 401 in fig. 4 calling a computer executing instruction stored in the memory 404, and the functions/implementation procedures of the receiving module 1402 and the sending module 1403 in fig. 15 may be implemented by the communication interface 403 in fig. 4.
Since the authentication server 140 provided in this embodiment can execute the above authentication method, the technical effects obtained by the authentication server can refer to the above method embodiment, and are not described herein again.
In the embodiment of the present application, the functional modules of the vehicle-mounted system may be divided according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
For example, in the case where the respective functional modules are divided in an integrated manner, fig. 16 shows a schematic configuration diagram of an in-vehicle system 160. The on-board system 160 includes a plurality of nodes, wherein the plurality of nodes includes: a plurality of nodes for transmitting authentication requests of the plurality of nodes to an authentication server; a plurality of nodes further configured to receive authentication responses of the plurality of nodes from the authentication server.
Optionally, the primary authentication node 1601 is connected to the secondary authentication node 1602, and if the authentication of the multiple nodes is successful, the primary authentication node 1601 is configured to receive an identifier of the secondary authentication node from the authentication server and key information of the secondary authentication node; a secondary authentication node 1602, configured to receive an identifier of the primary authentication node from the authentication server and key information of the primary authentication node; the primary authentication node 1602 is also configured to authenticate the secondary authentication node.
Optionally, as shown in fig. 17, the multiple nodes further include a sub-node 1603 of a secondary authentication node, the secondary authentication node 1602 is connected to the sub-node 1603 of the secondary authentication node, and if the primary authentication node 1601 successfully authenticates the secondary authentication node 1602, the secondary authentication node 1602 is further configured to receive an identifier of the sub-node of the secondary authentication node and an authentication key from the authentication server, where the authentication key is generated by the authentication server for the sub-nodes of the multiple secondary authentication nodes, and authentication keys of the sub-nodes of the secondary authentication nodes that are the same as the secondary authentication node are the same; a sub-node 1603 of the secondary authentication node for receiving the identity of the secondary authentication node and the authentication key from the authentication server; the secondary authentication node 1602 is further configured to authenticate the child node 1602 of the secondary authentication node.
Optionally, as shown in fig. 18, the in-vehicle system 160 further includes a replacement node 1604. A replacement node 1604 for sending an authentication request of the replacement node to the authentication server; replacement node 1604 is further configured to receive an authentication response for the replacement node from the authentication server.
Optionally, if the replacement node 1604 is authenticated successfully, the parent node of the replacement node is configured to receive the identifier of the replacement node and the key information of the replacement node from the authentication server; an exchange node 1604 further for receiving an identification of a parent node of the exchange node from the authentication server and key information of the parent node of the exchange node; the replacement node 1604 is further configured to perform mutual authentication with the parent node of the replacement node through the identification of the replacement node, the key information of the replacement node, the identification of the parent node of the replacement node, and the key information of the parent node of the replacement node.
Optionally, if the replacement node 1604 is a child node of the secondary authentication node, the key information of the replacement node and the key information of the parent node of the replacement node include the authentication key.
Optionally, if the replacement node 1604 is successfully authenticated with the parent node of the replacement node and the replacement node has a child node, the replacement node 1604 is further configured to receive an identifier of the child node of the replacement node from the authentication server and key information of the child node of the replacement node; the child node of the replacement node is used for receiving the identification of the replacement node from the authentication server and the key information of the replacement node; the replacement node 1604 is further configured to perform mutual authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node, and the key information of the replacement node.
Optionally, if the replacement node 1604 successfully authenticates with the parent node of the replacement node, or the replacement node 1604 successfully authenticates with the parent node of the replacement node and the child nodes of the replacement node, the replacement node 1604 is further configured to send an authentication completion message to the authentication server.
All relevant contents of the operations related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
Since the on-board system 160 provided in this embodiment can execute the above authentication method, the technical effects obtained by the on-board system 160 can refer to the above method embodiment, and are not described herein again.
In the embodiment of the present application, functional modules may be divided into the main authentication node according to the above method example, for example, each functional module may be divided into corresponding functions, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
For example, in the case where the functional modules are divided in an integrated manner, fig. 19 shows a schematic structural diagram of a master authentication node 190. The master authentication node 190 comprises: a sending module 1901 and a receiving module 1902. A sending module 1901, configured to send an authentication request of a master authentication node to an authentication server; a receiving module 1902, configured to receive an authentication response from the master authentication node of the authentication server; the receiving module 1902 is further configured to receive an identifier of a secondary authentication node from the authentication server and key information of the secondary authentication node.
Optionally, as shown in fig. 20, the master authentication node 190 further includes: an authentication module 1903. An authentication module 1903, configured to authenticate the secondary authentication node.
Optionally, the master authentication node is a master authentication node initially deployed; or the master authentication node is the master authentication node after the device is replaced.
All relevant contents of the operations related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the present embodiment, the master authentication node 190 is presented in a form of dividing each functional module in an integrated manner. A "module" herein may refer to a particular ASIC, a circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other device that provides the described functionality. In a simple embodiment, one skilled in the art will recognize that the primary authentication node 190 may take the form shown in FIG. 4.
For example, processor 401 in fig. 4 may cause master authentication node 190 to perform the authentication method in the above-described method embodiments by calling a computer stored in memory 404 to execute instructions.
Illustratively, the functions/implementation of the sending module 1901, receiving module 1902, and authentication module 1903 of fig. 20 may be implemented by the processor 401 of fig. 4 invoking computer-executable instructions stored in the memory 404. Alternatively, the functions/implementation processes of the authentication module 1903 in fig. 20 may be implemented by the processor 401 in fig. 4 calling a computer executing instruction stored in the memory 404, and the functions/implementation processes of the sending module 1901 and the receiving module 1902 in fig. 20 may be implemented by the communication interface 403 in fig. 4.
Since the main authentication node 190 provided in this embodiment can perform the above authentication method, the technical effect obtained by the main authentication node can refer to the above method embodiment, and will not be described herein again.
In the embodiment of the present application, functional modules may be divided for the secondary authentication nodes according to the above method examples, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
For example, in the case where the functional modules are divided in an integrated manner, fig. 21 shows a schematic structural diagram of the secondary authentication node 210. The secondary authentication node 210 includes: a transmission module 2101 and a reception module 2102. A sending module 2101, configured to send an authentication request of a secondary authentication node to an authentication server; a receiving module 2102 configured to receive an authentication response from the secondary authentication node of the authentication server; the receiving module 2102 is further configured to receive an identification of the master authentication node from the authentication server and key information of the master authentication node.
Optionally, as shown in fig. 22, the secondary authentication node 210 further includes: an authentication module 2103. A receiving module 2102, further configured to receive an identifier of a child node of the secondary authentication node from the authentication server and an authentication key, where the authentication key is generated by the authentication server for the child node of the secondary authentication node; the authentication module 2103 is configured to authenticate a child node of the authentication node.
Optionally, the secondary authentication node is a secondary authentication node initially deployed; or the secondary authentication node is the secondary authentication node after the equipment is replaced.
All relevant contents of the operations related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the present embodiment, the secondary authentication node 210 is presented in the form of dividing each functional module in an integrated manner. A "module" herein may refer to a particular ASIC, a circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other device that provides the described functionality. In a simple embodiment, the secondary authentication node 210 may take the form shown in fig. 4, as will be appreciated by those skilled in the art.
For example, processor 401 in fig. 4 may cause secondary authentication node 210 to perform the authentication method in the above-described method embodiments by calling a computer stored in memory 404 to execute instructions.
Illustratively, the functions/implementation of the sending module 2101, receiving module 2102 and authentication module 2103 in fig. 22 may be implemented by the processor 401 in fig. 4 calling computer-executable instructions stored in the memory 404. Alternatively, the function/implementation procedure of the authentication module 2103 in fig. 22 may be implemented by the processor 401 in fig. 4 calling a computer executing instruction stored in the memory 404, and the function/implementation procedures of the transmitting module 2101 and the receiving module 2102 in fig. 22 may be implemented by the communication interface 403 in fig. 4.
Since the secondary authentication node 210 provided in the present embodiment can perform the above authentication method, the technical effect obtained by the secondary authentication node can refer to the above method embodiment, and is not described herein again.
In the embodiment of the present application, functional modules may be divided according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
For example, in the case of dividing each functional module in an integrated manner, fig. 23 shows a schematic structural diagram of a child node 230 of a secondary authentication node. The child node 230 of the secondary authentication node includes: a transmitting module 2301 and a receiving module 2302. A sending module 2301, configured to send an authentication request of a child node of the secondary authentication node to the authentication server; a receiving module 2302, configured to receive an authentication response from a child node of the secondary authentication node of the authentication server; the receiving module 2302 is further configured to receive an identifier of a secondary authentication node from the authentication server and an authentication key, where the authentication key is generated by the authentication server for a child node of the secondary authentication node.
Optionally, the child node of the secondary authentication node is a child node of a secondary authentication node initially deployed; or the child node of the secondary authentication node is the child node of the secondary authentication node after the device is replaced.
All relevant contents of the operations related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In the present embodiment, the child node 230 of the secondary authentication node is presented in a form of dividing each functional module in an integrated manner. A "module" herein may refer to a particular ASIC, a circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other device that provides the described functionality. In a simple embodiment, those skilled in the art will appreciate that the child node 230 of the secondary authentication node may take the form shown in fig. 4.
For example, the processor 401 in fig. 4 may cause the child node 230 of the secondary authentication node to perform the authentication method in the above-described method embodiment by calling a computer stored in the memory 404 to execute the instructions.
Illustratively, the functions/implementation procedures of the transmitting module 2301 and the receiving module 2302 in fig. 23 may be implemented by the processor 401 in fig. 4 calling computer-executable instructions stored in the memory 404. Alternatively, the functions/implementation procedures of the transmitting module 2301 and the receiving module 2302 in fig. 23 may be implemented by the communication interface 403 in fig. 4.
Since the child node 230 of the secondary authentication node provided in this embodiment can execute the authentication method described above, the technical effect obtained by the child node can refer to the method embodiment described above, and will not be described herein again.
Fig. 24 is a schematic diagram of a communication system, and as shown in fig. 24, the communication system 240 may include: authentication server 2401, primary authentication node 2402, secondary authentication node 2403, and child nodes 2404 of the secondary authentication node. It should be noted that fig. 24 is only an exemplary diagram, and the embodiment of the present application does not limit the network elements included in the communication system shown in fig. 24 and the number of the network elements.
The authentication server 2401 has the functions of the authentication server 140 shown in fig. 14 or fig. 15, and can be used to obtain information of the plurality of nodes; may be further operable to receive authentication requests from the plurality of nodes; and respectively sending the authentication responses of the plurality of nodes to the plurality of nodes according to the information of the plurality of nodes.
The master authentication node 2402 has the function of the master authentication node 190 shown in fig. 19 or fig. 20 described above, and transmits an authentication request of the master authentication node to the authentication server 2101; and receives an authentication response from the primary authentication node of the authentication server 2401; and also for receiving the identity of the secondary authentication node from the authentication server 2401 and key information for the secondary authentication node.
The sub-authentication node 2403 has the function of the sub-authentication node 210 shown in fig. 21 or fig. 22 described above, and transmits an authentication request of the sub-authentication node to the authentication server 2101; and receives an authentication response from the secondary authentication node of the authentication server 2401; and also for receiving the identity of the master authentication node and key information for the master authentication node from the authentication server 2401.
The child node 2404 of the secondary authentication node has the function of the child node 230 of the secondary authentication node shown in fig. 23 described above, and is configured to send an authentication request of the child node of the secondary authentication node to the authentication server 2401; and receives authentication responses from child nodes of the secondary authentication node of the authentication server 2401; and also to receive the identity of the secondary authentication node and the authentication key from the authentication server 2401.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the network element corresponding to the communication system, and are not described herein again.
Since the authentication server 2401, the primary authentication node 2402, the secondary authentication node 2403, or the child node 2404 of the secondary authentication node provided in this embodiment may perform the above authentication method, the technical effect obtained by the method may refer to the above method embodiment, and will not be described herein again.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the present application are all or partially generated upon loading and execution of computer program instructions on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or can comprise one or more data storage devices, such as a server, a data center, etc., that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
While the present application has been described in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the word "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the present application has been described in conjunction with specific features and embodiments thereof, it will be evident that various modifications and combinations can be made thereto without departing from the spirit and scope of the application. Accordingly, the specification and figures are merely exemplary of the present application as defined in the appended claims and are intended to cover any and all modifications, variations, combinations, or equivalents within the scope of the present application. It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.
Claims (56)
1. An authentication method for authenticating a plurality of nodes in an in-vehicle system, the plurality of nodes including a primary authentication node and a plurality of secondary authentication nodes, the method comprising:
the authentication server acquires the information of the plurality of nodes;
the authentication server receiving authentication requests from the plurality of nodes;
the authentication server sends authentication responses of the nodes to the nodes respectively according to the information of the nodes;
if the plurality of nodes are successfully authenticated, the authentication server sends the identifier of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node, and/or the authentication server sends the identifier of the primary authentication node and the key information of the primary authentication node to the secondary authentication node.
2. The method of claim 1, wherein the information of the plurality of nodes comprises identities of the plurality of nodes and key information of the plurality of nodes.
3. The method of claim 1 or 2, wherein the plurality of nodes further comprises a plurality of child nodes of the secondary authentication node, the method further comprising:
the authentication server generates authentication keys for the sub-nodes of the multiple sub-authentication nodes, and the authentication keys of the sub-nodes of the sub-authentication nodes which are the same as the sub-authentication nodes are the same;
the authentication server sends the identification of the child node of the secondary authentication node and the authentication key to the secondary authentication node;
and the authentication server sends the identification of the secondary authentication node and the authentication key to the child nodes of the secondary authentication node.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
the authentication server acquires an identifier of a replacement node and key information of the replacement node;
the authentication server receives an authentication request from the replacement node;
and the authentication server sends the authentication response of the replacement node to the replacement node according to the identification of the replacement node and the key information of the replacement node.
5. The method of claim 4, wherein if the replacement node is authenticated successfully and the replacement node has a parent node, the method further comprises:
the authentication server sends the identification of the replacement node and the key information of the replacement node to a father node of the replacement node;
and the authentication server sends the identification of the father node of the replacement node and the key information of the father node of the replacement node to the replacement node.
6. The method of claim 5, wherein the key information of the replacement node and the key information of the parent node of the replacement node comprise the authentication key if the replacement node is a child node of a secondary authentication node.
7. The method of claim 5 or 6, wherein if the replacement node has a child node, the method further comprises:
the authentication server sends the identifier of the child node of the replacement node and the key information of the child node of the replacement node to the replacement node;
and the authentication server sends the identification of the replacement node and the key information of the replacement node to the child node of the replacement node.
8. The method of claim 6, further comprising:
the authentication server receives an authentication completion message from the replacement node.
9. An authentication method is applied to an in-vehicle system, the in-vehicle system comprises a plurality of nodes, the plurality of nodes comprise a primary authentication node and a plurality of secondary authentication nodes, the primary authentication node is connected with the plurality of secondary authentication nodes, and the method comprises the following steps:
the plurality of nodes send authentication requests of the plurality of nodes to an authentication server;
the plurality of nodes receiving authentication responses from the plurality of nodes of the authentication server;
if the plurality of nodes are successfully authenticated, the primary authentication node receives the identification of the secondary authentication node and the key information of the secondary authentication node from the authentication server, and/or the secondary authentication node receives the identification of the primary authentication node and the key information of the primary authentication node from the authentication server.
10. The method of claim 9, further comprising:
and the primary authentication node authenticates the secondary authentication node.
11. The method according to claim 9 or 10, wherein the plurality of nodes further comprise a plurality of sub-nodes of a secondary authentication node, the secondary authentication node being connected to the sub-nodes of the secondary authentication node, and if the primary authentication node successfully authenticates the secondary authentication node, the method further comprises:
the secondary authentication node receives an identifier of a child node of the secondary authentication node from the authentication server and an authentication key, wherein the authentication key is generated by the authentication server for the child nodes of the plurality of secondary authentication nodes, and the authentication keys of the child nodes of the secondary authentication nodes which are the same as the secondary authentication node are the same;
a child node of the secondary authentication node receives the identity of the secondary authentication node and the authentication key from the authentication server;
and the secondary authentication node authenticates the child nodes of the secondary authentication node.
12. The method of claim 9 or 10, wherein the on-board system further comprises a replacement node, the method further comprising:
the replacement node sends an authentication request of the replacement node to the authentication server;
the replacement node receives an authentication response of the replacement node from the authentication server.
13. The method of claim 12, wherein if the replacement node is authenticated successfully and the replacement node has a parent node, the method further comprises:
a parent node of the replacement node receives the identification of the replacement node and key information of the replacement node from the authentication server;
the replacement node receives an identification of a parent node of the replacement node from the authentication server and key information of the parent node of the replacement node;
and the replacement node carries out mutual authentication with the parent node of the replacement node through the identification of the replacement node, the key information of the replacement node, the identification of the parent node of the replacement node and the key information of the parent node of the replacement node.
14. The method of claim 13, wherein the key information of the replacement node and the key information of the parent node of the replacement node comprise the authentication key if the replacement node is a child node of a secondary authentication node.
15. The method of claim 13, wherein if the replacement node successfully authenticates with the parent node of the replacement node and the replacement node has a child node, the method further comprises:
the replacement node receives an identification of a child node of the replacement node from the authentication server and key information of the child node of the replacement node;
the child node of the replacement node receives the identification of the replacement node from the authentication server and the key information of the replacement node;
and the replacement node carries out mutual authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node and the key information of the replacement node.
16. The method according to any one of claims 13-15, wherein if the replacement node successfully authenticates with the parent node of the replacement node, or if the replacement node successfully authenticates with the parent node of the replacement node and the child nodes of the replacement node, the method further comprises:
and the replacement node sends an authentication completion message to the authentication server.
17. An authentication method, the method comprising:
a main authentication node in a vehicle-mounted system sends an authentication request of the main authentication node to an authentication server;
the master authentication node receiving an authentication response of the master authentication node from the authentication server;
the main authentication node receives the identification of a secondary authentication node in the vehicle-mounted system and key information of the secondary authentication node from the authentication server;
and the primary authentication node authenticates the secondary authentication node.
18. The method of claim 17, wherein the master authentication node is an initially deployed master authentication node; or the main authentication node is the main authentication node after equipment replacement.
19. An authentication method, the method comprising:
the secondary authentication node sends an authentication request of the secondary authentication node to an authentication server, wherein the secondary authentication node is one of a plurality of secondary authentication nodes in the vehicle-mounted system;
the secondary authentication node receiving an authentication response of the secondary authentication node from the authentication server;
the secondary authentication node receives the identification of a main authentication node in the vehicle-mounted system and key information of the main authentication node from the authentication server;
and the secondary authentication node is authenticated by the main authentication node according to the identification of the main authentication node and the key information of the main authentication node.
20. The method of claim 19, further comprising:
the secondary authentication node receives an identification of a child node of the secondary authentication node from the authentication server and an authentication key, wherein the authentication key is generated by the authentication server for the child node of the secondary authentication node;
and the secondary authentication node authenticates the child nodes of the secondary authentication node.
21. The method according to claim 19 or 20, wherein the secondary authentication node is an initially deployed secondary authentication node; or the secondary authentication node is the secondary authentication node after the equipment is replaced.
22. An authentication method, the method comprising:
a child node of the secondary authentication node sends an authentication request of the child node to an authentication server, wherein the child node is one of a plurality of child nodes in a vehicle-mounted system;
the child node receiving an authentication response of the child node from the authentication server;
the child node receives an identification of a secondary authentication node in the vehicle-mounted system and an authentication key from the authentication server, wherein the authentication key is generated for the child node by the authentication server;
and the child node is authenticated by the secondary authentication node according to the identification of the secondary authentication node and the authentication key.
23. The method of claim 22, wherein the child nodes are initially deployed child nodes; or the child node is the child node after the equipment is replaced.
24. An authentication server for authenticating a plurality of nodes in an in-vehicle system, the plurality of nodes including a primary authentication node and a plurality of secondary authentication nodes, the authentication server comprising: the device comprises an acquisition module, a receiving module and a sending module;
the acquisition module is used for acquiring the information of the plurality of nodes;
the receiving module is used for receiving authentication requests from the plurality of nodes;
the sending module is configured to send authentication responses of the plurality of nodes to the plurality of nodes respectively according to the information of the plurality of nodes;
if the plurality of nodes are successfully authenticated, the sending module is further configured to send the identifier of the secondary authentication node and the key information of the secondary authentication node to the primary authentication node, and/or the sending module is further configured to send the identifier of the primary authentication node and the key information of the primary authentication node to the secondary authentication node.
25. The authentication server of claim 24, wherein the information of the plurality of nodes comprises identities of the plurality of nodes and key information of the plurality of nodes.
26. The authentication server according to claim 24 or 25, wherein the plurality of nodes further comprises child nodes of a plurality of secondary authentication nodes, the authentication server further comprising: a generation module;
the generation module is used for generating authentication keys for the child nodes of the plurality of secondary authentication nodes, and the authentication keys of the child nodes of the secondary authentication nodes which are the same as the secondary authentication nodes are the same;
the sending module is further configured to send, to the secondary authentication node, an identifier of a child node of the secondary authentication node and the authentication key;
the sending module is further configured to send the identifier of the secondary authentication node and the authentication key to a child node of the secondary authentication node.
27. The authentication server according to claim 24 or 25,
the obtaining module is further configured to obtain an identifier of a replacement node and key information of the replacement node;
the receiving module is further configured to receive an authentication request from the replacement node;
the sending module is further configured to send an authentication response of the replacement node to the replacement node according to the identifier of the replacement node and the key information of the replacement node.
28. The authentication server of claim 27, wherein if the replacement node is authenticated successfully and the replacement node has a parent node,
the sending module is further configured to send the identifier of the replacement node and the key information of the replacement node to a parent node of the replacement node;
the sending module is further configured to send, to the replacement node, an identifier of a parent node of the replacement node and key information of the parent node of the replacement node.
29. The authentication server of claim 28, wherein the key information of the replacement node and the key information of the parent node of the replacement node comprise the authentication key if the replacement node is a child node of a secondary authentication node.
30. The authentication server according to claim 28 or 29, wherein if the replacement node has a child node,
the sending module is further configured to send, to the replacement node, an identifier of a child node of the replacement node and key information of the child node of the replacement node;
the sending module is further configured to send the identifier of the replacement node and the key information of the replacement node to a child node of the replacement node.
31. The authentication server according to claim 28 or 29,
the receiving module is further configured to receive an authentication completion message from the replacement node.
32. An in-vehicle system, characterized in that the in-vehicle system comprises a plurality of nodes, the plurality of nodes comprise a primary authentication node and a plurality of secondary authentication nodes, the primary authentication node is connected with the plurality of secondary authentication nodes;
the plurality of nodes are used for sending authentication requests of the plurality of nodes to an authentication server;
the plurality of nodes further configured to receive authentication responses of the plurality of nodes from the authentication server;
if the plurality of nodes are successfully authenticated, the primary authentication node is configured to receive the identifier of the secondary authentication node and the key information of the secondary authentication node from the authentication server, and/or the secondary authentication node is configured to receive the identifier of the primary authentication node and the key information of the primary authentication node from the authentication server.
33. The in-vehicle system according to claim 32,
the primary authentication node is further configured to authenticate the secondary authentication node.
34. The in-vehicle system of claim 32 or 33, wherein the plurality of nodes further comprises a plurality of sub-nodes of a secondary authentication node, the secondary authentication node is connected to the sub-nodes of the secondary authentication node, and if the primary authentication node authenticates the secondary authentication node successfully,
the secondary authentication node is further configured to receive an identifier of a child node of the secondary authentication node and an authentication key from the authentication server, where the authentication key is generated by the authentication server for the child nodes of the multiple secondary authentication nodes, and the authentication keys of the child nodes of the secondary authentication nodes that are the same as the secondary authentication node are the same;
a child node of the secondary authentication node, configured to receive the identifier of the secondary authentication node and the authentication key from the authentication server;
and the secondary authentication node is also used for authenticating the child nodes of the secondary authentication node.
35. The vehicle system according to claim 32 or 33, further comprising a replacement node,
the replacement node is used for sending an authentication request of the replacement node to the authentication server;
the replacement node is further configured to receive an authentication response of the replacement node from the authentication server.
36. The in-vehicle system of claim 35, wherein if the replacement node is authenticated and the replacement node has a parent node,
the parent node of the replacement node is used for receiving the identification of the replacement node from the authentication server and the key information of the replacement node;
the replacement node is further configured to receive, from the authentication server, an identifier of a parent node of the replacement node and key information of the parent node of the replacement node;
the replacement node is further configured to perform mutual authentication with the parent node of the replacement node through the identifier of the replacement node, the key information of the replacement node, the identifier of the parent node of the replacement node, and the key information of the parent node of the replacement node.
37. The in-vehicle system of claim 36, wherein the key information of the replacement node and the key information of the parent node of the replacement node comprise the authentication key if the replacement node is a child node of a secondary authentication node.
38. The in-vehicle system of claim 36, wherein if the replacement node is successfully authenticated with the parent node of the replacement node and the replacement node has a child node,
the replacement node is further configured to receive, from the authentication server, an identifier of a child node of the replacement node and key information of the child node of the replacement node;
the child node of the replacement node is used for receiving the identification of the replacement node from the authentication server and the key information of the replacement node;
the replacement node is further configured to perform mutual authentication with the child node of the replacement node through the identifier of the child node of the replacement node, the key information of the child node of the replacement node, the identifier of the replacement node, and the key information of the replacement node.
39. The in-vehicle system of any one of claims 36-38, wherein if the replacement node successfully authenticates with the parent node of the replacement node, or if the replacement node successfully authenticates with the parent node of the replacement node and the child nodes of the replacement node,
the replacement node is further configured to send an authentication completion message to the authentication server.
40. A primary authentication node in an in-vehicle system, the primary authentication node comprising: the system comprises a sending module, a receiving module and an authentication module;
the sending module is used for sending the authentication request of the main authentication node to an authentication server;
the receiving module is used for receiving an authentication response of the main authentication node from the authentication server;
the receiving module is further used for receiving the identification of a secondary authentication node in the vehicle-mounted system and the key information of the secondary authentication node from the authentication server;
and the authentication module is used for authenticating the secondary authentication node.
41. The master authentication node of claim 40, wherein the master authentication node is an initially deployed master authentication node; or the main authentication node is the main authentication node after equipment replacement.
42. A secondary authentication node, wherein the secondary authentication node is one of a plurality of secondary authentication nodes in an in-vehicle system, and the secondary authentication node comprises: a transmitting module and a receiving module;
the sending module is used for sending the authentication request of the secondary authentication node to an authentication server;
the receiving module is used for receiving the authentication response of the secondary authentication node from the authentication server;
the receiving module is further configured to receive, from the authentication server, an identifier of a master authentication node in the vehicle-mounted system and key information of the master authentication node;
and the secondary authentication node is authenticated by the main authentication node according to the identification of the main authentication node and the key information of the main authentication node.
43. The secondary authentication node of claim 42, further comprising: an authentication module;
the receiving module is further configured to receive an identifier of a child node of a secondary authentication node from the authentication server and an authentication key, where the authentication key is generated by the authentication server for the child node of the secondary authentication node;
the authentication module is further configured to authenticate child nodes of the secondary authentication node.
44. The secondary authentication node of claim 42 or 43, wherein the secondary authentication node is an initially deployed secondary authentication node; or the secondary authentication node is the secondary authentication node after the equipment is replaced.
45. A child node of a secondary authentication node, wherein the child node is one of a plurality of child nodes in an in-vehicle system, and the child node comprises: a transmitting module and a receiving module;
the sending module is used for sending the authentication request of the child node to an authentication server;
the receiving module is used for receiving the authentication response of the child node from the authentication server;
the receiving module is further configured to receive, from the authentication server, an identifier of a secondary authentication node in the vehicle-mounted system and an authentication key, where the authentication key is generated by the authentication server for the child node;
and the child node is authenticated by the secondary authentication node according to the identification and the authentication key of the secondary authentication node.
46. The child node of claim 45, wherein the child node is an initially deployed child node; or the child node is the child node after the equipment is replaced.
47. An authentication server, characterized in that the authentication server comprises: at least one processor, a memory;
the memory stores program instructions that are executed in the at least one processor to implement the functions of the authentication server in any of the methods of claims 1-8.
48. An in-vehicle system, characterized in that the in-vehicle system comprises: a primary authentication node, a secondary authentication node and child nodes of the secondary authentication node;
the master authentication node to implement the functionality of the master authentication node in the method of any of claims 17-18;
the secondary authentication node to implement the functionality of the secondary authentication node in the method of any of claims 19-21;
a child node of the secondary authentication node to implement the functionality of the child node of the secondary authentication node in the method of any of claims 22-23.
49. An in-vehicle apparatus characterized by comprising: at least one processor, a memory;
the memory stores program instructions that are executed in the at least one processor to implement the functions of the master authentication node in the method of any one of claims 17-18.
50. An in-vehicle apparatus characterized by comprising: at least one processor, a memory;
the memory stores program instructions for execution in the at least one processor to perform the functions of the secondary authentication node in the method of any one of claims 19-21.
51. An in-vehicle apparatus characterized by comprising: at least one processor, a memory;
the memory stores program instructions for execution in the at least one processor to perform the functions of a child node of the secondary authentication node in the method of any of claims 22-23.
52. A computer storage medium having stored thereon program instructions which, when executed, implement the functions of an authentication server as claimed in any one of claims 1 to 8.
53. A computer storage medium having stored thereon program instructions which, when executed, implement the functions of an in-vehicle system as recited in any of claims 9-16.
54. A computer storage medium having stored thereon program instructions which, when executed, implement the functionality of a primary authentication node as claimed in any one of claims 17 to 18.
55. A computer storage medium having stored thereon program instructions which, when executed, implement the functionality of a secondary authentication node as claimed in any one of claims 19 to 21.
56. A computer storage medium having stored thereon program instructions which, when executed, implement the functionality of a child node of a secondary authentication node according to any of the methods of claims 22-23.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579227.9A CN112153646B (en) | 2019-06-28 | 2019-06-28 | Authentication method, equipment and system |
CN202210136628.9A CN114640995A (en) | 2019-06-28 | 2019-06-28 | Authentication method, equipment and system |
EP20832889.8A EP3982587A4 (en) | 2019-06-28 | 2020-05-25 | Authentication method, device, and system |
PCT/CN2020/092164 WO2020259169A1 (en) | 2019-06-28 | 2020-05-25 | Authentication method, device, and system |
US17/563,706 US20220124086A1 (en) | 2019-06-28 | 2021-12-28 | Authentication Method, Device, and System |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910579227.9A CN112153646B (en) | 2019-06-28 | 2019-06-28 | Authentication method, equipment and system |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210136628.9A Division CN114640995A (en) | 2019-06-28 | 2019-06-28 | Authentication method, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112153646A CN112153646A (en) | 2020-12-29 |
CN112153646B true CN112153646B (en) | 2022-03-08 |
Family
ID=73891460
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210136628.9A Pending CN114640995A (en) | 2019-06-28 | 2019-06-28 | Authentication method, equipment and system |
CN201910579227.9A Active CN112153646B (en) | 2019-06-28 | 2019-06-28 | Authentication method, equipment and system |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210136628.9A Pending CN114640995A (en) | 2019-06-28 | 2019-06-28 | Authentication method, equipment and system |
Country Status (4)
Country | Link |
---|---|
US (1) | US20220124086A1 (en) |
EP (1) | EP3982587A4 (en) |
CN (2) | CN114640995A (en) |
WO (1) | WO2020259169A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102436138B1 (en) * | 2019-12-10 | 2022-08-26 | 한국전자통신연구원 | Method and system for replacing vehicle parts using in-vehicle network based on vehicle ethernet |
CN112994898B (en) * | 2021-04-08 | 2022-07-26 | 北京邮电大学 | Vehicle intranet communication safety authentication method and device |
US20230308439A1 (en) * | 2022-03-22 | 2023-09-28 | Cisco Technology, Inc. | Distributed hierarchical authentication of system component identities |
CN114884706B (en) * | 2022-04-24 | 2023-06-16 | 北京经纬恒润科技股份有限公司 | Vehicle-mounted message processing method and system |
CN115189925A (en) * | 2022-06-22 | 2022-10-14 | 一汽奔腾轿车有限公司 | OTA secure communication method based on TLS bidirectional authentication |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123498A (en) * | 2006-08-08 | 2008-02-13 | 华为技术有限公司 | A method, device and system for access authentication |
CN101155029A (en) * | 2006-09-28 | 2008-04-02 | 三星电子株式会社 | Authentication apparatus and method in wireless mesh network |
CN101980558A (en) * | 2010-11-16 | 2011-02-23 | 北京航空航天大学 | Method for encryption authentication on Ad hoc network transmission layer protocol |
CN103415011A (en) * | 2013-08-05 | 2013-11-27 | 浙江工商大学 | Safety certification method of vehicular adhoc network based on intelligent card |
CN105827587A (en) * | 2015-01-27 | 2016-08-03 | 瑞萨电子株式会社 | Relay apparatus, terminal apparatus, and communication method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7793103B2 (en) * | 2006-08-15 | 2010-09-07 | Motorola, Inc. | Ad-hoc network key management |
JP5479408B2 (en) * | 2011-07-06 | 2014-04-23 | 日立オートモティブシステムズ株式会社 | In-vehicle network system |
US10212590B2 (en) * | 2016-08-16 | 2019-02-19 | Lg Electronics Inc. | Method and apparatus for authenticating device in wireless communication system |
-
2019
- 2019-06-28 CN CN202210136628.9A patent/CN114640995A/en active Pending
- 2019-06-28 CN CN201910579227.9A patent/CN112153646B/en active Active
-
2020
- 2020-05-25 WO PCT/CN2020/092164 patent/WO2020259169A1/en unknown
- 2020-05-25 EP EP20832889.8A patent/EP3982587A4/en active Pending
-
2021
- 2021-12-28 US US17/563,706 patent/US20220124086A1/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101123498A (en) * | 2006-08-08 | 2008-02-13 | 华为技术有限公司 | A method, device and system for access authentication |
CN101155029A (en) * | 2006-09-28 | 2008-04-02 | 三星电子株式会社 | Authentication apparatus and method in wireless mesh network |
CN101980558A (en) * | 2010-11-16 | 2011-02-23 | 北京航空航天大学 | Method for encryption authentication on Ad hoc network transmission layer protocol |
CN103415011A (en) * | 2013-08-05 | 2013-11-27 | 浙江工商大学 | Safety certification method of vehicular adhoc network based on intelligent card |
CN105827587A (en) * | 2015-01-27 | 2016-08-03 | 瑞萨电子株式会社 | Relay apparatus, terminal apparatus, and communication method |
Also Published As
Publication number | Publication date |
---|---|
CN112153646A (en) | 2020-12-29 |
EP3982587A1 (en) | 2022-04-13 |
US20220124086A1 (en) | 2022-04-21 |
EP3982587A4 (en) | 2022-07-27 |
CN114640995A (en) | 2022-06-17 |
WO2020259169A1 (en) | 2020-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112153646B (en) | Authentication method, equipment and system | |
US11985238B2 (en) | Vehicle-mounted device upgrade method and related device | |
CN112585905B (en) | Equipment upgrading method and related equipment | |
CN109257374B (en) | Security control method and device and computer equipment | |
US11546173B2 (en) | Methods, application server, IoT device and media for implementing IoT services | |
CN111279310A (en) | Vehicle-mounted equipment upgrading method and related equipment | |
WO2020211016A1 (en) | Device upgrade method and related device | |
CN106464566B (en) | Network system, communication control method, and storage medium | |
KR20150074414A (en) | Firmware upgrade method and system thereof | |
CN113439425B (en) | Message transmission method and device | |
JP2018133743A (en) | Monitoring device, communication system, vehicle, monitoring method, and computer program | |
CN112422595B (en) | Vehicle-mounted system safety protection method and device | |
CN110959274A (en) | System and method for managing safety communication between modules in controller local area network | |
CN113347133A (en) | Authentication method and device for vehicle-mounted equipment | |
JP7522216B2 (en) | Certificate list update method and device | |
CN113285932A (en) | Method for acquiring edge service, server and edge device | |
Hartzell et al. | Security analysis of an automobile controller area network bus | |
US11488404B2 (en) | Session unique access token for communications with a vehicle | |
CN115296813B (en) | Identity authentication method and system for automobile Ethernet controller | |
US11818280B2 (en) | Systems and methods for centrally managing and routing multiple credentials | |
WO2024098429A1 (en) | Method for accessing service and related products | |
CN115296864B (en) | In-vehicle node trusted interaction method, device and storage medium | |
WO2022241799A1 (en) | Key generation method and apparatus | |
Palaniswamy | Improving authentication and key management for intra and inter vehicular communication | |
CN116055033A (en) | Method for generating session key, communication network system, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |