Identity authentication method, device, equipment and medium

The certificate manages the public key and identity of the authenticated end, and combines the hardware security module to store the private key, which solves the problem of lightness and reliability in key management in multi-end communication systems, and improves the efficiency of identity authentication and system performance.

CN115842632BActive Publication Date: 2024-10-18CONTEMPORARY AMPEREX TECHNOLOGY CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211426793.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-15
Publication Date
2024-10-18
Estimated Expiration
2042-11-15

AI Technical Summary

Technical Problem

In the existing technology, in complex systems with multi-terminal communication and interaction, it is difficult for key management to be both lightweight and reliable, resulting in a complex key management process and high consumption of computing resources, which affects system performance.

Method used

The public key of the authenticated end is managed through the certificate, and multiple public keys and identifiers of the certificate are used for identity authentication, which reduces the use of the key management module, improves the efficiency of key update, and stores the private key through the hardware security module to enhance the reliability of identity authentication. sex.

Benefits of technology

On the premise of ensuring the reliability of key authentication, it is possible to reduce computing resource consumption, simplify the key management process, and improve system performance and the reliability of identity authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115842632B_ABST
    Figure CN115842632B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of network security technology, and provides an identity authentication method, device, equipment and medium, the method comprising: initiating an authentication end to obtain a certificate; initiating an identity authentication request to the authenticated end and obtaining a certificate; obtaining the public key of the authenticated end from multiple public keys in the certificate; or, determining that the locally stored public key of the authenticated end is authentic and complete through multiple public key hash values ​​of the certificate; generating encrypted information using the public key of the authenticated end, and sending the encrypted information to the authenticated end; receiving decryption information of the encrypted information from the authenticated end, and the decryption information of the encrypted information is used to authenticate the identity of the authenticated end. The present application manages the public key of the authenticated end through a certificate, and eliminates the dedicated module for managing the key while ensuring the reliability of key authentication, thereby saving computing resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of network security technology, and in particular, relates to identity authentication methods, devices, equipment and media. Background Art

[0002] In complex systems involving multi-terminal communications and interactions, identity authentication between end nodes is a key issue that affects the reliability of system operation. Currently, the commonly used technologies in the industry are to authenticate identities between nodes based on key pairs such as shared key authentication and asymmetric key authentication.

[0003] Although these prior art solutions can provide relatively effective identity authentication at the initial stage of communication between end nodes in a complex system involving multi-end communication and interaction, such as at the initial stage of communication between ECU / domain controller nodes inside a car, the following problems still exist.

[0004] Since a complex system involves a large number of end nodes, a correspondingly large number of key pairs are required, which makes the key management (distribution, replacement, etc.) process more difficult.

[0005] Furthermore, in response to the above problems, the prior art provides a solution for managing keys using a dedicated module. However, in this solution, a relatively reliable key management module will consume more computing resources, and a relatively lightweight key management module has the disadvantage of insufficient reliability.

[0006] Therefore, how to provide an identity authentication solution that is both lightweight and reliable has become a technical problem that needs to be urgently solved in the industry. Summary of the invention

[0007] The embodiments of the present application provide an identity authentication method and device, which can solve the problem in the prior art that key management cannot be both lightweight and reliable.

[0008] In a first aspect, an embodiment of the present application provides an identity authentication method, including:

[0009] Initiate an identity authentication request to the authenticated end and obtain a certificate;

[0010] Obtain the public key of the authenticated end from the multiple public keys of the certificate; or, determine that the locally stored public key of the authenticated end is authentic and complete through the multiple public key hash values ​​of the certificate;

[0011] Generate encrypted information using the public key of the authenticated end, and send the encrypted information to the authenticated end;

[0012] The decryption information of the encrypted information is received from the authenticated end, where the decryption information of the encrypted information is used to authenticate the identity of the authenticated end.

[0013] The above method manages the public key of the authenticated end through the certificate, and the certificate has high reliability and can ensure the security of the public key. Since the public keys of multiple devices can be stored in the certificate, the initiating authentication end only needs to call the public key of the device that needs to be authenticated (i.e., the authenticated end) from the certificate and perform the subsequent steps of encryption, sending and verification to complete the verification. By combining the certificate with the key, multiple authenticated ends can share one or a small number of certificates, and the initiating authentication end only needs a small number of certificates to manage the public keys of multiple authenticated ends. While utilizing the high reliability of the certificate, it avoids the disadvantage of the heavy identity authentication system brought by the simple use of certificates (i.e., the disadvantage of increased system complexity caused by a large number of certificates). When the device that needs to be authenticated needs to update the key (e.g., the authenticated end is replaced), the key update management can be completed by replacing the certificate, without the need to regenerate and distribute new keys, thereby eliminating the dedicated module for managing keys while ensuring the reliability of key authentication, saving computing resources.

[0014] In a possible implementation manner of the first aspect, after the step of sending the encrypted information to the authenticated end, the method further includes:

[0015] Receive the identifier of the authenticated end from the authenticated end, and determine whether the identifier of the authenticated end received by the initiating authentication end is legal based on multiple identifiers of the authenticated end stored in the certificate or a hash value of multiple identifiers of the authenticated end stored in the certificate; the identifier of the authenticated end is an identification mark that corresponds one-to-one to at least a part of the hardware of the authenticated end.

[0016] The above method provides authentication for the hardware of the authenticated end by introducing the identifier of the authenticated end, thereby avoiding fraudulent authentication caused by illegal replacement of the hardware of the authenticated end.

[0017] In a possible implementation manner of the first aspect, when the authenticated end is a domain controller, the step of the authenticating end obtaining a certificate includes:

[0018] The authentication initiator obtains the certificate from the domain controller; the certificate is the identity certificate of the domain controller.

[0019] The above method applies an identity authentication process based on certificate management keys in the automotive electrical system to authenticate the domain controller. On the one hand, the reliability of the identity authentication of the domain controller, a key component, is enhanced through the identity certificate of the domain controller. On the other hand, it saves computing resources for the automotive electrical system, a relatively closed system with limited and fixed computing resources, so that the computing resources of modules such as autonomous driving and environmental perception are more abundant, thereby improving the overall performance of the vehicle.

[0020] In a possible implementation manner of the first aspect, the step of obtaining the public key of the authenticated end from the multiple public keys of the certificate includes:

[0021] Determining that the certificate is legitimate, obtaining the public key of the domain controller from the certificate, or obtaining the public key of the domain controller and the identifier of the domain controller from the certificate;

[0022] The step of determining that the locally stored public key of the authenticated end is authentic and complete through the multiple public key hash values ​​of the certificate comprises:

[0023] If it is determined that the certificate is legal, the hash value of the public key of the domain controller is obtained from the certificate, or the hash value of the public key of the domain controller and the hash value of the identifier of the domain controller are obtained;

[0024] If it is determined that the Hash value of the public key of the domain controller is consistent with the Hash value obtained after the locally stored public key of the authenticated terminal is hashed, it is determined that the public key of the authenticated terminal stored locally by the initiating authentication terminal is authentic and complete.

[0025] The above method verifies the identity of the domain controller through the certificate, and further improves the reliability of the domain controller's identity authentication by cooperating with key pair verification (and identity verification in some cases).

[0026] In a possible implementation manner of the first aspect, a domain controller key pair consisting of a private key of the domain controller and a public key of the domain controller is generated by a hardware security module of the domain controller and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of the domain controller through a hardware encryption and decryption engine in the hardware security module of the domain controller;

[0027] The private key of the domain controller is configured to be accessible only within the hardware security module of the domain controller, or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of the domain controller.

[0028] The above method introduces a hardware security module (HSM) to store private keys, or private keys and identifiers, prohibiting any access outside the HSM. The HSM can only be accessed in the HSM, or accessed by a hardware encryption and decryption engine for encryption and decryption operations, thereby further improving the reliability of identity authentication. At the same time, the introduction of the HSM can also avoid the risk of stealing identifiers and private keys to impersonate domain controllers.

[0029] In a possible implementation manner of the first aspect, when the authentication initiator is a domain controller, the step of the authentication initiator obtaining a certificate includes:

[0030] The domain controller obtains the certificate locally; the certificate is the identity certificate of the domain controller.

[0031] The above method applies an identity authentication process based on certificate management keys in the automotive electrical system, uses a domain controller to authenticate other devices, such as ECUs in the control domain, and enhances the identity reliability of the domain controller as a key component through the identity certificate of the domain controller, and implements a management function with low computing resource consumption for the public keys of other devices, such as ECUs in the control domain, thereby saving computing resources for the automotive electrical system, which is a relatively closed system with limited and fixed computing resources, making the computing resources of modules such as autonomous driving and environmental perception more abundant, thereby improving the overall performance of the vehicle.

[0032] In a possible implementation manner of the first aspect, the authenticated end is any ECU in a control domain of the domain controller;

[0033] The certificates include:

[0034] Public keys of the plurality of ECUs or Hash values ​​of the public keys of the plurality of ECUs; and,

[0035] The identification of multiple ECUs or the hash values ​​of the identification of multiple ECUs. The above method realizes the management of public keys and identifications through certificates by introducing the public keys and identifications of ECUs in the extended information of certificates, so that when the ECU is replaced and the key and identification need to be updated, the update management of the key and identification can be completed by simply replacing the certificate, thereby eliminating the dedicated module for management and saving computing resources while ensuring the reliability of key authentication and identification authentication.

[0036] In a possible implementation manner of the first aspect, after the step of obtaining the public key of the authenticated end from the multiple public keys of the certificate, the method further includes:

[0037] It is determined that the locally stored public key of the authenticated end is consistent with the public key of the authenticated end in the certificate.

[0038] The above method verifies the public key stored locally at the initiating authentication end through the certificate, thereby avoiding the risk of tampering with the local information of the initiating authentication end and thus fraudulent authentication.

[0039] In a second aspect, the embodiment of the present application provides another identity authentication method, including:

[0040] Receive identity authentication requests and send certificates to the authentication initiator;

[0041] The certificates include:

[0042] multiple public keys, and the multiple public keys include the public key of the authenticated end; or,

[0043] Hash values ​​of multiple public keys, where the Hash values ​​of the multiple public keys include the Hash value of the public key of the authenticated end;

[0044] Receiving encrypted information encrypted by the public key of the authenticated end;

[0045] The encrypted information is decrypted using the private key of the authenticated end, and decrypted information is generated and sent to the authentication initiating end; the decrypted information is used to authenticate the identity of the authenticated end.

[0046] The above method manages the public key of the authenticated end through the certificate, so that the public key information of the authenticated end is protected from tampering through the certificate, which provides a reliable basis for the generation of encrypted information when the initiator performs identity authentication. When the device to be authenticated is replaced or the key needs to be updated, the key update management can be completed by simply replacing the certificate. On the one hand, while ensuring the reliability of key authentication, the dedicated module for managing the key is omitted, saving computing resources; on the other hand, it also provides a good foundation for dual identity authentication based on certificates and key pairs.

[0047] In a possible implementation manner of the second aspect, after the step of receiving the identity authentication request, the method further includes:

[0048] The identifier of the authenticated end is sent to the authentication initiating end; the identifier of the authenticated end is an identification mark that corresponds one-to-one with at least a part of the hardware of the authenticated end, and the identifier of the authenticated end is used to authenticate the identity of the authenticated end.

[0049] The above method provides authentication for the hardware of the authenticated end by introducing the identifier of the authenticated end, thereby avoiding fraudulent authentication caused by illegal replacement of the hardware of the authenticated end.

[0050] In a possible implementation manner of the second aspect, the authenticated end is a domain controller; and the certificate is an identity certificate of the domain controller.

[0051] The above method applies an identity authentication process based on certificate management keys in the automotive electrical system to authenticate the domain controller. On the one hand, the reliability of the identity authentication of the domain controller, a key component, is enhanced through the identity certificate of the domain controller. On the other hand, it saves computing resources for the automotive electrical system, a relatively closed system with limited and fixed computing resources, so that the computing resources of modules such as autonomous driving and environmental perception are more abundant, thereby improving the overall performance of the vehicle.

[0052] In a possible implementation manner of the second aspect, a domain controller key pair consisting of a private key of the domain controller and a public key of the domain controller is generated by a hardware security module of the domain controller and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of the domain controller through a hardware encryption and decryption engine in the hardware security module of the domain controller;

[0053] The private key of the domain controller is configured to be accessible only within the hardware security module of the domain controller, or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of the domain controller.

[0054] The above method introduces a hardware security module (HSM) to store private keys, or private keys and identifiers, prohibiting any access outside the HSM. The HSM can only be accessed in the HSM, or accessed by a hardware encryption and decryption engine for encryption and decryption operations, thereby further improving the reliability of identity authentication. At the same time, the introduction of the HSM can also avoid the risk of stealing identifiers and private keys to impersonate domain controllers.

[0055] In a possible implementation manner of the second aspect, after the step of generating decryption information and sending it to the authentication initiating end, the method further includes:

[0056] Receive an identity authentication success message from the authentication initiator;

[0057] Obtain the certificate locally;

[0058] Obtaining the public key of the ECU from the certificate, or determining that the public key of the ECU stored locally is authentic and complete through multiple public key hash values ​​of the certificate; the ECU is any one of the multiple ECUs in the control domain of the domain controller;

[0059] Encrypting ECU verification information according to the public key of the ECU to generate an ECU verification ciphertext; the ECU verification information is verification information used to authenticate the identity of the ECU;

[0060] Sending the ECU verification ciphertext to the ECU;

[0061] Decryption information of the ECU verification ciphertext is received from the ECU; the decryption information of the ECU verification ciphertext is used to authenticate the identity of the ECU.

[0062] The above method constructs a three-level identity authentication structure in which the initiating authentication end authenticates the domain controller and the domain controller authenticates the ECU in the domain, and cooperates with the domain controller's identity certificate to manage the domain controller's own public key, the public key of the ECU in the domain, the domain controller's own identification and the identification of the ECU in the domain, thereby realizing lightweight automotive electrical system identity authentication through certificate management of keys; in addition, the introduction of the identification can also realize triple identity authentication in conjunction with the certificate and key pair, thereby maximizing the reliability of the identity authentication; at the same time, it can also provide a basis for additional authentication of the domain controller's identity through the domain controller's identity certificate and tamper verification of the public key of the ECU in the domain stored locally on the domain controller, so that the reliability of the identity authentication has more room for improvement.

[0063] In a possible implementation manner of the second aspect, after the step of sending the ECU verification ciphertext to the ECU, the method further includes:

[0064] Receive the identification of the ECU from the ECU, and determine whether the identification of the ECU received by the domain controller is legal based on the identifications of multiple ECUs stored in the certificate or the hash values ​​of the identifications of multiple ECUs stored in the certificate; the identification of the ECU is an identification mark that corresponds one-to-one to at least a part of the hardware of the ECU.

[0065] The above method provides authentication for the hardware of the authenticated end by introducing the identification of the ECU, thereby avoiding fraudulent authentication caused by illegal replacement of the ECU hardware.

[0066] In a possible implementation manner of the second aspect, the certificate includes:

[0067] The public key of the domain controller or the hash value of the public key of the domain controller; and,

[0068] The identifier of the domain controller or a hash value of the identifier of the domain controller; and,

[0069] Public keys of the plurality of ECUs or Hash values ​​of the public keys of the plurality of ECUs; and,

[0070] The identifiers of the multiple ECUs or the Hash values ​​of the identifiers of the multiple ECUs.

[0071] The above method uses the non-plaintext stored Hash value as the certificate information to verify the identification or public key, further protects the ECU identification information and the ECU public key information in the certificate, and enhances the reliability of identity authentication.

[0072] In a possible implementation manner of the second aspect, after the step of obtaining the public key of the ECU from the certificate, the method further includes:

[0073] Determine that the public key of the ECU locally stored in the domain controller is consistent with the public key of the ECU in the certificate.

[0074] The above method verifies the public key of the ECU stored locally in the domain controller through the certificate to prevent tampering, which can avoid fraudulent authentication caused by illegal intrusion into the domain controller and further improve the reliability of identity authentication.

[0075] In a possible implementation manner of the second aspect, an ECU key pair consisting of a private key of the ECU and a public key of the ECU is generated by a hardware security module of the ECU and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of the ECU through a hardware encryption and decryption engine in the hardware security module of the ECU;

[0076] The private key of the ECU is configured to be accessible only within the hardware security module of the ECU, or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of the ECU.

[0077] The above method introduces a hardware security module (HSM) to store private keys, or private keys and identifiers, prohibiting any access outside the HSM. The HSM can only be accessed in the HSM, or accessed by a hardware encryption and decryption engine for encryption and decryption operations, thereby further improving the reliability of identity authentication. At the same time, the introduction of the HSM can also avoid the risk of stealing identifiers and private keys to impersonate domain controllers.

[0078] In a third aspect, an embodiment of the present application provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the identity authentication method described in any one of the first aspect or the identity authentication method described in any one of the second aspect is implemented.

[0079] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the identity authentication method described in any one of the first aspect or the identity authentication method described in any one of the second aspect.

[0080] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes the identity authentication method described in any one of the first aspect or the identity authentication method described in any one of the second aspect.

[0081] It can be understood that the beneficial effects of the third to fifth aspects mentioned above can be found in the relevant descriptions of the first and second aspects mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0082] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0083] Figure 1 It is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0084] Figure 2 This is a schematic diagram of the first process of the identity authentication method provided in the embodiment of the present application;

[0085] Figure 3 It is a second flow chart of the identity authentication method provided in the embodiment of the present application;

[0086] Figure 4 It is a timing diagram of the identity authentication method provided in the embodiment of the present application;

[0087] Figure 5 It is a structural diagram of the ECU provided in the embodiment of the present application;

[0088] Figure 6 It is a schematic diagram of the process of identity authentication in the automobile system provided by the embodiment of the present application;

[0089] Figure 7 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application.

[0090] Reference numerals:

[0091] Automotive systems 31;

[0092] Cloud management platform 32;

[0093] Certificate CA server 33;

[0094] Automatic driving module 311;

[0095] Domain controller 312;

[0096] ECU313;

[0097] Terminal device 70;

[0098] Processor 701;

[0099] Memory 702;

[0100] Computer program 703. DETAILED DESCRIPTION

[0101] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0102] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0103] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0104] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0105] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0106] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0107] Identity authentication is an effective solution to the process of confirming the identity of an operator in a computer network. All information in the computer network world, including the user's identity information, is represented by a set of specific data. Computers can only recognize the user's digital identity, and all authorizations to users are also authorizations for the user's digital identity. How to ensure that the operator who operates with a digital identity is the legal owner of this digital identity, that is, to ensure that the operator's physical identity corresponds to the digital identity, is a problem that needs to be solved in the field of identity authentication.

[0108] It is worth noting that the definition of identity authentication is based on computer networks. The computer networks here should be understood in a broad sense. In actual applications, there are some atypical identity authentication requirements in computer networks. For example, for cars, especially smart cars, Figure 1 As shown, the extremely large number of ECUs 313 or domain controllers 312 involved therein can also be understood as nodes in a computer network; for another example, each control node of a large ship can also be understood as a node in a computer network.

[0109] In the field of identity authentication, the commonly used solutions currently available in the industry include certificate authentication, shared key authentication, asymmetric key authentication, etc. These authentication solutions can reliably complete the basic functions of identity authentication under certain specific conditions.

[0110] However, the inventors found in their research that for complex systems involving multi-terminal communications and interactions, the process required for identity authentication between each end node is relatively complicated. For example, when identity authentication between each end node in a complex system is achieved through certificate authentication, due to the large number of end nodes, a large number of certificates are naturally generated, which makes the certificate management (issuance, replacement, revocation, etc.) process relatively complicated. In order to improve the reliability of the certificate management process, a separate system module for certificate management is required. Due to the aforementioned situation, the system module for certificate management is often heavy and requires more computing resources, which is not conducive to the reasonable allocation of computing power in a closed system. For example, when identity authentication between each end node in a complex system is achieved through key pairs (shared key authentication, asymmetric key authentication, etc.), due to the same reason that there are a large number of end nodes, additional computing power is required to ensure reliability in key management, including distribution and replacement, which is not conducive to the reasonable allocation of computing power in a closed system.

[0111] That is to say, although the existing technologies can relatively reliably complete the basic functions of identity authentication under certain specific conditions, for complex systems involving multi-terminal communications and interactions, the existing technologies cannot better coordinate the reliability of the identity authentication function and the consumption of computing resources.

[0112] As an example but not a limitation, a typical application scenario that the existing technology cannot coordinate well is the identity authentication between the internal components of a smart car. The following is a brief introduction to the relevant background of this application scenario of smart cars.

[0113] A notable development trend of automotive electronics is the increasing use of chips, from traditional engine control systems, airbags, anti-lock braking systems, electric power steering, electronic stability systems, headlight control, air conditioning, water pumps and oil pumps, instruments, entertainment and audio-visual systems, to the now widely used tire pressure monitoring systems, keyless entry and start systems, electric seat heating adjustment, as well as the increasingly mature and emerging assisted driving systems, matrix headlights, ambient lights, electric drive control, battery management systems, on-board charging systems in electric vehicles, as well as the booming on-board gateways, T-BOX and autonomous driving modules, etc. These applications have led to a significant increase in the number of electronic control units ECU313.

[0114] In addition, with the substantial increase in the number of ECU313, the automotive electronic and electrical architecture, especially the connection between the CAN bus and the LIN bus, has been challenged, and what follows is domain management through the DCU (Domain Control Unit), that is, the automotive domain controller 312; although the introduction of the DCU can solve the bottleneck problems of units such as information security and electronic control, for the sub-field of identity authentication, it is still equivalent to the introduction of an additional DCU node that may require identity authentication.

[0115] Therefore, it can be understood that a traditional car is a complex system involving multi-terminal communications and interactions, and without considering communication solutions such as the cloud, this system is relatively closed, that is, the computing power resources within the car are limited and precious.

[0116] Compared with traditional cars, smart cars also introduce additional environmental perception and its related controllers, actuators and other system units. At the same time, control / execution strategies such as autonomous driving will place extremely high demands on the computing resources within the car. In this case, the problem that the above-mentioned existing technologies cannot better coordinate the reliability of the identity authentication function and the consumption of computing resources will become extremely prominent.

[0117] The embodiments of the present application can be applied in including but not limited to the above-mentioned smart car scenarios, so as to effectively reduce the additional computing resource consumption caused by certificate and / or key pair management while ensuring the reliability of identity authentication (in some embodiments, the reliability is improved compared with the existing technology).

[0118] See also Figure 2 , the present application embodiment provides an identity authentication method, including:

[0119] Step 102: Initiate an identity authentication request to the authenticated end and obtain a certificate;

[0120] Step 104, obtaining the public key of the authenticated end from the multiple public keys of the certificate; or, determining that the locally stored public key of the authenticated end is authentic and complete through the multiple public key hash values ​​of the certificate;

[0121] Step 106, generating encrypted information using the public key of the authenticated end, and sending the encrypted information to the authenticated end;

[0122] Step 108: receiving decryption information of the encrypted information from the authenticated end, where the decryption information of the encrypted information is used to authenticate the identity of the authenticated end.

[0123] In this embodiment, the authentication initiator and the authenticated end should be understood as nodes in a system involving multi-terminal communication and interaction, and are not limited to devices with physical entities; more specifically, the authentication initiator is the node that initiates authentication, and the authenticated end is the node that is authenticated.

[0124] Furthermore, the authenticated end may be any node that needs to be authenticated in a complex system involving multi-terminal communication and interaction, and the initiating authentication end may be any node that can authenticate the authenticated end in a complex system involving multi-terminal communication and interaction. In addition, for a specific node in the system, it may be the authenticated end in one interaction and the initiating authentication end in another interaction.

[0125] As mentioned in the above introduction to identity authentication, this embodiment can be applied to any complex system involving multi-terminal communication and interaction, such as smart car scenarios (such as Figure 1 ), ship electrical systems or typical computer network systems, in this case, the authenticated end can be understood as a node in the system that requires identity authentication.

[0126] Similarly, the authentication initiator is a node preset in the system that can initiate identity authentication at the necessary time and under the necessary conditions. In particular, there is not necessarily a one-to-one correspondence between the authentication initiator and the authenticated end, that is, for a specific authentication initiator, it can initiate authentication processes for multiple authenticated ends at the same time or at different times (for example, step 102 or step 106; in particular, in some embodiments, the public keys of multiple authenticated ends can be obtained from the same certificate, such as the certificate obtained in step 102), and for a specific authenticated end, it can respond to authentication processes initiated by multiple authentication initiators at the same time or at different times (for example, receiving a certificate acquisition request, or receiving encrypted information obtained by encrypting verification information using the public key of the authenticated end).

[0127] In some implementations, the certificate in step 102 is obtained through identity authentication request information, that is, the authentication initiator sends an identity authentication request information to the authenticated end, and in response, the authenticated end sends the certificate to the authentication initiator.

[0128] In other embodiments, the encrypted information of step 106 is sent as part of the identity authentication request information;

[0129] In these implementation methods, the identity authentication request information is information generated by the initiating authentication end at a preset time and under preset conditions for executing the identity authentication process. This information can be generated by the initiating authentication end and obtained by the authenticated end, or generated and sent by the initiating authentication end and received by the authenticated end, or interacted based on other feasible communication methods. These communication methods are equivalent to the initiating authentication end sending a copy of the authentication request information to the authenticated end. Therefore, the description of "sending" is used in this embodiment. This description cannot be understood as a limitation on the specific interaction method of encrypted information (of course, in some cases, as part of the identity authentication request information), decrypted information or other information that involves multi-terminal interaction in this application.

[0130] The specific form of the identity authentication request information may be determined according to the communication protocol or other predetermined logic of a complex system involving multi-terminal communication and interaction. In the implementation method where the encrypted information is a part of the identity authentication request information, the identity authentication request information may also include other content in addition to the encrypted information.

[0131] Since the identity authentication request information may contain information other than verification information, in addition to the verification information being authenticated, there may be other related authentications (for example, the authenticated end identity verification introduced in subsequent embodiments). That is, in some embodiments, after all the information involved in the identity authentication request information is authenticated, the identity authentication of the authenticated end is passed.

[0132] Specifically in this embodiment, the decryption information of the encrypted information is used to authenticate the identity of the authenticated end. This means that the decryption information of the encrypted information can be compared with the verification information. If the two are consistent, at least part of the identity authentication task of the authenticated end is confirmed to have passed; if the two are inconsistent, the identity authentication of the authenticated end fails.

[0133] After the authenticated end obtains the encrypted information, that is, after step 106 is executed, it can know that the encrypted information is used to authenticate its own identity based on the communication protocol or other predetermined logic of the complex system involving multi-terminal communication and interaction, and thus can decrypt the verification information based on the private key of the authenticated end, that is, the private key of the authenticated end, thereby obtaining the decrypted information of the encrypted information.

[0134] It is worth noting that although the decryption information of the encrypted information has been decrypted by the private key of the authenticated terminal, since the verification information is information generated by the initiating authentication terminal and is unknown to other terminals, the decryption information of the encrypted information can be understood as a ciphertext and does not constitute a restriction on the difference in form between the decryption information of the encrypted information and the verification information. In some implementation methods, the decryption information of the encrypted information and the verification information are in the same form.

[0135] The generation of verification information can be completed locally by the initiating authentication end, or it can be generated by predetermined external software. In a preferred embodiment, the verification information is completed locally by the initiating authentication end. This embodiment has the advantage of being more reliable, that is, the risk of information theft that may be caused by external software can be avoided through this embodiment.

[0136] As an example but not limitation, the verification information may be a nonce value randomly generated locally by the initiating authentication end, where nonce is an abbreviation of Number once, which refers to an arbitrary or non-repetitive random value that is used only once.

[0137] One of the functions of the certificate in this embodiment is to manage the public key of the authenticated end. In a preferred implementation, for a specific initiating authentication end, the public key of the authenticated end that can initiate the authentication process can be stored in the certificate, and the storage form can be the extended information of the certificate.

[0138] In this preferred implementation, a specific initiating authentication end can initiate the authentication process with a set of public keys of the authenticated end as at least a part of the certificate information set (in some subsequent embodiments, the certificate information set may also include an identifier). Then, before the certificate is issued, the certificate information set can be understood as information used to apply for a certificate. After the certificate is issued, the certificate information set is reliably stored as extended information of the certificate.

[0139] In this embodiment, before step 102 is executed, the certificate should be in the issued state.

[0140] In some cases, if some of the information of the authenticated end changes (for example, the public key of the authenticated end changes, or the identification of the authenticated end in subsequent embodiments changes, and the reasons for these changes include but are not limited to the replacement of system hardware), the certificate information set will change accordingly, and correspondingly, the certificate should also be replaced with the updated certificate information set.

[0141] Furthermore, the execution of each step of this embodiment should be subject to an authentication initiation condition, that is, after the authentication initiation condition is met, the initiating authentication end starts to execute the method of this embodiment (or, executes at least part of the method of this embodiment, for example, starting from step 104).

[0142] In this embodiment, the certificate may be the identity certificate of the authentication initiator (referred to as the first certificate) or the identity certificate of the authenticated end (referred to as the second certificate). Therefore, the initiation condition of the authentication process, i.e., the authentication initiation condition, includes the first certificate verification pass condition or the second certificate verification pass condition.

[0143] The first certificate verification pass condition refers to the condition that the authenticated end public key stored in the initiating authentication end is consistent with the authenticated end public key in the first certificate;

[0144] The second certificate verification pass condition refers to the condition that the second certificate returned by the authenticated end is legal.

[0145] The authentication initiation condition is a necessary condition for the initiator to execute the identity authentication process. The first certificate verification pass condition or the second certificate verification pass condition in this embodiment can be at least a part of the authentication initiation condition. In some optional implementations, the authentication initiation condition should also include the initiation timing condition. For example, in the application scenario of a smart car, the action of starting the car can be understood as a timing condition for initiating the identity authentication process with the smart cockpit as the initiator and any domain controller 312 in the car as the authenticated end; for example, in the previous example, the identity authentication of any domain controller 312 in the car is passed, which can be understood as a timing condition for initiating the identity authentication process with the domain controller 312 as the initiator and any ECU313 in the domain corresponding to the domain controller 312 as the authenticated end.

[0146] The first certificate verification pass condition or the second certificate verification pass condition can be understood as a certificate-based identity authentication. Different from other schemes, the certificate applicant in this certificate-based identity authentication is not limited to the authenticated party or the authentication initiator. That is, either the authenticated party or the authentication initiator completes the certificate application before the identity authentication process starts, that is, before step 102, and obtains the first certificate or the second certificate issued by the issuing authority (for example, a CA server).

[0147] Since the logical relationship between the first certificate and the second certificate in this embodiment is "or", that is, the two can be understood as parallel solutions, two parallel solutions will be introduced below respectively.

[0148] The first certificate is the identity certificate of the initiating authentication end, and the extended information of the first certificate stores the public key of the authenticated end that the initiating authentication end can authenticate (in some subsequent embodiments, it also includes the authenticated end identifier; in some optional implementations, the extended information of the first certificate also stores the public key information of the initiating authentication end itself, so that the initiating authentication end can perform identity authentication as the authenticated end in some interactions). Since the first certificate is issued by the issuing authority, the reliability of the extended information in the first certificate can be guaranteed. On this basis, the first certificate verification passes the condition to determine that the public key of the authenticated end stored locally at the initiating authentication end is consistent with the public key of the authenticated end in the extended information of the first certificate, which can effectively prevent the local information of the initiating authentication end from being tampered with, thereby improving the reliability of identity authentication.

[0149] The second certificate is the identity certificate of the authenticated end, and the public key of the authenticated end is stored in the extended information of the second certificate. The legitimacy of the second certificate of the authenticated end is verified through the second certificate verification condition. If the second certificate is illegal, the identity authentication process can be terminated and an alarm message can be issued. If the second certificate is legal, secondary verification can be continued through the key pair.

[0150] For the initiator of authentication, the information of the first certificate and the second certificate is obtained as follows:

[0151] In the case of the first certificate: Since the first certificate is obtained by the authentication initiator and is stored locally on the authentication initiator, it can be directly called for verification;

[0152] Second certificate: Although the second certificate is obtained by the authenticated end through application, since the authenticated end has already sent the second certificate to the initiating authentication end (and verified its legitimacy) when the second certificate verification conditions are met, the initiating authentication end can call the second certificate sent by the authenticated end for verification.

[0153] It is worth noting that the above-mentioned first certificate and second certificate are relative to the authenticated end and the authentication initiator. In some implementations, the first certificate and the second certificate may be the same certificate. The three-tier identity authentication architecture of the smart cockpit (which may also be the cloud management platform 32 or the autonomous driving module 311), the domain controller 312, and the ECU 313 in the smart car, that is, the smart cockpit performs identity authentication on the domain controller 312, and the domain controller 312 performs identity authentication on the ECU 313 in the domain, is exemplarily described as follows:

[0154] Among the smart cockpit, domain controller 312, and ECU313, only the domain controller 312 can execute the certificate application and hold the certificate issued by the issuing agency (this certificate, that is, the ID card of the domain controller 312, is recorded as the domain controller certificate). The application information and extended information of the domain controller certificate include the public key information of the ECU313 in the domain and the public key information of the domain controller 312 itself (in some subsequent embodiments, it also includes the identification of the domain controller 312 itself and the identification of the ECU313 in the domain).

[0155] In the identity authentication process performed by the domain controller 312 on the ECU 313 within the domain, ECU 313 is the authenticated end, and the public key information of ECU 313 is the authenticated end public key in this embodiment, and the domain controller certificate is the first certificate.

[0156] In the identity authentication process performed by the smart cockpit on the domain controller 312, the smart cockpit is the authentication initiator, the domain controller 312 is the authenticated end, and the domain controller certificate is the second certificate.

[0157] Therefore, from the perspective of two-level identity authentication, this embodiment can select the party with a larger number of paired nodes (for the authenticated end, the pairing number refers to the number of initiating authentication ends that can initiate authentication for it; for the initiating authentication end, the pairing number refers to the number of authenticated ends that can initiate authentication for it) among the authenticated end and the initiating authentication end as the certificate applicant and holder, thereby minimizing the number of certificates that need to be managed, and on this basis, realizing the management of key pairs through certificates.

[0158] From the perspective of three-level or even higher-level identity authentication, this embodiment can use the middle-level nodes as certificate applicants and holders, thereby more conveniently minimizing the number of certificates that need to be managed, and on this basis, managing key pairs through certificates.

[0159] Furthermore, the information contained in the certificate in this embodiment will be described below.

[0160] The certificate information can be divided into two parts: basic information and extended information. Multiple public keys or hash values ​​of multiple public keys can be used as at least a part of the basic information of the certificate, and can also be used as at least a part of the extended information of the certificate.

[0161] In addition, in the scheme of storing the hash values ​​of multiple public keys through certificates, the hash values ​​of multiple public keys can be stored in the certificate independently, or the multiple public keys can be combined into an overall public key text according to a preset scheme, and the hash value of the overall public key text can be stored in the certificate.

[0162] In a preferred three-level authentication implementation, there is an authentication structure of the smart cockpit (first-level node), the domain controller 312 (second-level node), and the ECU 313 (third-level node). The certificate is the second-level node, that is, the authentication certificate of the domain controller 312. The certificate stores the public key (or public key hash value) of the domain controller 312 and the public keys (or public key hash values) of multiple ECUs 313 in the domain. Specifically:

[0163] The public key (or public key hash value) of the domain controller 312 is stored in the basic information of the certificate as the identity of the domain controller;

[0164] The public keys (or public key hash values) of multiple ECUs 313 within the domain are stored in the extended information of the certificate as public key management information of the object for identity authentication initiated by the domain controller.

[0165] It is worth noting that in step 104 of this embodiment, the two steps before and after "or" correspond to the steps of selecting one of the certificate storing multiple public keys and the Hash values ​​of multiple public keys. In some possible implementations, the certificate stores both multiple public keys and the Hash values ​​of multiple public keys, and these two steps can also be executed simultaneously.

[0166] The beneficial effects of this embodiment are:

[0167] The public key of the authenticated end is managed through the certificate. Since the public keys of multiple devices can be stored in the certificate, the initiator of authentication only needs to call the public key of the device to be authenticated from the certificate, that is, the public key of the authenticated end, and perform the subsequent steps of encryption, sending and verification to complete the verification. When the device to be authenticated is replaced and the key needs to be updated, the key update management can be completed by simply replacing the certificate. On the one hand, while ensuring the reliability of key authentication, the dedicated module for managing keys is omitted, saving computing resources; on the other hand, it also provides a good foundation for dual identity authentication based on certificates and key pairs.

[0168] According to the above embodiment, an identity authentication embodiment based on the authenticated end identifier other than a key pair and a certificate will be provided below. First, the relevant background of this embodiment will be described.

[0169] In complex systems involving multi-terminal communications and interactions, there is a situation where identity authentication can be bypassed, counterfeited or deceived, that is, through illegal and malicious replacement of a hardware in the system, the system can be controlled or information can be stolen.

[0170] For example, in the application scenario of smart cars, as cars become more intelligent and connected, there are more and more intelligent electronic control units on the car, and their control functions are becoming more centralized and powerful. While these numerous ECU313s greatly improve the intelligence and controllability of cars, they also face the following problems:

[0171] (1) There is a risk that the key ECU313 in each domain control inside the car may be replaced maliciously. An attacker can replace the key ECU313 in the car to control the car and steal the user's confidential information.

[0172] (2) Automobile manufacturers cannot control the replacement of key ECU313 components by parts from non-regular manufacturers during the maintenance period, which brings potential safety risks to car owners and also damages the profits of automobile manufacturers and 4S stores.

[0173] In order to overcome the above problems, in this embodiment:

[0174] After the step of sending the encrypted information to the authenticated end, the method further includes:

[0175] Receive the identifier of the authenticated end from the authenticated end, and determine whether the identifier of the authenticated end received by the initiating authentication end is legal based on multiple identifiers of the authenticated end stored in the certificate or a hash value of multiple identifiers of the authenticated end stored in the certificate; the identifier of the authenticated end is an identification mark that corresponds one-to-one to at least a part of the hardware of the authenticated end.

[0176] In this embodiment, the identifier of the authenticated end is an identifier bound to at least a part of the hardware of the authenticated end. In an optional implementation scheme in a smart car application scenario, since the domain controller 312 and ECU313 both include a processor CPU or a microprocessor MCU in their structures, the identifier of the authenticated end can directly use the die ID (bare chip identifier) ​​of the CPU or MCU.

[0177] In this embodiment, the reliability of the die identification can be guaranteed, that is, although the manufacturer of the CPU or MCU can know the die identification, it cannot know where a specific CPU or MCU is located. When facing any domain controller 312 or ECU 313, it is also impossible to determine the die identification of the CPU or MCU therein.

[0178] As an example and not a limitation, the identifier of the authenticated end is used to authenticate the identity of the authenticated end, which means that the identifier of the authenticated end received by the initiating authentication end from the authenticated end can be compared with the identifier of the authenticated end in the certificate extension information. If the two are consistent, at least part of the identity authentication task of the authenticated end is passed. If the two are inconsistent, the identity authentication of the authenticated end fails.

[0179] An optional implementation method of storing the public key hash value and the identification hash in the certificate is given below, specifically:

[0180] The extended information of the certificate includes a first Hash value; the first Hash value is obtained by performing a Hash operation on the identifier of the authenticated end.

[0181] When applying for a certificate, the authenticated end or the authenticating end constructs a certificate CSR by performing a hash operation on the authenticated end's identifier and using the hashed identifier as at least a part of the extended information.

[0182] By using hash operations to avoid using plain text as extended information in the certificate, the reliability of the identity authentication process can be further improved.

[0183] The identifier of the authenticated end is used to authenticate the identity of the authenticated end, which can be achieved through the following steps.

[0184] Performing a hash operation on the identity of the authenticated end received by the authenticating end from the authenticated end to obtain a received hash value;

[0185] The first Hash value in the extended information of the certificate is compared with the received Hash value. If the two are consistent, at least part of the identity authentication task of the authenticated end is passed. If the two are inconsistent, the identity authentication of the authenticated end fails.

[0186] It is worth noting that in the above scheme, there is a problem that the hash value and the original text cannot theoretically correspond one to one, that is, there is a possibility that different original texts will obtain the same hash value after hash operation.

[0187] However, the length of the identifier is limited. By agreeing on the length of the identifier characters, the situation where the received hash value is consistent with the first hash value can be accurately corresponded to the result that the received identifier and the identifier as the certificate application information are the same.

[0188] This implementation further protects the identification information in the certificate by using the first Hash value stored in non-plain text as the extended information of the certificate, thereby enhancing the reliability of identity authentication.

[0189] Furthermore, this embodiment also includes:

[0190] The initiating authentication end obtains the second Hash value from the extended information of the certificate; the second Hash value is obtained by performing a Hash operation on the public key of the authenticated end;

[0191] The public key of the authenticated end is verified according to the second Hash value; the character length of the public key of the authenticated end is not greater than a preset threshold (ie, the number of characters in the public key of the authenticated end is not greater than the preset threshold).

[0192] From a static perspective, this embodiment can also be understood as:

[0193] The extended information of the certificate includes a second Hash value; the second Hash value is obtained by performing a Hash operation on the public key of the authenticated end.

[0194] Regarding the hash operation, the first hash value has been explained. For the second hash value, the above explanation is still applicable, that is, for the public key, its length is limited. Through the agreement on the length of the public key, the hash operation in this embodiment can be understood as a strictly one-to-one operation.

[0195] This implementation ensures the one-to-one correspondence between the Hash value and the public key of the authenticated end by limiting the number of characters in the public key of the authenticated end to no more than a preset threshold, thereby making the Hash operation verification in actual application reliable, and further realizing encryption and decryption based on Hash operation. That is, the above method further protects the public key information in the certificate through the second Hash value stored in the certificate in non-plain text, thereby enhancing the reliability of identity authentication.

[0196] The beneficial effects of this embodiment are:

[0197] By introducing the identity of the authenticated end, authentication for the authenticated end hardware is provided, thereby avoiding fraudulent authentication caused by illegal replacement of the authenticated end hardware.

[0198] According to any of the above embodiments, a specific embodiment will be given below based on the application scenario of an automobile. In this embodiment:

[0199] When the authenticated end is the domain controller 312, the steps of (the initiating authentication end) obtaining the certificate include:

[0200] The authentication initiator obtains a certificate from the domain controller 312 ; the certificate is the identity certificate of the domain controller 312 .

[0201] As mentioned above, among the smart cockpit, domain controller 312, and ECU313, only the domain controller 312 can execute the certificate application and hold the certificate issued by the issuing agency (this certificate, that is, the identity card of the domain controller 312, is recorded as the domain controller certificate).

[0202] As an important part of the car, the domain controller 312 can realize hierarchical management of each node in the car's electrical system (of course, in some other implementations applied to non-automotive systems, the domain controller 312 can still achieve similar functions). Its identity authentication naturally needs to be more stringent, otherwise the security of each node in the control domain of the domain controller 312 cannot be guaranteed.

[0203] In this embodiment, the domain controller 312 serves as the authenticated end, and the domain controller certificate itself can provide verification for the identity of the controller. Combined with the verification based on the key pair and the identification of the domain controller 312, the verification reliability of the domain controller 312 can be better guaranteed.

[0204] The beneficial effects of this embodiment are:

[0205] An identity authentication process based on certificate management keys is applied in the automotive electrical system to authenticate the domain controller 312. On the one hand, the reliability of the identity authentication of the key component of the domain controller 312 is enhanced through the identity certificate of the domain controller 312. On the other hand, computing resources are saved for the automotive electrical system, which is a relatively closed system with limited and fixed computing resources, so that the computing resources of modules such as autonomous driving and environmental perception are more abundant, thereby improving the overall performance of the vehicle.

[0206] According to the above embodiment, an embodiment for pre-verification of a domain control certificate is provided below. In this embodiment:

[0207] The step of (the initiating authentication end) obtaining the public key of the authenticated end from the multiple public keys of the certificate includes:

[0208] If the certificate is determined to be legitimate, the authentication initiator obtains the public key of the domain controller 312 from the certificate, or obtains the public key of the domain controller 312 and the identifier of the domain controller 312 from the certificate;

[0209] The steps of (the initiating authentication end) determining that the public key of the authenticated end stored locally by the initiating authentication end is authentic and complete through the public key hash value of the certificate include:

[0210] If the certificate is determined to be legitimate, the authentication initiator obtains the hash value of the domain controller's public key from the certificate, or obtains the hash value of the domain controller's public key and the hash value of the domain controller's identifier;

[0211] If it is determined that the Hash value of the public key of the domain controller is consistent with the Hash value obtained after the Hash operation of the public key of the authenticated terminal stored locally at the initiating authentication terminal, it is determined that the public key of the authenticated terminal stored locally at the initiating authentication terminal is authentic and complete.

[0212] In an optional implementation, if it is determined that the certificate is illegal, the identity authentication process is terminated and a preset operation is performed; the preset operation may be to alert the user, freeze at least part of the permissions of the domain controller 312, upload the identity authentication record to the cloud, etc.

[0213] In this embodiment, the pre-certificate verification can save some operations that may be invalid, that is, if the domain controller certificate is not legal, the public key of the domain controller 312 in the domain controller certificate is not trustworthy. It can be understood that the subsequent key pair verification performed based on the public key of the domain controller 312 in the domain controller certificate is invalid.

[0214] The beneficial effects of this embodiment are:

[0215] The identity of the domain controller 312 is verified through the certificate, and the reliability of the identity authentication of the domain controller 312 is further improved in combination with the key pair verification (and the identification verification in some cases).

[0216] According to any of the above embodiments, a key protection embodiment based on the hardware level is given below. In this embodiment:

[0217] The domain controller key pair consisting of the private key of the domain controller 312 and the public key of the domain controller 312 is generated by the hardware security module (HSM) of the domain controller 312 and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of the domain controller 312 through the hardware encryption and decryption engine in the hardware security module of the domain controller 312;

[0218] The private key of the domain controller 312 is configured to be accessible only within the hardware security module of the domain controller 312 , or configured to be accessible only through decryption by the hardware encryption / decryption engine in the hardware security module of the domain controller 312 .

[0219] In this embodiment, a hardware security module (HSM) is a computer hardware device used to protect and manage keys used in a strong authentication system and provide related cryptographic operations.

[0220] In addition, hardware encryption and decryption is defined as: using a hardware circuit (HSM) outside the electronic product to be encrypted and decrypted to communicate with the electronic product to be encrypted and decrypted, allowing the internal program of the product to determine whether it should continue to execute the program through the communication data.

[0221] Hardware encryption and decryption is to realize cryptographic operations through dedicated encryption and decryption chips or independent processing chips. When the encryption and decryption chips, proprietary electronic keys, and storage partitions are matched one by one, the encryption and decryption chips will match the encryption and decryption chip information, proprietary key information, and storage partition information and perform encryption and decryption operations, and write them into the storage partition at the same time. At this time, the encryption and decryption chips, proprietary electronic keys, and storage partitions are bound together, and they cannot be used without any one of them. After encryption and decryption, if the corresponding encryption and decryption chips and electronic keys are separated, the partition cannot be identified on the node of the authenticated end or the initiating authentication end, and no data can be obtained.

[0222] Hardware encryption and decryption can be managed using standard network management protocols, such as SNMP, CMIP, etc., or using a unified network management protocol.

[0223] In each embodiment of the present application, the private key of the domain controller 312 plays an important role in the process of authenticating the domain controller 312 and is the basis for key pair verification. Therefore, an attacker may try to crack the authentication by stealing the private key of the domain controller 312. In order to prevent this possibility, this embodiment requires that each domain controller 312 needs to have HSM function.

[0224] In an optional implementation, since the domain controller 312 has a CPU as a processing unit, the HSM function can be implemented based on the CPU in the domain controller 312, that is, the CPU of the domain controller 312 has the HSM function.

[0225] The beneficial effects of this embodiment are:

[0226] By introducing a hardware security module (HSM) to store private keys, or private keys and identifiers, any access outside the HSM is prohibited. The device can only be accessed within the HSM, or by a hardware encryption and decryption engine for encryption and decryption operations, further improving the reliability of identity authentication. At the same time, the introduction of the HSM can also avoid the risk of stealing identifiers and private keys to impersonate the domain controller 312.

[0227] According to any of the above embodiments, an embodiment in which the domain controller 312 is used as the authentication initiator is given below. In this embodiment:

[0228] When the authentication initiator is the domain controller 312, the steps of obtaining the certificate (the authentication initiator) include:

[0229] The domain controller 312 obtains a certificate locally; the certificate is the identity certificate of the domain controller 312 .

[0230] As mentioned above, among the smart cockpit, domain controller 312, and ECU313, only the domain controller 312 can execute the certificate application and hold the certificate issued by the issuing agency (this certificate, that is, the identity card of the domain controller 312, is recorded as the domain controller certificate).

[0231] This embodiment (and some subsequent embodiments) and some of the aforementioned embodiments respectively provide implementation methods in which the domain controller 312 serves as the authentication initiator and the authenticated end. In both types of implementation methods, the certificate can be the identity certificate of the domain controller 312. That is to say, in the three-level authentication structure of the automobile (the smart cockpit, cloud management platform 32, autonomous driving module 311 or other authentication initiators serve as the first level to authenticate the domain controller 312, and the domain controller 312 serves as the second level to authenticate the in-domain ECU 313 serving as the third level), only the same number of certificates as the domain controllers 312 are needed to complete the key / identity management of the entire system.

[0232] In addition to the advantages of lightweight management of keys / identifications by certificates, the number of certificates equal to the number of domain controllers 312 will not be very large, thus not causing the problem of difficult certificate management.

[0233] The beneficial effects of this embodiment are:

[0234] An identity authentication process based on certificate management keys is applied in the automotive electrical system, and the domain controller 312 is used to authenticate other devices, such as ECU313 in the control domain. The identity reliability of the domain controller 312, a key component, is enhanced through the identity certificate of the domain controller 312, and a management function with low computing resource consumption for the public keys of other devices, such as ECU313 in the control domain, is implemented, thereby saving computing resources for the automotive electrical system, a relatively closed system with limited and fixed computing resources, making the computing resources of modules such as autonomous driving and environmental perception more abundant, thereby improving the overall performance of the vehicle.

[0235] According to any of the above embodiments, an embodiment in which the domain controller 312 is used as the authentication initiator and the ECU 313 in the domain of the domain controller 312 is used as the authenticated end is given below. In this embodiment:

[0236] The authenticated end is any ECU in the control domain of the domain controller; the certificate includes:

[0237] Public keys of multiple ECUs or hash values ​​of public keys of multiple ECUs; and,

[0238] The identifiers of multiple ECUs or the hash values ​​of the identifiers of multiple ECUs.

[0239] In a preferred embodiment, the certificate, i.e., the extended information of the domain controller certificate, includes the public key of the domain controller 312 itself, the identification of the domain controller 312 itself, the public key of the ECU 313, and the identification of the ECU 313; in this embodiment, the domain controller certificate can achieve the following two functions:

[0240] 1. When the domain controller 312 performs identity authentication on the ECU 313, it verifies whether the public key of the ECU 313 and the identification of the ECU 313 stored locally have been tampered with through the domain controller certificate, thereby completing a more reliable identity authentication of the ECU 313;

[0241] 2. In other interactive processes, when the domain controller 312 is authenticated by other authentication initiators, on the one hand, the domain controller certificate is sent to the authentication initiator to verify the legitimacy of the certificate to complete the first authentication task of the domain controller 312. On the other hand, the authentication initiator can obtain the public key and identifier of the domain controller 312 through the domain controller certificate to perform key pair verification based on verification information, encryption information and decryption information and hardware verification based on the identifier, thereby completing the second and third authentication tasks of the domain controller 312.

[0242] The beneficial effects of this embodiment are:

[0243] By introducing the public key of ECU313 and the identifier of ECU313 in the extended information of the certificate, the management of the public key and the identifier is realized through the certificate. When ECU313 is replaced and the key and the identifier need to be updated, the update management of the key and the identifier can be completed by simply replacing the certificate. This eliminates the need for a dedicated module for management while ensuring the reliability of key authentication and identifier authentication, thereby saving computing resources.

[0244] According to any of the above embodiments, an embodiment of preventing the information stored locally by the domain controller 312 from being maliciously tampered with is provided below. In this embodiment:

[0245] After the initiator obtains the public key of the authenticated end from multiple public keys in the certificate, it includes:

[0246] Determine that the public key of the authenticated end stored locally by the initiating authenticator is consistent with the public key of the authenticated end in the certificate.

[0247] In an optional implementation, the above steps provided in this embodiment are the prerequisite steps for the step of generating encrypted information by encrypting verification information with the public key of the authenticated end using the authenticated end, that is, the public key of the authenticated end stored locally by the authenticated end is consistent with the public key of the authenticated end in the certificate. This can be considered as the case where the authenticated end has not been subjected to tampering attack, and the identity authentication step can be executed normally.

[0248] That is to say, although the reliability of the public key obtained through the certificate can be guaranteed, whether the public key of the authenticated end stored locally by the initiating authentication end has been tampered with is still a key step in identifying whether the system is attacked. On this basis, this embodiment also includes:

[0249] If it is determined that the public key of the authenticated end stored locally by the initiating authentication end is inconsistent with the public key of the authenticated end in the certificate, the identity authentication process is terminated and the preset operation is performed;

[0250] Alternatively, if it is determined that the public key of the authenticated end stored locally by the initiating authentication end is inconsistent with the public key of the authenticated end in the certificate, a preset operation is performed according to the identity authentication result, and the identity authentication result of the authenticated end is adjusted to fail.

[0251] The preset operation may be to alert the user, freeze at least part of the permissions of the authenticated end, upload the identity authentication record to the cloud, etc.

[0252] In a preferred embodiment, a step is also included in parallel with the step of determining that the public key of the authenticated end stored locally by the initiating authentication end is consistent with the public key of the authenticated end in the certificate, specifically:

[0253] If it is determined that the identification of ECU313 received by the domain controller 312 from ECU313 is consistent with the identification key of ECU313 in the extended information of the certificate, the identification authentication of ECU313 is passed.

[0254] As an example but not limitation, since ECU313 has a CPU or MCU as a processing unit, the identifier of ECU313 can be set to the die ID (bare chip identifier) ​​of the CPU or MCU in ECU313. This setting can save the additional step of generating an identifier for each ECU313.

[0255] Similarly, since the domain controller 312 has a CPU or MCU as a processing unit, the identifier of the domain controller 312 can also be set to the die ID (bare die identifier) ​​of the CPU or MCU in the domain controller 312. This setting can also save the additional step of generating an identifier for each domain controller 312.

[0256] The beneficial effects of this embodiment are:

[0257] The public key of ECU 313 stored locally in the domain controller 312 is verified by the certificate, thereby avoiding the risk of local information of the domain controller 312 being tampered with, thereby causing fraudulent authentication.

[0258] According to any of the above embodiments, another embodiment of key protection based on hardware level is given below. In this embodiment:

[0259] The ECU313 key pair consisting of the private key of ECU313 and the public key of ECU313 is generated by the hardware security module of ECU313 and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of ECU313 through the hardware encryption and decryption engine in the hardware security module of ECU313;

[0260] The private key of ECU 313 is configured to be accessible only within the hardware security module of ECU 313 , or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of ECU 313 .

[0261] In an optional implementation, since the ECU 313 has a CPU or MCU as a processing unit, the HSM function can be implemented based on the CPU or MCU in the ECU 313 , that is, the CPU or MCU of the domain controller 312 has the HSM function.

[0262] In each embodiment of the present application, the identifier (in some cases, also including the public key) is only stored locally at the authenticated end, the authentication initiator, and a preset reliable location, specifically:

[0263] When the domain controller 312 is used as the authentication initiator and the ECU 313 is used as the authenticated end, the identification of the ECU 313 (including the public key in some cases) is only stored in the ECU 313, the domain controller 312, and a preset reliable location;

[0264] In the case where the domain controller 312 is the authenticated end and the cloud management platform 32, the autonomous driving module 311 or the smart cockpit (or other device) is the initiating authentication end, the identification of the domain controller 312 (including the public key in some cases) is only stored in the domain controller 312, the initiating authentication end, and a preset reliable location;

[0265] In an implementation mode where the identifier is set as a die identifier, the reliability of the die identifier can be guaranteed, that is, although the manufacturer of the CPU or MCU can know the die identifier, it cannot know where a specific CPU or MCU is set, and when facing any domain controller 312 or ECU 313, it is impossible to determine the die identifier of the CPU or MCU therein.

[0266] Therefore, the preset reliable locations may include, for example, certificate servers, chip manufacturers, etc.

[0267] The beneficial effects of this embodiment are:

[0268] By introducing a hardware security module (HSM) to store private keys, or private keys and identifiers, any access outside the HSM is prohibited. Access is only possible within the HSM, or by a hardware encryption and decryption engine for encryption and decryption operations, further improving the reliability of identity authentication. At the same time, the introduction of HSM can also avoid the risk of stealing identifiers and private keys to impersonate ECU313.

[0269] According to any of the above embodiments, an embodiment of the generation and transmission timing of a key pair and an identifier is provided below. In this embodiment:

[0270] The ECU313 key pair is generated and stored during the production of the vehicle to which ECU313 belongs; the public key of ECU313 and the identifier of ECU313 used to apply for the certificate are sent to the domain controller 312 during the production of the vehicle to which ECU313 belongs; the certificate is applied for and issued during the production of the vehicle to which ECU313 belongs.

[0271] The manufacturing period of a vehicle should be understood in a broad sense. For example, the maintenance period, component production period, component assembly period, etc. can all be understood as the manufacturing period. The main purpose of this period limit is to ensure that when key pairs and identifications are generated and transmitted, only reliable authorized parties (such as manufacturers, repair manufacturers, etc.) can perform operations, so as to ensure the reliability of identity authentication from the source.

[0272] During the use of a car, it is inevitable that some parts will be replaced due to failure or other reasons. When parts are replaced legally, such as when repaired at an authorized repair shop, the aforementioned anti-tampering measures should not be triggered. Therefore, the maintenance period can be understood as the vehicle production and manufacturing period in a broad sense.

[0273] The beneficial effects of this embodiment are:

[0274] By completing the generation and storage of the ECU313 key pair, the transmission of the public key and identification of ECU313, and the application and issuance of the certificate during this reliable period of vehicle production and manufacturing, combined with the HSM-based private key and identification storage, it is possible to effectively prevent the risk of attackers replacing the authenticated end to deceive authentication, thereby controlling the car or stealing user privacy information, that is: assuming that an attacker replaces a certain authenticated end and steals its identification for counterfeiting, due to the existence of HSM, the attacker cannot completely steal the key pair of the authenticated end, and thus cannot achieve replacement counterfeiting; if the attacker uses a new set of key pairs to try to replace the original key pair of the authenticated end in order to bypass the problem of being unable to steal the key pair, since the new public key cannot be rewritten into the certificate to replace the original public key stored in the certificate, replacement counterfeiting is also impossible.

[0275] Corresponding to the above embodiments described based on the perspective of the initiating authentication end, with the initiating authentication end as the execution subject, the following embodiments will be provided based on the perspective of the authenticated end, with the authenticated end as the execution subject, such as Figure 3 As shown, in this embodiment:

[0276] Step 202, receiving an identity authentication request and sending a certificate to the authentication initiator;

[0277] The certificates include:

[0278] multiple public keys, and the multiple public keys include the public key of the authenticated end; or,

[0279] Hash values ​​of multiple public keys, where the Hash values ​​of the multiple public keys include the Hash value of the public key of the authenticated end;

[0280] Step 204, receiving the encrypted information encrypted by the public key of the authenticated end;

[0281] Step 206: decrypt the encrypted information using the private key of the authenticated end, generate decrypted information and send it to the authentication initiating end; the decrypted information is used to authenticate the identity of the authenticated end.

[0282] The solution provided in this embodiment, which is based on the perspective of the authenticated end and takes the authenticated end as the execution subject, is interrelated with the solution provided in the above embodiments, which is based on the perspective of the authentication initiating end and takes the authentication initiating end as the execution subject, and together constitutes an identity authentication process involving interaction between both ends. Therefore, the explanations and descriptions of some concepts in the above embodiments are still applicable to this embodiment and subsequent embodiments.

[0283] It is worth noting that this embodiment provides a solution in which the certificate is stored in the authenticated end. In some implementation modes, the certificate is the identity certificate of the authenticated end.

[0284] In addition, if the certificate is stored on the authentication initiator, the execution steps of the authenticated end as the execution subject are relatively direct, namely:

[0285] Obtaining encrypted information; encrypted information is the ciphertext obtained by encrypting the verification information with the public key of the authenticated end;

[0286] Generate decryption information of encrypted information; the decryption information of encrypted information is the ciphertext obtained by decrypting the encrypted information with the private key of the authenticated end;

[0287] The public key of the authenticated end is stored in the extended information of the certificate.

[0288] Since this solution can be easily understood through the explanation and illustration of the above embodiments, it will not be described in detail here.

[0289] The beneficial effects of this embodiment are:

[0290] By managing the public key of the authenticated end through certificates, the public key information of the authenticated end is guaranteed to be tamper-proof through certificates, providing a reliable basis for the generation of encrypted information when the initiator performs identity authentication. When the device to be authenticated is replaced or the key needs to be updated, the key update management can be completed by simply replacing the certificate. On the one hand, while ensuring the reliability of key authentication, the dedicated module for managing the key is omitted, saving computing resources; on the other hand, it also provides a good foundation for dual identity authentication based on certificates and key pairs.

[0291] According to the above embodiment with the authenticated end as the execution subject, the following will provide an identity authentication embodiment based on the authenticated end identifier in addition to the key pair and the certificate. In this embodiment:

[0292] After the (authenticated end) receives the authentication request from the authenticating end, the following steps are also included:

[0293] The authenticated end sends its identifier to the authenticating end; the identifier of the authenticated end is an identification mark that corresponds one-to-one with at least a part of the hardware of the authenticated end, and the identifier of the authenticated end is used to authenticate the identity of the authenticated end.

[0294] Regarding the identification part, please refer to the aforementioned embodiment in which the authentication initiator is used as the execution subject.

[0295] The beneficial effects of this embodiment are:

[0296] By introducing the identity of the authenticated end, authentication for the authenticated end hardware is provided, thereby avoiding fraudulent authentication caused by illegal replacement of the authenticated end hardware.

[0297] According to any of the above embodiments with the authenticated end as the execution subject, a three-level identity authentication embodiment is provided below. In this embodiment:

[0298] The authenticated end is the domain controller 312 ; the certificate is the identity certificate of the domain controller 312 .

[0299] After the step of (the authenticated end) sending the decryption information to the authenticating end, the method further includes:

[0300] The domain controller 312 receives an identity authentication success message from the authentication initiator;

[0301] The domain controller 312 obtains the certificate locally;

[0302] The domain controller 312 obtains the public key of the ECU 313 from the certificate, or the domain controller determines that the public key of the ECU stored locally in the domain controller is authentic and complete through multiple public key hash values ​​of the certificate; the ECU 313 is any ECU 313 in the control domain of the domain controller 312;

[0303] The domain controller 312 encrypts the ECU313 verification information according to the public key of the ECU313 to generate the ECU313 verification ciphertext; the ECU313 verification information is the verification information used to authenticate the identity of the ECU313;

[0304] The domain controller 312 sends the ECU 313 verification ciphertext to the ECU 313;

[0305] The domain controller 312 receives decryption information of the ciphertext verified by ECU313 from ECU313; the decryption information of the ciphertext verified by ECU313 is used to authenticate the identity of ECU313.

[0306] In this embodiment, ECU313 can be understood as a third device. The three-level identity authentication structure means that the authenticating end performs an identity authentication process on the authenticated end. After passing the authentication process, the authenticated end performs an identity authentication process on the third device.

[0307] Among them, the identity authentication process performed by the authenticating end on the authenticated end is the process introduced in the above two embodiments with the authenticated end as the execution subject; the identity authentication process performed by the authenticated end on the third device is the process of this embodiment and subsequent embodiments.

[0308] It is worth noting that the identity authentication process performed by the authenticated end on the third device is similar to the process of the aforementioned embodiment in which the initiating authentication end is the executor, so the explanations and descriptions of some concepts in the aforementioned embodiment are still applicable to this embodiment and subsequent embodiments.

[0309] The beneficial effects of this embodiment are:

[0310] By constructing a three-level identity authentication structure in which the initiating authentication end authenticates the domain controller 312 and the domain controller 312 authenticates the ECU 313 within the domain, and coordinating the identity certificate of the domain controller 312 to manage the public key of the domain controller 312 itself, the public key of the ECU 313 within the domain, the identification of the domain controller 312 itself and the identification of the ECU 313 within the domain, lightweight automotive electrical system identity authentication through certificate management of keys is achieved; in addition, the introduction of the identification can also realize triple identity authentication in conjunction with the certificate and key pair, thereby maximizing the reliability of the identity authentication; at the same time, it can also provide a basis for additional authentication of the identity of the domain controller 312 through the identity certificate of the domain controller 312 and tamper verification of the public key of the ECU 313 within the domain stored locally by the domain controller 312, so that the reliability of the identity authentication has more room for improvement.

[0311] According to any of the above embodiments in which the domain controller 312 is used as the authenticated end and the ECU 313 is used as the third device, an embodiment for authenticating the identification of the ECU 313 is provided below. In this embodiment:

[0312] After the step of the domain controller 312 sending the ECU 313 verification ciphertext to the ECU 313, the following steps are also included:

[0313] The domain controller 312 receives the identification of ECU313 from ECU313, and determines whether the identification of ECU received by the domain controller is legal based on the identifications of multiple ECUs stored in the certificate or the hash value of the identifications of multiple ECUs stored in the certificate; the identification of ECU313 is an identification mark that corresponds one-to-one to at least a part of the hardware of ECU313, and the identification of ECU313 is used to authenticate the identity of ECU313.

[0314] In an optional embodiment, the authentication initiator performs key pair authentication, identity authentication of the domain controller 312, and certificate legitimacy authentication on the domain controller 312 respectively. Subsequently, the domain controller 312 that has passed the identity authentication performs anti-tampering verification on the public key of the ECU 313 in the domain stored locally. After the anti-tampering verification passes, key pair authentication and ECU 313 identity authentication are performed on the ECU 313 in the domain respectively.

[0315] This implementation method performs six subtasks for the three-level identity authentication structure (domain controller 312 key pair authentication, domain controller 312 identity authentication, domain controller certificate legitimacy authentication, domain controller 312 local anti-tampering verification, ECU313 key pair authentication and ECU313 identity authentication), thereby completing the identity authentication of each node of the automotive system 31.

[0316] The beneficial effects of this embodiment are:

[0317] By introducing the identification of ECU313, authentication for the hardware of the authenticated end is provided, thereby avoiding fraudulent authentication caused by illegal replacement of the hardware of ECU313.

[0318] According to any of the above embodiments in which the domain controller 312 is used as the authenticated end and the ECU 313 is used as the third device, a more complete embodiment of the certificate extension information is provided below. In this embodiment:

[0319] The certificate includes:

[0320] The domain controller's public key or a hash of the domain controller's public key; and,

[0321] The domain controller's identifier or a hash of the domain controller's identifier; and,

[0322] Public keys of multiple ECUs or hash values ​​of public keys of multiple ECUs; and,

[0323] The identifiers of multiple ECUs or the hash values ​​of the identifiers of multiple ECUs.

[0324] In an alternative embodiment:

[0325] The extended information of the certificate further includes a third Hash value, or further includes the third Hash value and a fourth Hash value;

[0326] The third Hash value is obtained by performing a Hash operation on the public key of ECU313; and the fourth Hash value is obtained by performing a Hash operation on the identification of ECU313.

[0327] In an optional implementation, the extended information of the certificate includes a first hash value, a second hash value, a third hash value, and a fourth hash value, thereby implementing hash value storage of the domain controller 312 public key, the domain controller 312 identifier, the ECU 313 public key, and the ECU 313 identifier.

[0328] The beneficial effects of this embodiment are:

[0329] By using the third Hash value and the fourth Hash value stored in non-plain text as extended information of the certificate, the identification information of ECU313 and the public key information of ECU313 in the certificate are further protected, thereby enhancing the reliability of identity authentication.

[0330] According to any of the above examples, the domain controller 312 is used as the authenticated end and the ECU 313 is used as the third device. The following is an example of local storage tamper-proof verification of the domain controller 312. In this example:

[0331] After the domain controller obtains the ECU's public key from the certificate, it also includes:

[0332] Make sure that the public key of the ECU stored locally on the domain controller is consistent with the public key of the ECU in the certificate.

[0333] In an optional implementation, the above steps provided in this embodiment are prerequisite steps for the domain controller to encrypt the ECU verification information according to the ECU's public key and generate the ECU verification ciphertext, that is, the public key of the ECU stored locally in the domain controller is consistent with the public key of the ECU in the certificate. It can be considered that the authentication initiator has not been subjected to tampering attack, and the identity authentication step can be executed normally.

[0334] That is to say, although the reliability of the public key obtained through the certificate can be guaranteed, whether the public key of the authenticated end stored locally by the initiating authentication end has been tampered with is still a key step in identifying whether the system is attacked. On this basis, this embodiment also includes:

[0335] If it is determined that the public key of the ECU stored locally in the domain controller is inconsistent with the public key of the ECU in the certificate, the identity authentication process is terminated and the preset operation is performed;

[0336] Alternatively, if it is determined that the public key of the ECU stored locally in the domain controller is inconsistent with the public key of the ECU in the certificate, a preset operation is performed according to the identity authentication result, and the identity authentication result of the authenticated end is adjusted to fail.

[0337] The preset operation may be to alert the user, freeze at least part of the permissions of the authenticated end, upload the identity authentication record to the cloud, etc.

[0338] The beneficial effects of this embodiment are:

[0339] The public key of ECU313 stored locally in the domain controller 312 is verified to prevent tampering through the certificate, which can avoid fraudulent authentication caused by illegal intrusion into the domain controller 312 and further improve the reliability of identity authentication.

[0340] According to any of the above embodiments with the domain controller 312 as the authenticated end and the ECU 313 as the third device, an embodiment of local storage tamper-proof verification of the domain controller 312 is provided below. In this embodiment:

[0341] The ECU key pair consisting of the private key of ECU313 and the public key of ECU313 is generated by the hardware security module of ECU313 and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of ECU313 through the hardware encryption and decryption engine in the hardware security module of ECU313;

[0342] The private key of ECU 313 is configured to be accessible only within the hardware security module of ECU 313 , or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of ECU 313 .

[0343] The beneficial effects of this embodiment are:

[0344] By introducing a hardware security module (HSM) to store private keys, or private keys and identifiers, any access outside the HSM is prohibited. The device can only be accessed within the HSM, or by a hardware encryption and decryption engine for encryption and decryption operations, further improving the reliability of identity authentication. At the same time, the introduction of the HSM can also avoid the risk of stealing identifiers and private keys to impersonate the domain controller 312.

[0345] According to any of the above embodiments with the domain controller 312 as the authenticated end and the ECU 313 as the third device, an embodiment of local storage tamper-proof verification of the domain controller 312 is provided below. In this embodiment:

[0346] The ECU313 key pair is generated and stored during the production of the vehicle to which ECU313 belongs; the public key of ECU313 and the identifier of ECU313 used to apply for the certificate are sent to the domain controller 312 during the production of the vehicle to which ECU313 belongs; the certificate is applied for and issued during the production of the vehicle to which ECU313 belongs.

[0347] The beneficial effects of this embodiment are:

[0348] By completing the generation and storage of the ECU313 key pair, the transmission of the public key and identification of ECU313, and the application and issuance of the certificate during this reliable period of vehicle production and manufacturing, combined with the HSM-based private key and identification storage, it is possible to effectively prevent the risk of attackers replacing the authenticated end to deceive authentication, thereby controlling the car or stealing user privacy information, that is: assuming that an attacker replaces a certain authenticated end and steals its identification for counterfeiting, due to the existence of HSM, the attacker cannot completely steal the key pair of the authenticated end, and thus cannot achieve replacement counterfeiting; if the attacker uses a new set of key pairs to try to replace the original key pair of the authenticated end in order to bypass the problem of being unable to steal the key pair, since the new public key cannot be rewritten into the certificate to replace the original public key stored in the certificate, replacement counterfeiting is also impossible.

[0349] The following is an overall description of the two-terminal solutions consisting of the two groups of embodiments for the authenticated end and the authenticating end respectively. Figure 4 .

[0350] The steps of the two-end solution consisting of the authenticated end and the authenticating end as a whole include:

[0351] If the preset authentication initiation conditions are met, the initiator obtains the certificate and the public key of the authenticated end;

[0352] The initiating authentication end sends the encrypted information obtained by encrypting the verification information with the public key of the authenticated end to the authenticated end;

[0353] The authenticated end decrypts the encrypted information with the authenticated end private key to obtain the decrypted information;

[0354] The authenticated end sends the decrypted information and the authenticated end identification;

[0355] The authenticator verifies the decrypted information and the authenticated end's ID to obtain the identity authentication result.

[0356] As mentioned in the above two groups of embodiments, for a specific node, it may act as the authenticated end in one interaction and as the authentication initiator in another interaction. That is to say, the embodiments of the present application can be applied to three or more levels of identity authentication processes, and as the identity authentication process of any adjacent level.

[0357] The following will take the smart car application scenario as an example to introduce a preferred implementation method of the three-level identity authentication process. In this implementation method, each technical feature can be extended to other application scenarios, that is, in some optional implementation methods, the bare chip identifier in this implementation method can be understood as the authenticated party identifier, the public key of ECU313 or the domain controller can be understood as the authenticated party public key, the public keys of the domain controller, smart cockpit, cloud platform, etc. can be understood as the authenticating party public key, and the domain controller's certificate can be understood as the first certificate or the second certificate in different occasions.

[0358] Although the existing identity authentication technology can solve the identity authentication of both ends of the in-vehicle communication at the beginning of the communication, it cannot completely prevent counterfeiting, especially in the near-end attack scenario, where the attacker steals the certificate or authentication key, replaces the ECU313, deceives the other end, and achieves the purpose of counterfeiting. In addition, the certificate-based authentication method for the ECU313 identity authentication in the car is relatively heavy. As the number of ECU313 nodes in the car increases, the number of certificates required is also very large, which brings great trouble to certificate management, including issuance, replacement, revocation, etc.; authentication based on shared keys is also very troublesome in key management, including distribution and replacement, due to the large number of communication nodes.

[0359] That is to say, in the application scenario of smart cars, the existing technology has the following shortcomings:

[0360] Counterfeiting cannot be avoided by replacing ECU313;

[0361] The large number of nodes requires more resources for key / certificate management, which in turn leads to insufficient reliability.

[0362] The key points of this implementation are:

[0363] 1. Each sub-ECU313 unit in the domain control uses the Die ID (bare die identification) of its own processor CPU as a unique identity. In order to prevent the CPU Die ID from being counterfeited, the CPU processor is required to support the hardware security module (a hardware device that can be used to securely manage / store keys and provide cryptographic computing operations) HSM (Hardware SECU313rityModule). A pair of public and private key pairs for identity authentication are derived based on the hardware security module HSM. This public and private key pair is combined with the CPU DieID to identify the identity of each ECU313. The private key of this public and private key pair is stored in the local hardware security module HSM, and any external access is prohibited by the HSM hardware. It can only be accessed by the hardware encryption and decryption engine in the HSM module. The public key and CPU DieID are sent to the domain controller 312 for subsequent authentication of each sub-ECU313 in the domain by the domain controller 312. This type of ECU313 identity authentication identifier can not only avoid the heavy-duty ECU313 identity authentication based on certificate authentication and the trouble of certificate management (including issuance, revocation, replacement, etc.) for ECU313, but also avoid the counterfeit problem caused by the leakage of keys for identity authentication based on keys (PSK or public-private keys).

[0364] 2. Before the vehicle leaves the factory, after receiving the CPU Die ID and public key information of each sub-ECU313 in the domain, the domain controller 312 of each domain controller uses the hardware security module HSM of its local CPU to generate a pair of public-private key pairs for identity authentication. The private key is also stored in the local hardware security module. External access is prohibited from hardware, and it can only be accessed by the hardware encryption and decryption engine inside the HSM. The local CPU processor CPU Die ID, the public key of the public-private key pair generated locally, and the CPU Die ID and public key of other sub-ECU313 in the domain are used as certificate application information to apply for a device identity certificate from the PKI system. After the certificate application is completed, it is saved locally in the domain controller 312. This certificate can be used for authentication of communication protocols such as TLS or IPSec, and can also be used for identity authentication of the domain controller 312. Since the private key corresponding to the certificate is stored in the HSM inside each domain controller 312, even if an attacker steals the certificate, he cannot impersonate the identity of the domain controller 312. By combining the local private key of the domain controller 312 and the public keys of other control units in the domain with the CPU Die ID and the certificate, the certificate can be effectively prevented from being stolen, counterfeited and replaced, and the domain controller 312 can also be prevented from being illegally replaced. For each sub-ECU313 in the control domain, since the private key and public key used for identity authentication are stored separately, the private key is stored in the local HSM of ECU313, and the public key is stored in the certificate in the domain controller 312, if ECU313 is illegally replaced, it will cause inconsistency between the public and private keys, which will be discovered in subsequent authentication, so that it can effectively detect whether ECU313 has been replaced.

[0365] 3. Each time the vehicle is started, the cloud management platform 32, cockpit or automatic driving can first use the certificate of the domain controller 312 to verify the identity of the domain controller 312. It is necessary to verify the validity of the certificate signature and whether the information in the certificate is the CPU Die ID information of other sub-controllers in this domain. After the verification is legal, the domain controller 312 uses the CPU Die ID of each sub-ECU313 in the domain stored in the certificate and the corresponding public key information to authenticate the corresponding sub-ECU313 in the domain. If the authentication fails, an alarm or event will be generated, or the corresponding electronic control unit will be prohibited from working. Through this joint hierarchical identity authentication, any key sub-control unit in the domain control, including the domain controller 312, can be effectively prevented from being illegally replaced.

[0366] In this implementation, the CPU die ID of the CPU processor used in ECU313 is used as the identity of ECU313 for the identity of ECU313 (including domain controller 312) in each domain controller in the vehicle. The CPU die ID of each CPU is unique, so it can be used to distinguish different ECU313s, and unique distinction can be achieved. However, if it is only used as the identity of ECU313, there is still a possibility of counterfeiting ECU313 by stealing the CPU die ID. In order to prevent attackers from replacing and counterfeiting ECU313 in this way, this implementation requires that the CPU in each ECU313 has an HSM function, and a pair of public and private key pairs are derived in the HSM through the hardware encryption and decryption engine. The private key is stored in the HSM, and any application outside the HSM is prohibited from accessing it. It can only be accessed by the hardware encryption and decryption engine in the HSM for encryption and decryption operations, such as Figure 5 shown.

[0367] The public key can be accessed and read externally, and together with the CPU die ID, it constitutes the identity of ECU313. In order to prevent attackers from replacing the private key stored in the HSM together with the CPU die ID and public key by replacing ECU313, the CPU die ID and public key of each ECU313 need to be sent elsewhere for safekeeping. In this embodiment, the CPUdie ID and public key of each ECU313 are sent to the domain controller 312 of each control domain during the production and manufacturing process, and as part of the identity certificate of the domain controller 312, a legitimate CA server performs digital signature protection when issuing the certificate. After this processing, even if an attacker replaces a certain ECU313 and steals the CPU die ID for counterfeiting, he cannot completely steal the public-private key pair originally used for the identity of this ECU313, and thus cannot successfully replace the original ECU313. If a new pair of public-private key pairs is used to replace the original public-private key pair to re-identify the identity of this ECU313, since the new public key cannot be rewritten into the identity certificate of the domain controller 312, the original public key information of this ECU313 stored in the replacement certificate will fail.

[0368] After constructing the identity of each sub-ECU313 and domain controller 312 in the control domain using the above method, the identity authentication mechanism is subsequently adopted. First, a trusted third party, such as the cloud management platform 32, or other controllers in the car, such as cockpit, automatic driving and other components, initiates identity authentication for the domain controller 312 of each control domain at regular intervals when the car is started or the car is running. By verifying the legitimacy of the certificate, and whether the CPU die ID, public key in the certificate and the CPU die ID and private key in the domain controller 312 are consistent, it can be determined whether the domain controller 312 is legitimate. After the domain controller 312 identity is legitimate, the domain controller 312 initiates identity authentication for all sub-ECU313 in the domain at the start of the car or at regular intervals. By verifying whether the CPU die ID, public key information of each ECU313 stored in the domain controller 312 and the CPU die ID and private key information in the ECU313 are consistent, it can be determined whether the ECU313 is legitimate.

[0369] See also Figure 6 , the specific process of this implementation will be described in detail below.

[0370] 1. In the manufacturing process of automobiles, the sub-ECU313 in each control domain in the car generates a pair of public and private key pairs for identity identification in the HSM of the CPU. This public and private key pair can be generated directly in the HSM or by software outside the HSM. In the former case, the private key is directly stored in the HSM and can only be accessed inside the HSM; in the latter case, the private key generated by the software is directly encrypted and stored by the HSM through the hardware encryption and decryption engine, and subsequent access processing can only be decrypted and accessed by the hardware encryption and decryption engine of the HSM. The private key plaintext cannot be directly obtained outside the HSM.

[0371] 2. After the public-private key pair for identification is generated in ECU313, the public key of the public-private key pair and the CPU die ID of the local CPU are sent to the domain controller 312.

[0372] 3. After receiving the CPU die ID and public key information sent by each ECU313 in the domain, the domain controller 312 saves it locally. At the same time, the domain controller 312 also generates a pair of public and private key pairs in the HSM of the local CPU to identify its own identity. This public and private key pair is the same as the one generated by ECU313 in the first step. It can be generated directly in the HSM or by software outside the HSM. The processing method after the generation of both is the same as that of ECU313.

[0373] 4. The domain controller 312 constructs the information of the identity certificate application CSR with the CPU die ID of its local CPU, the public key generated in its local HSM to identify itself, the CPU die ID of each sub-ECU313, and the corresponding public key. The information of the certificate CSR can be constructed in many ways. The CPU die ID of the domain controller 312, the CPU die ID and public key information of each sub-ECU313 can be directly used as the extended information of the certificate, or the CPU die ID of the domain controller 312, the CPU die ID and public key information of each sub-ECU313 can be hashed first, and the hash value obtained by the operation is used as the extended information of the certificate.

[0374] 5. After the identity of the domain controller 312 is formally constructed, the certificate application request is sent to the trusted certificate CA server 33 outside the vehicle. After receiving the request, the certificate CA server 33 issues the certificate and returns it to the corresponding domain controller 312. The certificate CA server 33 issues the initial certificate to the vehicle side during the production and manufacturing process before the vehicle leaves the factory. Subsequent certificate updates need to use the previous certificate to authenticate the identity of the vehicle side components to ensure that the vehicle side components are credible.

[0375] 6. After receiving the identity certificate, the domain controller 312 stores it in local memory.

[0376] The above steps 1 to 6 are preliminary preparations performed before step 102 in the above embodiment. The above steps 1 to 6 can also be extended to complex systems involving multi-terminal communication and interaction in non-intelligent car application scenarios.

[0377] In particular, this limitation in the production and manufacturing link is exemplary, that is, the execution of steps 1 to 6 needs to be carried out in a preset reliable environment; at the same time, ECU313 and domain controller 312 can be understood as the authenticated end (authenticated node), the domain controller 312 can also be understood as the initiating authentication end (initiating authentication node), and the die ID can be understood as the authenticated end identifier (authenticated party identifier).

[0378] 7. Each time the vehicle is subsequently started, other trusted components inside the vehicle, such as the cockpit and the automatic driving module 311 (i.e., the initiating authentication end when the domain controller 312 is the authenticated end) can initiate identity authentication for the domain controller 312 of each control domain inside the vehicle. The above components can also periodically initiate identity authentication during the operation of the vehicle (i.e., the initiation timing condition can be timed initiation).

[0379] It is worth noting that the domain controller 312 has a corresponding relationship with the ECU313 within its control domain. This corresponding relationship can be extended to other three-level or even more-level authentication schemes, that is, the first-level node authenticates the second-level node, and the second-level node authenticates the third-level node to which it belongs, and so on.

[0380] 8. (Optional) The cloud management platform 32 in the cloud may also periodically initiate identity authentication for each control domain in the vehicle.

[0381] 9. After receiving the authentication request from the cockpit, automatic driving, etc., the domain controller 312 returns the locally stored identity certificate.

[0382] 10. After the cockpit or the autonomous driving receives the identity certificate sent by the domain controller 312, it first verifies the legitimacy of the certificate. After the verification passes, a nonce value is randomly generated locally and the nonce value is encrypted using the public key of the domain controller 312 in the certificate.

[0383] The nonce value is verification information (or ECU313 verification information shown in subsequent steps) as an example and not a limitation.

[0384] 11. The cockpit or the autonomous driving sends the encrypted nonce value ciphertext to the domain controller 312.

[0385] 12. After receiving the nonce value ciphertext sent by the cockpit or the automatic driving, the domain controller 312 calls the hardware encryption and decryption engine in the HSM and uses the corresponding private key stored in the HSM to decrypt.

[0386] 13. Send the decrypted nonce value ciphertext and the CPU die ID of the local CPU (sent in plain text) to the cockpit or automatic driving.

[0387] 14. After the cockpit or automatic driving receives the decrypted nonce value and the corresponding CPUdie ID sent by the domain controller 312, it first compares whether the nonce values ​​are consistent. If the nonce values ​​are consistent, it then compares whether the CPUdie ID sent by the domain controller 312 is consistent with the CPU die ID in the certificate (the order is optional). If they are consistent, it proves that the domain controller 312 is legal. If the nonce value or the CPU die ID CPU die ID is inconsistent, there is a problem with the identity of the domain controller 312, and an alarm is generated locally, and the cloud management server in the cloud is notified at the same time. After receiving the alarm indication of authentication failure, the cloud management platform 32 in the cloud records the local database and performs subsequent processing according to the previously predetermined strategy, such as sending information to remind the user.

[0388] 15. The cockpit or autopilot notifies the domain controller 312 that the authentication is successful.

[0389] The above steps 7 to 15 are the identity authentication process performed on the domain controller 312, which can correspond to steps 102 to 110 and steps 202 to 210 in the above embodiment.

[0390] 16. After receiving the authentication success message, the domain controller 312 uses the CPUdie ID and public key information of each sub-ECU 313 in the domain stored locally to initiate identity authentication of each sub-ECU 313.

[0391] 17. The domain controller 312 verifies whether the CPU die ID and public key information of each sub-ECU 313 stored locally are consistent with the information in the certificate. The verification here can be directly compared with the CPU die ID and public key information stored in the certificate extension information, or the hash value can be compared by hash calculation. The specific method to be used depends on which method was used when constructing the domain controller 312 certificate information before.

[0392] 18. If the CPU die ID and public key information of the sub-ECU313 stored locally by the domain controller 312 are consistent with the information in the certificate, the identity authentication of the sub-ECU313 is initiated, a nonce value is randomly generated locally, the nonce value is encrypted using the public key of the corresponding sub-ECU313, and the encrypted nonce value ciphertext is used to initiate an authentication challenge. If they are inconsistent, a log is recorded and an alarm is reported to the cockpit or automatic driving. The cockpit or automatic driving generates an alarm locally to remind the user and reports it to the cloud management server in the cloud. At the same time, the public key information of the corresponding sub-ECU313 stored in the certificate can also be used to encrypt the nonce value to initiate a challenge.

[0393] 19. The domain controller 312 sends the encrypted nonce value ciphertext to the corresponding sub-ECU 313.

[0394] 20. After receiving the ciphertext of the nonce value, the sub-ECU 313 calls the hardware encryption and decryption engine in the HSM and uses the private key stored in the HSM to decrypt and obtain the plaintext of the nonce value.

[0395] 21. The sub-ECU 313 sends the decrypted plain text of the nonce value and the local CPU die ID to the domain controller 312.

[0396] 22. After receiving the nonce value plain text and CPU die ID sent by ECU313, the domain controller 312 verifies whether the nonce value and CPU die ID are consistent.

[0397] 23. If they are inconsistent, an alarm is reported; if they are consistent, the authentication is reported successfully.

[0398] 24. After the cockpit or the autonomous driving receives the authentication result of the sub-ECU 313 reported by the domain controller 312, if the authentication fails, an alarm is generated locally to remind the user, and at the same time, it is reported to the cloud management platform 32 in the cloud.

[0399] 25. After receiving the alarm indication of authentication failure, the cloud management platform 32 in the cloud records the local database and performs subsequent processing according to the previously predetermined strategy, such as sending a message to remind the user.

[0400] The above steps 16 to 25 are the identity authentication process executed for ECU 313 , and can also correspond to steps 102 to 110 and steps 202 to 210 in the above embodiment.

[0401] The above steps 1 to 25 can be regarded as a whole, which can correspond to any of the above embodiments in which the domain controller 312 is used as the authenticated end and the ECU 313 is used as the third device.

[0402] The beneficial effects of this embodiment are:

[0403] The ECU313 identity authentication identification part can avoid the heavy authentication of ECU313 based on certificate and the trouble of certificate management of ECU313 (including issuance, revocation, replacement, etc.), and also avoid the counterfeiting problem caused by the leakage of the key for identity authentication based on the key (PSK or public-private key).

[0404] The construction method of the domain controller 312 identity certificate can effectively prevent the certificate from being stolen, counterfeited and replaced, and can also prevent the domain controller 312 from being illegally replaced. For each sub-ECU313 in the control domain, since the private key and public key used for identity authentication are stored separately, the private key is stored in the local HSM of ECU313, and the public key is stored in the certificate in the domain controller 312. If ECU313 is illegally replaced, it will cause inconsistency between the public and private keys, which will be discovered in subsequent authentication, so that it can effectively detect whether ECU313 has been replaced.

[0405] The joint hierarchical authentication method can effectively prevent any key sub-control unit in the domain control, including the domain controller 312, from being illegally replaced, thereby launching an attack on the car, controlling the car, or stealing user privacy information.

[0406] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0407] The present application also provides a terminal device, such as Figure 7 As shown, the terminal device 70 includes: at least one processor 701, a memory 702, and a computer program 703 stored in the memory and executable on at least one processor, and when the processor executes the computer program 703, the steps in any of the above-mentioned method embodiments are implemented.

[0408] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0409] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0410] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0411] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0412] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0413] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0414] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0415] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. An identity authentication method, characterized in that: include: Initiate an identity authentication request to the authenticated end and obtain a certificate; wherein the authenticated end is any node in a multi-terminal communication and interaction system that needs to be authenticated, and the initiating authentication end is any node in the multi-terminal communication and interaction system that can authenticate the authenticated end; Obtain the public key of the authenticated end from the multiple public keys of the certificate; or, determine that the locally stored public key of the authenticated end is authentic and complete through the multiple public key hash values ​​of the certificate; wherein the public keys of multiple authenticated ends can be obtained from the same certificate; Generate encrypted information using the public key of the authenticated end, and send the encrypted information to the authenticated end; The decryption information of the encrypted information is received from the authenticated end, where the decryption information of the encrypted information is used to authenticate the identity of the authenticated end.

2. The identity authentication method according to claim 1, characterized in that: After the step of sending the encrypted information to the authenticated end, the method further includes: Receive the identifier of the authenticated end from the authenticated end, and determine whether the identifier of the authenticated end received by the initiating authentication end is legal based on multiple identifiers of the authenticated end stored in the certificate or a hash value of multiple identifiers of the authenticated end stored in the certificate; the identifier of the authenticated end is an identification mark that corresponds one-to-one to at least a part of the hardware of the authenticated end.

3. The identity authentication method according to claim 1 or 2, characterized in that: When the authenticated end is a domain controller, the step of obtaining a certificate includes: The certificate is obtained from the domain controller; the certificate is the identity certificate of the domain controller.

4. The identity authentication method as claimed in claim 3, characterized in that: The step of obtaining the public key of the authenticated end from the multiple public keys of the certificate comprises: Determining that the certificate is legitimate, obtaining the public key of the domain controller from the certificate, or obtaining the public key of the domain controller and the identifier of the domain controller from the certificate; The step of determining that the locally stored public key of the authenticated end is authentic and complete through the multiple public key hash values ​​of the certificate comprises: If it is determined that the certificate is legal, the hash value of the public key of the domain controller is obtained from the certificate, or the hash value of the public key of the domain controller and the hash value of the identifier of the domain controller are obtained; If it is determined that the Hash value of the public key of the domain controller is consistent with the Hash value obtained after the locally stored public key of the authenticated terminal is hashed, it is determined that the public key of the authenticated terminal stored locally by the initiating authentication terminal is authentic and complete.

5. The identity authentication method as claimed in claim 3, characterized in that: The domain controller key pair consisting of the private key of the domain controller and the public key of the domain controller is generated by the hardware security module of the domain controller and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of the domain controller through the hardware encryption and decryption engine in the hardware security module of the domain controller; The private key of the domain controller is configured to be accessible only within the hardware security module of the domain controller, or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of the domain controller.

6. The identity authentication method according to claim 1 or 2, characterized in that: When the authentication initiator is a domain controller, the steps of obtaining the certificate include: The domain controller obtains the certificate locally; the certificate is the identity certificate of the domain controller.

7. The identity authentication method according to claim 6, characterized in that: The authenticated end is any ECU in the control domain of the domain controller; the certificate includes: Public keys of the plurality of ECUs or Hash values ​​of the public keys of the plurality of ECUs; and, The identifiers of the multiple ECUs or the Hash values ​​of the identifiers of the multiple ECUs.

8. The identity authentication method according to claim 1 or 2, characterized in that: After the step of obtaining the public key of the authenticated end from the multiple public keys of the certificate, the method further comprises: It is determined that the locally stored public key of the authenticated end is consistent with the public key of the authenticated end in the certificate.

9. An identity authentication method, characterized in that: include: Receive an identity authentication request and send a certificate to an authentication initiator; wherein the authenticated end is any node in a multi-terminal communication and interaction system that needs to be authenticated, and the authentication initiator is any node in the multi-terminal communication and interaction system that can authenticate the authenticated end; The certificates include: multiple public keys, and the multiple public keys include the public key of the authenticated end; or, Hash values ​​of multiple public keys, where the Hash values ​​of the multiple public keys include the Hash value of the public key of the authenticated end; Receiving encrypted information encrypted by the public key of the authenticated end; Decrypting the encrypted information using the private key of the authenticated end, generating decrypted information and sending it to the authentication initiating end; the decrypted information is used to authenticate the identity of the authenticated end; Among them, the public keys of multiple authenticated ends can be obtained from the same certificate;.

10. The identity authentication method according to claim 9, characterized in that: After the step of receiving the identity authentication request, the method further includes: The identifier of the authenticated end is sent to the authentication initiating end; the identifier of the authenticated end is an identification mark that corresponds one-to-one with at least a part of the hardware of the authenticated end, and the identifier of the authenticated end is used to authenticate the identity of the authenticated end.

11. The identity authentication method according to claim 9 or 10, characterized in that: The authenticated end is a domain controller; the certificate is an identity certificate of the domain controller.

12. The identity authentication method according to claim 11, characterized in that: The domain controller key pair consisting of the private key of the domain controller and the public key of the domain controller is generated by the hardware security module of the domain controller and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of the domain controller through the hardware encryption and decryption engine in the hardware security module of the domain controller; The private key of the domain controller is configured to be accessible only within the hardware security module of the domain controller, or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of the domain controller.

13. The identity authentication method according to claim 11, characterized in that: After the step of generating the decryption information and sending it to the authentication initiator, the method further includes: Receive an identity authentication success message from the authentication initiator; Obtain the certificate locally; Obtaining the public key of the ECU from the certificate, or determining that the public key of the ECU stored locally is authentic and complete through multiple public key hash values ​​of the certificate; the ECU is any one of the multiple ECUs in the control domain of the domain controller; Encrypting ECU verification information according to the public key of the ECU to generate an ECU verification ciphertext; the ECU verification information is verification information used to authenticate the identity of the ECU; Sending the ECU verification ciphertext to the ECU; Decryption information of the ECU verification ciphertext is received from the ECU; the decryption information of the ECU verification ciphertext is used to authenticate the identity of the ECU.

14. The identity authentication method according to claim 13, characterized in that: After the step of sending the ECU verification ciphertext to the ECU, the method further includes: Receive the identification of the ECU from the ECU, and determine whether the identification of the ECU received by the domain controller is legal based on the identifications of multiple ECUs stored in the certificate or the hash values ​​of the identifications of multiple ECUs stored in the certificate; the identification of the ECU is an identification mark that corresponds one-to-one to at least a part of the hardware of the ECU.

15. The identity authentication method according to claim 13 or 14, characterized in that: The certificates include: The public key of the domain controller or the hash value of the public key of the domain controller; and, The identifier of the domain controller or a hash value of the identifier of the domain controller; and, Public keys of the plurality of ECUs or Hash values ​​of the public keys of the plurality of ECUs; and, The identifiers of the multiple ECUs or the Hash values ​​of the identifiers of the multiple ECUs.

16. The identity authentication method according to claim 13, characterized in that: After the step of obtaining the public key of the ECU from the certificate, the method further includes: Determine that the public key of the ECU locally stored in the domain controller is consistent with the public key of the ECU in the certificate.

17. The identity authentication method according to claim 13, characterized in that: The ECU key pair consisting of the private key of the ECU and the public key of the ECU is generated by the hardware security module of the ECU and stored in the hardware security module, or is generated by preset software and stored in the hardware security module of the ECU through the hardware encryption and decryption engine in the hardware security module of the ECU; The private key of the ECU is configured to be accessible only within the hardware security module of the ECU, or configured to be accessible only through decryption by a hardware encryption / decryption engine in the hardware security module of the ECU.

18. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 or the method according to any one of claims 9 to 17 is implemented.

19. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 or the method according to any one of claims 9 to 17 is implemented.

Citation Information

Patent Citations

  • Vehicle identity authentication method, system and device based on SM9 algorithm and storage medium

    CN113852632A

  • Authentication method and device of subscriber identity module card and nonvolatile storage medium

    CN114520976A