SoC debugging method, SoC, server and debugging system
By using challenge vectors and debugging certificates combined with life cycle status to filter debugging permissions during the SoC debugging process, the problem of asset leakage and maintenance burden caused by relying on hash value verification in the existing technology is solved, and security and permission control on the SoC are realized. Delicate management.
Patent Information
- Application Number
- CN202410920963.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing SoC debugging process, relying on the hash value verification of debugging passwords makes all assets vulnerable to leakage, and maintaining a large number of debugging passwords brings maintenance burdens, making it difficult to effectively protect the assets on the SoC.
By generating challenge vectors and debugging certificates for data verification, filtering debugging permissions based on the current life cycle status of the SoC, and using the debugging certificate as an unlock token for the SoC debugging path, the need for debugging password maintenance for each SoC chip is reduced, and Debug permission control is refined based on permission application information.
It effectively reduces the security risks caused by data leakage, reduces the maintenance burden, and achieves refined control over the debugging permissions of different subsystems within the SoC, protecting the assets on the SoC.
Smart Images

Figure CN118733469A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip technology, and in particular to a SoC debugging method, SoC, server and debugging system. Background Art
[0002] The current SoC (System on Chip) debugging process generally involves the debugging software on the external debugger first obtaining the debugging password from the remote debugging server, sending the debugging password to the target SoC to be debugged, and the target SoC calculating the hash value of the debugging password. If the calculated hash value is consistent with the pre-stored hash value of the debugging password, the debugging interface of the target SoC is opened, and the debugging software on the external debugger can access the on-chip resources through the debugging interface. Otherwise, the debugging interface remains closed. Since all assets on the SoC can be controlled by simply verifying the hash value, it is easy to cause risks. Summary of the invention
[0003] Based on this, it is necessary to provide a SoC debugging method, SoC, server, debugging system, computer equipment, computer-readable storage medium and computer program product that can reduce asset risks during debugging in response to the above technical problems.
[0004] In a first aspect, the present application provides a SoC debugging method, comprising:
[0005] In response to the acquired debugging initiation request, generating a challenge vector for data verification;
[0006] Trigger sending a debugging authentication request to the server, which includes a challenge vector and debugging permission application information;
[0007] Get the debugging certificate returned by the server. The debugging certificate includes debugging data, which includes the challenge vector and debugging permission application information.
[0008] Data verification based on commissioning certificates;
[0009] If the verification is passed, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debugging permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal. The authorization signal is used to represent the debugging permissions that match the current life cycle state.
[0010] In one of the embodiments, the debugging permission application information includes an application identifier corresponding to at least one subsystem in the SoC, and the application identifier is used to indicate whether to apply for access to the address space of the corresponding subsystem; based on the current life cycle state of the SoC, the permission to be applied represented by the debugging permission application information is screened to obtain an authorization signal, including:
[0011] Obtaining debugging permission support information that matches the current life cycle state of the SoC, the debugging permission support information including a support identifier corresponding to at least one subsystem in the SoC, the support identifier being used to indicate whether the address space of the corresponding subsystem supports access in the current life cycle state;
[0012] Based on the same identifier between the debugging permission application information and the debugging permission support information, an authorization signal is obtained.
[0013] In one of the embodiments, the address space of the subsystem includes at least one of a secure address space or a non-secure address space.
[0014] In one embodiment, generating a challenge vector for data verification includes:
[0015] Obtain the SoC ID of the SoC and generate a random number. The SoC ID is used to instruct the server to verify the identity of the SoC.
[0016] The SoC identifier is integrated with the random number to obtain a challenge vector for data verification.
[0017] In one embodiment, the debugging certificate further includes a debugging public key; and performing data verification based on the debugging certificate includes:
[0018] Get the signature returned by the server. The signature is obtained by encrypting the hash value of the debug certificate using the debug public key.
[0019] When the hash value calculated corresponding to the debugging public key is the same as the pre-stored hash value, decrypting the signature based on the debugging public key;
[0020] When the decryption result is the same as the hash value calculated corresponding to the debug certificate, and the generated challenge vector is the same as the challenge vector in the debug certificate, the data verification passes.
[0021] In a second aspect, the present application provides a SoC debugging method, comprising:
[0022] generating a debugging certificate in response to a received debugging authentication request, wherein the debugging authentication request includes debugging permission application information and a challenge vector for data verification;
[0023] Trigger sending a debug certificate to the SoC. The debug certificate includes debug data. The debug data includes a challenge vector and debug permission application information.
[0024] The debug certificate is used to instruct the SoC to perform data verification. If the verification passes, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debug permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal. The authorization signal is used to represent the debug permission that matches the current life cycle state.
[0025] In one embodiment, generating a debug certificate includes:
[0026] Generate a debugging certificate based on the debugging permission application information, challenge vector and debugging public key.
[0027] In a third aspect, the present application further provides a SoC, including:
[0028] The security subsystem is used to generate a challenge vector for data verification in response to the obtained debug initiation request, where the debug initiation request is initiated by the debug software module;
[0029] The debugging software module is used to trigger the sending of a debugging authentication request to the server, where the debugging authentication request includes a challenge vector and debugging permission application information;
[0030] The debugging software module is also used to obtain the debugging certificate returned by the server. The debugging certificate includes debugging data, and the debugging data includes a challenge vector and debugging permission application information;
[0031] The security subsystem is also used to perform data verification based on the debugging certificate obtained by the debugging software module. If the verification is passed, the permissions to be applied represented by the debugging permission application information are screened based on the current life cycle state of the SoC to obtain an authorization signal, which is used to represent the debugging permission that matches the current life cycle state;
[0032] The debugging software module is also used for debugging based on the authorization signal.
[0033] In a fourth aspect, the present application further provides a server, including:
[0034] A generating module, configured to generate a debugging certificate in response to a received debugging authentication request, wherein the debugging authentication request includes debugging permission application information and a challenge vector for data verification;
[0035] A trigger execution module is used to trigger sending a debug certificate to the SoC, where the debug certificate includes debug data, and the debug data includes a challenge vector and debug permission application information;
[0036] The debug certificate is used to instruct the SoC to perform data verification. If the verification passes, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debug permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal. The authorization signal is used to represent the debug permission that matches the current life cycle state.
[0037] In a fifth aspect, the present application also provides a debugging system, including the SoC provided by various possible implementations of the third aspect and the server provided by various possible implementations of the fourth aspect.
[0038] The above-mentioned SoC debugging method, SoC, server and debugging system use the debugging certificate as the unlocking token of the SoC debugging path. The debugging certificate is generated based on the debugging authentication request initiated by the debugging software. The server no longer needs to maintain the debugging password corresponding to each SoC chip, thereby reducing the maintenance burden caused by the need to maintain a large number of debugging passwords.
[0039] In addition, since debugging permissions need to be applied for based on debugging permission application information, instead of obtaining all debugging permissions on the SoC as long as the hash value of the debugging password is verified as before, it is possible to protect the assets on the SoC and reduce the security risks caused by data leakage. Furthermore, not only debugging permissions need to be applied for, but debugging permissions can also be screened based on the debugging permissions supported by the current life cycle state of the SoC, thereby further refining the control of debugging permissions for different subsystems within the SoC, achieving non-essential access, and thus protecting the assets on the SoC to a greater extent and reducing the security risks caused by data leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.
[0041] Figure 1 A schematic diagram of a flow chart of a SoC debugging method in one embodiment;
[0042] Figure 2 A schematic diagram of a flow chart of a SoC debugging method in another embodiment;
[0043] Figure 3 is a structural block diagram of a SoC in one embodiment;
[0044] Figure 4A structural block diagram of a server in one embodiment;
[0045] Figure 5 It is a structural block diagram of a debugging system under external debugging in an embodiment;
[0046] Figure 6 A structural block diagram of a debugging system under internal debugging in an embodiment;
[0047] Figure 7 A schematic diagram of the flow of interaction between a server, an external debugging host and a SoC in one embodiment;
[0048] Figure 8 A schematic diagram of the flow of interaction between a server and a SoC in one embodiment;
[0049] Fig. 9 FIG. 4 is a structural block diagram of a security subsystem in one embodiment. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] The current SoC (System on Chip) debugging process generally maintains a set of debugging passwords on a remote debugging server. Each SoC chip uniquely corresponds to a debugging password, and the hash value of the debugging password is stored in each SoC. When the debugging user wants to debug the target SoC, he first uses the debugging software to obtain the SOC identifier soc_id of the target SoC from the target SoC, and then queries the debugging password corresponding to the soc_id from the remote debugging server. After the debugging user obtains the debugging password, he sends the debugging password to the SoC through the external debugging interface. The SoC calculates the hash value of the received debugging password. If it is equal to the hash value of the debugging password stored in the SoC, the debugging interface of the SoC is opened, and the debugging software on the external debugger can access the on-chip resources through the debugging interface. Otherwise, the debugging interface remains closed.
[0052] Since the debugging password corresponding to each SoC chip needs to be maintained by a secure debugging server, it is easy to cause a large amount of data and difficult to maintain. In addition, since all assets on the SoC can be accessed through the debugging interface provided on the SoC as long as the hash value verification process is passed, it is easy to cause data leakage on the SoC.
[0053] In view of the problems existing in the above-mentioned related technologies, in an exemplary embodiment, Figure 1As shown, a SoC debugging method is provided, and the method is applied to SoC as an example for description, including the following steps 102 to 110. Among them:
[0054] 102. In response to the acquired debugging initiation request, generate a challenge vector for data verification.
[0055] Specifically, debugging can be divided into external debugging and internal debugging. External debugging refers to the debugging initiation object being located outside the SoC, while internal debugging refers to the debugging initiation object being located inside the SoC. Therefore, in the case of external debugging, the debugging initiation request can be initiated by an external debugging host; in the case of internal debugging, the debugging initiation request can be initiated by the AP (Application Processor) subsystem in the SoC.
[0056] Whether it is external debugging or internal debugging, the debug initiation request can be sent to the mailbox of the SoC. The mailbox of the SoC is mainly used to provide information cache and interrupt event notification. Specifically, the debugging software on the external debugging host or the debugging software on the AP subsystem can send the debug initiation request to the mailbox of the SoC. After receiving the debug initiation request, the mailbox can notify the security subsystem in the SoC through the interrupt event, and the security subsystem responds to the debug initiation request.
[0057] The security subsystem can generate a challenge vector challenge_vector for data verification and store the challenge vector. The challenge vector can include a temporarily generated string, which is included in the debug authentication request and sent to the server together. When the server returns the debug certificate, it can also include a challenge vector. After receiving the challenge vector in the debug certificate, the security subsystem can compare it with the challenge vector it generated previously. If they are consistent, it means that the debug certificate may not have been tampered with during data transmission; otherwise, it means that the debug certificate may have been tampered with, which can play a role in data verification.
[0058] 104. Trigger sending a debugging authentication request to the server, where the debugging authentication request includes a challenge vector and debugging permission application information.
[0059] There are usually multiple subsystems in a SoC, and the AP subsystem mentioned above is just one of them. In actual implementation, the debugging software usually accesses the address space in the subsystem through the corresponding debugging sub-interface of the subsystem. In related technologies, as long as the hash value of the debugging password is verified, the address space in the subsystem can be accessed through the corresponding debugging sub-interface of each subsystem.
[0060] In the present application, the debugging permission application information included in the debugging authentication request can indicate which address spaces of which subsystems need to be accessed. Among them, the address space in the subsystem can include a secure address space and a non-secure address space. In the case where the number of subsystems and the types of address spaces in the subsystems can be exhausted, a corresponding identifier can be set for each type of address space of each subsystem. The debugging permission application information only needs to carry the subsystem for which debugging permission needs to be applied and the corresponding identifier of the address space in the subsystem, which can indicate which address spaces of which subsystems need to be accessed. Based on the above principles, the format of the debugging permission application information can be set according to needs in actual implementation, and the embodiment of the present application does not make specific limitations on this.
[0061] As can be seen from the previous content, the challenge vector can be used for subsequent data verification. Thus, the challenge vector used for data verification and the debugging permission application information used to indicate which subsystems and address spaces are accessed can be used to construct a debugging authentication request. In actual implementation, the debugging authentication request may also include other content, such as relevant information for identity authentication, to verify whether the debugging software has debugging permission, which is not specifically limited in the present embodiment of the application.
[0062] The debugging authentication request can be sent to the server by the debugging software. As can be seen from the previous content, debugging can be divided into external debugging and internal debugging. In the case of external debugging, after the security subsystem generates the challenge vector, it can send the challenge vector to the mailbox, and the debugging software on the external debugging host can obtain the challenge vector from the mailbox. After obtaining the challenge vector, the debugging software on the external debugging host can generate a debugging authentication request based on the challenge vector and send it to the server. In the case of internal debugging, after the security subsystem generates the challenge vector, it can also send the challenge vector to the mailbox. Unlike external debugging, internal debugging is that the debugging software on the AP subsystem obtains the challenge vector from the mailbox, generates a debugging authentication request based on the challenge vector, and sends it to the server.
[0063] 106. Obtain the debugging certificate returned by the server. The debugging certificate includes debugging data. The debugging data includes a challenge vector and debugging permission application information.
[0064] In the case of external debugging, the debugging certificate can be sent by the server to the external debugging host first, and then sent to the security subsystem by the debugging software on the external debugging host through the mailbox on the SoC. In the case of internal debugging, the debugging certificate can be sent directly from the server to the SoC, so that the security subsystem can obtain the debugging certificate and verify it in the subsequent steps.
[0065] 108. Perform data verification based on the debug certificate.
[0066] Specifically, data verification mainly adopts a method that matches server encryption, and is verified in combination with the challenge vector mentioned above. In actual implementation, verification can be performed based on a conventional signature verification method, which is not specifically limited in the embodiments of the present application. In addition, the data verification process can be implemented by the security subsystem in the SoC.
[0067] 110. When the verification is passed, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debugging permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal. The authorization signal is used to represent the debugging permission that matches the current life cycle state.
[0068] Specifically, the life cycle state refers to the various stages that a SoC chip goes through from chip manufacturing to chip scrapping. For example, the life cycle state can be divided into at least chip manufacturing, equipment manufacturing, equipment deployment, return of faulty chips to chip manufacturers, and equipment scrapping. Among them, the chip manufacturer, equipment manufacturer or equipment user to which each life cycle state belongs will deploy their respective assets to the SoC chip. It can be understood that since the assets of the SoC chip are different in different life cycle states, the debugging permissions supported by different life cycle states are naturally different.
[0069] Therefore, in this step, the security subsystem can screen the permissions to be applied for represented by the debugging permission application information based on the current life cycle state, so as to determine which of the debugging permissions applied for by the debugging software can be currently supported. As can be seen from the previous content, the debugging permission application information can carry the corresponding identification of the subsystem for which debugging permission is required and the address space in the subsystem, so as to indicate which address spaces of which subsystems need to be accessed. The authorization signal in this step can also represent the debugging permission that matches the current life cycle state based on the identification method. The specific format of the authorization signal can be related to the format of the debugging permission application information, and the embodiment of the present application does not specifically limit this.
[0070] It should be noted that the debugging permissions supported by the SoC chip in different life cycle states can be written into the firmware of the security subsystem in advance. And through the firmware upgrade, the content in the firmware can be modified, so as to flexibly adjust the debugging permissions supported by the SoC.
[0071] The above-mentioned SoC debugging method uses the debugging certificate as the unlocking token of the SoC debugging path. The debugging certificate is generated based on the debugging authentication request initiated by the debugging software. There is no need for the server to maintain the debugging password corresponding to each SoC chip, thereby reducing the maintenance burden caused by the need to maintain a large number of debugging passwords.
[0072] In addition, since the debug privilege needs to be applied based on the debug privilege application information, rather than as before, as long as the hash value of the debug password passes the verification, all debug privileges on the SoC can be obtained, thus protecting the assets on the SoC and reducing the security risks brought by data leakage. Further, not only does the debug privilege need to be applied, but the debug privilege can also be filtered based on the debug privileges supported corresponding to the current life cycle state of the SoC, thereby further refining the control of the debug privileges of different subsystems within the SoC, achieving non-essential non-access, and thus also being able to protect the assets on the SoC to a large extent and reduce the security risks brought by data leakage.
[0073] In an exemplary embodiment, the debug privilege application information includes an application identifier corresponding to at least one subsystem in the SoC, and the application identifier is used to represent whether to apply for access to the address space of the corresponding subsystem; based on the current life cycle state of the SoC, filtering the pending application privileges represented by the debug privilege application information to obtain an authorization signal, including:
[0074] Obtaining debug privilege support information that matches the current life cycle state of the SoC, where the debug privilege support information includes a support identifier corresponding to at least one subsystem in the SoC, and the support identifier is used to represent whether the address space of the corresponding subsystem is supported for access in the current life cycle state; obtaining an authorization signal based on the same identifier between the debug privilege application information and the debug privilege support information.
[0075] Specifically, taking the address space of the subsystem including a secure address space and a non-secure address space (i.e., two types of address spaces), the SoC including a total of n subsystems (where m subsystems have dedicated debug sub-interfaces, m < n), and each application identifier taking a value of 1 or 0 (0 represents not applying for the debug privilege, 1 represents applying for the debug privilege) as an example, the debug privilege application information can be represented as an identification string composed of two-bit binary identifiers corresponding to each subsystem, such as [00, 01, 10, 11, 10,..., 10].
[0076] Among them, every two-bit binary identifier is a pair of identifiers, and there can be a total of n pairs of identifiers in the example. Taking the subsystems corresponding to each pair of identifiers from left to right as subsystem 0, subsystem 1,..., subsystem n - 1 as an example, if the left binary identifier in a pair of identifiers corresponds to the non-secure address space and the right binary identifier corresponds to the secure address space, then the first pair of identifiers in the above identification string can represent that there is no need to apply for access to the non-secure address space of subsystem 0, nor to apply for access to the secure address space of subsystem 0.
[0077] The second pair of identifiers may indicate that it is not necessary to apply for access to the non-secure address space of subsystem 1, but it is necessary to apply for access to the secure address space of subsystem 1. The third pair of identifiers may indicate that it is necessary to apply for access to the non-secure address space of subsystem 2, but it is not necessary to apply for access to the secure address space of subsystem 2. The fourth pair of identifiers may indicate that it is necessary to apply for access to both the non-secure address space of subsystem 3 and the secure address space of subsystem 3, and so on.
[0078] It can be seen that the debugging permission application information can be represented by an identification string composed of binary application identifications. Similarly, the debugging permission support information can also be identified by an identification string composed of binary support representations, such as [01, 10, 11, 00, 10, ..., 10].
[0079] Among them, the first pair of identifiers may indicate that access to the non-secure address space of subsystem 0 is not supported in the current life cycle state, but access to the secure address space of subsystem 0 is supported. The second pair of identifiers may indicate that access to the non-secure address space of subsystem 1 is supported in the current life cycle state, but access to the secure address space of subsystem 1 is not supported. The third pair of identifiers may indicate that access to the non-secure address space of subsystem 2 is supported in the current life cycle state, and access to the secure address space of subsystem 2 is also supported. The fourth pair of identifiers may indicate that access to the non-secure address space of subsystem 3 is not supported in the current life cycle state, and access to the secure address space of subsystem 3 is not supported.
[0080] It can be seen that between the identification string corresponding to the debug permission application information and the identification string corresponding to the debug permission support information, the binary identifier at the same position corresponds to the same subsystem and the same address space type. Therefore, if the binary identifiers at the same position of the two are the same, it means that the address space SoC corresponding to the position for which access is requested is supported. Furthermore, it can be seen from the numerical value that only when the binary identifiers at the same position have the same value of 1, can it be said that the address space SoC corresponding to the position for which access is requested is supported.
[0081] Therefore, the identification string corresponding to the debugging permission application information and the identification string corresponding to the debugging permission support information can be bitwise ANDed to obtain the total authorization signal corresponding to all subsystems. Specifically, the identification string corresponding to the debugging permission application information can be recorded as sec_dbg_req_list, the identification string corresponding to the debugging permission support information can be recorded as sec_dbg_req_mask, and the total authorization signal can be recorded as sec_dbg_auth. The above process can be expressed as:
[0082] sec_dbg_auth=sec_dbg_req_list&sec_dbg_req_mask;
[0083] In combination with the specific example of the above identification string, the identification string corresponding to the debugging permission application information [00, 01, 10, 11, 10, ..., 10] is ANDed with the identification string corresponding to the debugging permission support information [01, 10, 11, 00, 10, ..., 10]. Among them, the first pair of identifications
[00] and
[01] at the same position are ANDed to obtain
[00] , which means that although the access to the secure address space of subsystem 0 is supported in the current life cycle state, it is not necessary to apply for access to the non-secure address space of subsystem 0, nor is it necessary to apply for access to the secure address space of subsystem 0, so the result of the AND operation is
[00] , which is the authorization signal for subsystem 0, which can be recorded as Auth_en[0]=
[00] , indicating no debugging permission.
[0084] The second pair of identifiers
[01] and
[10] at the same position are ANDed to obtain
[00] . Among them, although the current life cycle state supports access to the non-secure address space of subsystem 1, there is no need to apply for access to the non-secure address space of subsystem 1, so the result of the bitwise AND operation is 0. In addition, even if it is necessary to apply for access to the secure address space of subsystem 1, the current life cycle state does not support access to the secure address space of subsystem 1, so the result of the bitwise AND operation is also 0. Therefore, the authorization signal for subsystem 1 is
[00] , which can be recorded as Auth_en[1]=
[00] , which means no debugging permission.
[0085] The same goes for the following. In addition to
[00] , the value of the authorization signal Auth_en[i] (i=0, 1, 2, ..., n-1) can also be
[01] ,
[10] , and
[11] . Among them, Auth_en[i]=
[01] means that only the secure address space of this subsystem is allowed to be accessed. Auth_en[i]=
[10] means that only the non-secure address space of this subsystem is allowed to be accessed. Auth_en[i]=
[11] means that access to both the secure address space and the non-secure address space of this subsystem is allowed. The total set of authorization signals Auth_en[0], Auth_en[1], ..., Auth_en[n-1] is the total authorization signal sec_dbg_auth.
[0086] After obtaining the corresponding authorization signal of each subsystem, the authorization signal may be sent to the corresponding debugging sub-interface of the subsystem, and the debugging sub-interface controls the debugging software to access the address space of the subsystem during the debugging process.
[0087] In this embodiment, since the debugging permission needs to be applied for based on the debugging permission application information, instead of obtaining all debugging permissions on the SoC as before as long as the hash value of the debugging password is verified, the assets on the SoC can be protected and the security risks caused by data leakage can be reduced. Furthermore, not only the debugging permission needs to be applied for, but also the application permissions can be screened based on the debugging permissions supported by the current life cycle state of the SoC, and the authorization signal can be obtained to control the debugging sub-interface, thereby further refining the control of the debugging permissions of different subsystems in the SoC, achieving non-essential access, and thus protecting the assets on the SoC to a greater extent and reducing the security risks caused by data leakage.
[0088] In an exemplary embodiment, the address space of the subsystem includes at least one of a secure address space or a non-secure address space.
[0089] In this embodiment, since there can be multiple types of address spaces used for debugging permission management and control, the management and control scope is wider and the applicable scenarios are wider.
[0090] In an exemplary embodiment, generating a challenge vector for data verification includes:
[0091] The SoC identifier of the SoC is obtained, and a random number is generated. The SoC identifier is used to instruct the server to verify the identity of the SoC; the SoC identifier and the random number are integrated to obtain a challenge vector for data verification.
[0092] Specifically, after the security subsystem reads the debug initiation request from the mailbox, it can obtain the SoC identifier soc_id. The security subsystem may also include a TRNG (True Random Number Generator) to generate random numbers as a temporarily generated string. The integration method may be direct splicing, such as generating a challenge vector {soc_id, random number}, which is not specifically limited in the embodiments of the present application. Among them, the random number can be 128 bits, which is not specifically limited in the embodiments of the present application.
[0093] As can be seen from the previous content, the generated challenge vector can be sent to the server by including it in the debug authentication request, and the server can also include the challenge vector when returning the debug certificate. After receiving the challenge vector in the debug certificate, the security subsystem can compare it with the challenge vector it generated previously. If they are consistent, it means that the data transmission may not have been tampered with; otherwise, it means that it may have been tampered with. In addition, by sending a challenge vector including the SoC identifier to the server, the server can verify the identity of the SoC to ensure that the registered SoC is debugged.
[0094] In this embodiment, by generating a challenge vector, it can be used in the subsequent data verification process to verify whether the data has been tampered with, thereby improving transmission reliability. In addition, by sending a challenge vector including the SoC identifier to the server, the server can verify the identity of the SoC, thereby improving the security of the debugging process.
[0095] In an exemplary embodiment, the debug initiation request is obtained from the mailbox of the SoC; in the case of external debugging, the debug initiation request is sent to the mailbox by the external debug host; in the case of internal debugging, the debug initiation request is sent to the mailbox by the application processor subsystem in the SoC; triggering the sending of a debug authentication request to the server includes:
[0096] In the case of external debugging, the challenge vector is transmitted to the mailbox. In response to the polling request of the external debugging host to the mailbox, the challenge vector is returned to the external debugging host. The challenge vector is used to instruct the external debugging host to generate a debugging authentication request and send it to the server; in the case of internal debugging, a debugging authentication request is generated and sent to the server.
[0097] Specifically, in the case of external debugging, after obtaining the debug initiation request, the security subsystem can generate a challenge vector and write the challenge vector and the debug initiation request into the mailbox. The debugging software on the external debugging host can poll the mailbox to see if there is a challenge vector corresponding to the debug initiation request. If so, it can be read from the mailbox; if not, it can continue to poll. After obtaining the challenge vector, the debugging software on the external debugging host can generate a debug authentication request and send it to the server. In the case of internal debugging, the debugging software on the AP subsystem can obtain the challenge vector from the mailbox, generate a debug authentication request and send it to the server.
[0098] In this embodiment, since both internal debugging and external debugging are applicable, the application scope can be expanded.
[0099] In an exemplary embodiment, the debugging certificate further includes a debugging public key; and performing data verification based on the debugging certificate includes:
[0100] Get the signature returned by the server. The signature is obtained by encrypting the hash value of the debug certificate using the debug public key.
[0101] When the hash value calculated corresponding to the debugging public key is the same as the pre-stored hash value, decrypting the signature based on the debugging public key;
[0102] When the decryption result is the same as the hash value calculated corresponding to the debug certificate, and the generated challenge vector is the same as the challenge vector in the debug certificate, the data verification passes.
[0103] Specifically, the server can first generate a debug certificate based on the debug permission application information, the challenge vector and the debug public key. The server calculates the hash value of the debug certificate and encrypts the hash value using the debug private key to obtain the signature of the debug certificate, and can return the debug certificate and the corresponding signature to the SOC at the same time.
[0104] Therefore, when SOC obtains the debug certificate returned by the server, it can also obtain the signature returned by the server. SOC can calculate the hash value of the debug public key in the debug certificate, and compare the calculated hash value with the hash value of the pre-stored debug public key (which can be stored in a one-time programmable memory (OTP)). If they are the same, it can be said that the debug public key has not been tampered with during the data transmission process.
[0105] After the debugging public key verification is passed, the signature can be decrypted based on the debugging public key to obtain the hash value of the debugging certificate theoretically calculated by the server before. SOC uses the same algorithm to calculate the hash value of the debugging certificate. If the decrypted hash value is the same as the calculated hash value, it means that the debugging certificate has not been tampered with and the debugging certificate verification is successful. In addition, as mentioned above, it can be seen that the SOC can save the challenge vector after generating it. Therefore, the SOC can further compare the previously saved challenge vector with the challenge vector in the debugging certificate. If they are the same, it means that the debugging certificate is indeed the debugging certificate belonging to the SOC, so that it can be finally determined that the data verification has passed.
[0106] In this embodiment, since it is possible to verify whether the data has been tampered with through multiple judgments, the reliability of data transmission can be improved.
[0107] The above embodiments are mainly described by taking SoC as an example. In an exemplary embodiment, Figure 2 As shown, a SoC debugging method is provided, which is described by taking the method applied to a server as an example, and includes the following steps 202 to 204. Among them:
[0108] 202. Generate a debugging certificate in response to a received debugging authentication request, where the debugging authentication request includes debugging authority application information and a challenge vector for data verification.
[0109] As can be seen from the previous content, the debugging authentication request can be sent to the server by the debugging software. Debugging can be divided into external debugging and internal debugging. In the case of external debugging, after the security subsystem generates the challenge vector, it can send the challenge vector to the mailbox, and the debugging software on the external debugging host can obtain the challenge vector from the mailbox. After obtaining the challenge vector, the debugging software on the external debugging host can generate a debugging authentication request based on the challenge vector and send it to the server. In the case of internal debugging, after the security subsystem generates the challenge vector, it can also send the challenge vector to the mailbox. Unlike external debugging, internal debugging is that the debugging software on the AP subsystem obtains the challenge vector from the mailbox, generates a debugging authentication request based on the challenge vector, and sends it to the server. After receiving the debugging authentication request, the server can generate a debugging certificate.
[0110] 204. Trigger sending a debug certificate to the SoC, where the debug certificate includes encrypted debug data, where the debug data includes a challenge vector and debug permission application information; the debug certificate is used to instruct the SoC to perform data verification, and when the verification passes, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debug permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal, where the authorization signal is used to represent the debug permission that matches the current life cycle state.
[0111] As can be seen from the previous content, in the case of external debugging, the debugging certificate can be sent by the server to the external debugging host first, and then sent to the security subsystem by the debugging software on the external debugging host through the mailbox on the SoC. In the case of internal debugging, the server can directly send the debugging certificate to the SoC, so that the security subsystem can obtain the debugging certificate and verify it in subsequent steps. The subsequent processing process after verification can be referred to the previous content, which will not be repeated here.
[0112] The above-mentioned SoC debugging method uses the debugging certificate as the unlocking token of the SoC debugging path. The debugging certificate is generated based on the debugging authentication request initiated by the debugging software. There is no need for the server to maintain the debugging password corresponding to each SoC chip, thereby reducing the maintenance burden caused by the need to maintain a large number of debugging passwords.
[0113] In addition, since debugging permissions need to be applied for based on debugging permission application information, instead of obtaining all debugging permissions on the SoC as long as the hash value of the debugging password is verified as before, it is possible to protect the assets on the SoC and reduce the security risks caused by data leakage. Furthermore, not only debugging permissions need to be applied for, but debugging permissions can also be screened based on the debugging permissions supported by the current life cycle state of the SoC, thereby further refining the control of debugging permissions for different subsystems within the SoC, achieving non-essential access, and thus protecting the assets on the SoC to a greater extent and reducing the security risks caused by data leakage.
[0114] In an exemplary embodiment, in the case of internal debugging, the debugging authentication request is sent by the SoC; in the case of external debugging, the debugging authentication request is sent by the external debugging host; triggering sending the debugging certificate to the SoC includes:
[0115] In case of internal debugging, send debug certificates to the SoC;
[0116] In the case of external debugging, a debug certificate is sent to the external debug host, and the debug certificate is used to instruct the external debug host to forward to the SoC.
[0117] Specifically, in the case of internal debugging, the server can send the debugging certificate to the security subsystem. In the case of external debugging, the server can first send the debugging certificate to the debugging software on the external debugging host, and the debugging software sends the debugging certificate to the security subsystem via the mailbox.
[0118] In this embodiment, since both internal debugging and external debugging are applicable, the application scope can be expanded.
[0119] In an exemplary embodiment, the debugging authentication request also includes account information for applying for debugging; the method also includes: authenticating the account information, and if the authentication passes, executing the step of triggering sending the debugging certificate to the SoC.
[0120] Specifically, the account information may include a debugging user ID and a user password. The account information may be obtained by the debugging user registering on the server in advance. When debugging the SoC, the debugging user may enter the account information through the terminal device and include it in the debugging authentication request. After the debugging software on the external debugging host or the debugging software on the AP subsystem sends a debugging authentication request to the server, the server may authenticate the account information therein. After the authentication is passed, the debugging certificate is sent to the SoC.
[0121] In this embodiment, since sending the debugging certificate to the SoC is triggered, the debugging user who initiates the debugging authentication request can be authenticated, thereby improving debugging security.
[0122] In an exemplary embodiment, generating a debugging certificate includes:
[0123] Generate a debugging certificate based on the debugging permission application information, challenge vector and debugging public key.
[0124] The server may also calculate a hash value of the debug certificate, and use a debug private key to encrypt the hash value to obtain a signature of the debug certificate, thereby returning the debug certificate and the signature to the SOC at the same time.
[0125] In this embodiment, since the signature of the debugging certificate can be generated and the debugging data can also include a challenge vector, multiple judgments can be made during subsequent verification to verify whether the data has been tampered with, thereby improving the reliability of data transmission.
[0126] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0127] Based on the same inventive concept, the embodiment of the present application also provides a SoC for implementing the SoC debugging method involved above. The implementation solution provided by the SoC to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more SoC embodiments provided below can refer to the limitations of the SoC debugging method above, and will not be repeated here.
[0128] In an exemplary embodiment, Figure 3 As shown, a SoC is provided, including: a security subsystem and a debugging software module, wherein:
[0129] The security subsystem is used to generate a challenge vector for data verification in response to the obtained debug initiation request, where the debug initiation request is initiated by the debug software module;
[0130] The debugging software module is used to trigger the sending of a debugging authentication request to the server, where the debugging authentication request includes a challenge vector and debugging permission application information;
[0131] The debugging software module is also used to obtain the debugging certificate returned by the server. The debugging certificate includes debugging data, and the debugging data includes a challenge vector and debugging permission application information;
[0132] The security subsystem is also used to perform data verification based on the debugging certificate obtained by the debugging software module. If the verification is passed, the permissions to be applied represented by the debugging permission application information are screened based on the current life cycle state of the SoC to obtain an authorization signal, which is used to represent the debugging permission that matches the current life cycle state;
[0133] The debugging software module is also used for debugging based on the authorization signal.
[0134] exist Figure 3 In the debug interconnection network, the debug access network is used to route debug access from the external debug interface or the internal debug interface to each debug sub-interface according to the address decoding result. The mailbox is the interface module that exchanges information when external debug and internal debug communicate with the SoC security subsystem through the challenge-response mechanism. The security subsystem is the subsystem in the SoC that is responsible for secure debug management and other security management.
[0135] The debugging sub-interface i refers to a secure debugging interface module that controls access to debugging resources in one or more subsystems being debugged, where i=0, 1, 2, ..., m. As can be seen from the previous content, each subsystem that requires independent control of debugging permissions has a separate debugging sub-interface, or several subsystems can share a debugging sub-interface. Each debugging sub-interface can have a 2-bit authorization signal auth_en[i], including a 1-bit secure debugging enable signal and a 1-bit non-secure debugging enable signal. There can be multiple subsystems on the SoC, such as n, and these subsystems can have AP subsystems for initiating debugging (such as subsystem 0), and network subsystems for network interconnection with servers (such as subsystem m). Among them, some subsystems will have confidential data of the SoC, which needs to be protected by a secure debugging mechanism.
[0136] The bus interconnection refers to the on-chip interconnection bus of the SoC, which provides a communication path between the masters and slaves on the chip. The transfer bridge is used to receive data from the JTAG (Joint Test Action Group) or SWD (Serial Wire Debug) interface and convert it into access to the debug sub-interface, mainly used to connect to an external debugging host.
[0137] Based on the above Figure 3 The description of the internal composition of the SoC in the example above will now be described. In the case of internal debugging, the debugging software module is located on the AP subsystem. In the case of external debugging, the debugging software module is located on the external debugging host.
[0138] In the case of internal debugging, the debugging software module on the AP subsystem can initiate a debugging initiation request. In the case of external debugging, the debugging software module on the external debugging host can initiate a debugging initiation request. In either case, the debugging software module can send the debugging initiation request to the mailbox. After the mailbox receives the debugging initiation request, it can notify the security subsystem through an interrupt.
[0139] After the security subsystem obtains the debug initiation request from the mailbox, it can use the true random number generator to generate a 128-bit or other length random number, and write the SoC identifier soc_id and the random number as the challenge vector challenge_vector to the mailbox. When the debug software module initiates the debug initiation request, it polls the mailbox to see if there is a challenge_vector corresponding to the debug initiation request. If there is, it reads it from the mailbox; if not, it continues to poll.
[0140] After obtaining challenge_vector, the debugging software module builds a debugging authentication request based on the account information, challenge_vector and debugging permission application information sec_dbg_req_list for debugging application, and sends it to the server. In the case of external debugging, the debugging software module on the external debugging host can be directly sent to the server through the network interconnection with the server. In the case of internal debugging, the debugging software module on the AP subsystem can first send the debugging authentication request to the network subsystem (such as subsystem m) through the bus interconnection, and then the network subsystem sends the debugging authentication request to the server through the network interconnection with the server.
[0141] After receiving the debug authentication request, the server can authenticate the account information. After the authentication is passed, challenge_vector and sec_dbg_req_list can be used as debug data, and a debug certificate can be generated based on the debug data, and the debug certificate can be returned to the debug software module. The debug software module can send the debug certificate to the security subsystem via email, and the security subsystem can use Crypto engines to verify the debug certificate data. After the verification is passed, the security subsystem can filter the permissions to be applied for represented by the debug permission application information based on the current life cycle state of the SoC, obtain the authorization signal, and send the authorization signal to the corresponding debug sub-interface.
[0142] In an exemplary embodiment, the security subsystem is also used to obtain the SoC identifier of the SoC and generate a random number. The SoC identifier is used to instruct the server to verify the identity of the SoC; the SoC identifier is integrated with the true random number to obtain a challenge vector for data verification.
[0143] In an exemplary embodiment, a debug initiation request is obtained from a mailbox of the SoC; in the case of external debugging, the debug initiation request is sent to the mailbox by an external debug host; in the case of internal debugging, the debug initiation request is sent to the mailbox by an application processor subsystem in the SoC; the debug software module is specifically used to transmit a challenge vector to the mailbox in the case of external debugging, and return the challenge vector to the external debug host in response to a polling request for the mailbox from the external debug host, wherein the challenge vector is used to instruct the external debug host to generate a debug authentication request and send it to the server; in the case of internal debugging, a debug authentication request is generated and sent to the server.
[0144] In an exemplary embodiment, the debug certificate also includes a debug public key;
[0145] The security subsystem is specifically used to obtain the signature returned by the server. The signature is obtained by the server using the debugging public key to encrypt the hash value of the debugging certificate; when the hash value calculated corresponding to the debugging public key is the same as the pre-stored hash value, the signature is decrypted based on the debugging public key; when the decryption result is the same as the hash value calculated corresponding to the debugging certificate, and the generated challenge vector is the same as the challenge vector in the debugging certificate, the data verification is passed.
[0146] In an exemplary embodiment, the debugging permission application information includes an application identifier corresponding to at least one subsystem in the SoC, and the application identifier is used to indicate whether access is applied to the address space of the corresponding subsystem; the security subsystem is specifically used to obtain debugging permission support information that matches the current life cycle state of the SoC, and the debugging permission support information includes a support identifier corresponding to at least one subsystem in the SoC, and the support identifier is used to indicate whether the address space of the corresponding subsystem supports access in the current life cycle state; based on the same identifier between the debugging permission application information and the debugging permission support information, an authorization signal is obtained.
[0147] In an exemplary embodiment, the address space of the subsystem includes at least one of a secure address space or a non-secure address space.
[0148] Based on the same inventive concept, the embodiment of the present application also provides a server for implementing the SoC debugging method involved above. The implementation solution provided by the server to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more server embodiments provided below can refer to the limitations of the SoC debugging method above, and will not be repeated here.
[0149] In an exemplary embodiment, Figure 4 As shown, a server is provided, including: a generation module 402 and a trigger execution module 404, wherein:
[0150] A generating module 402, configured to generate a debugging certificate in response to a received debugging authentication request, wherein the debugging authentication request includes debugging permission application information and a challenge vector for data verification;
[0151] A trigger execution module 404 is used to trigger sending a debug certificate to the SoC, where the debug certificate includes debug data, and the debug data includes a challenge vector and debug permission application information;
[0152] The debug certificate is used to instruct the SoC to perform data verification. If the verification passes, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debug permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal. The authorization signal is used to represent the debug permission that matches the current life cycle state.
[0153] In an exemplary embodiment, in the case of internal debugging, the debug authentication request is sent by the SoC; in the case of external debugging, the debug authentication request is sent by the external debug host; triggering execution module 404 is specifically used to send a debug certificate to the SoC in the case of internal debugging; in the case of external debugging, send a debug certificate to the external debug host, and the debug certificate is used to instruct the external debug host to forward to the SoC.
[0154] In an exemplary embodiment, the debugging authentication request also includes the account information for applying for debugging; the trigger execution module 404 is also used to authenticate the account information, and when the authentication is passed, the step of triggering the sending of the debugging certificate to the SoC is executed.
[0155] In an exemplary embodiment, the generation module 402 is specifically configured to generate a debugging certificate based on the debugging permission application information, the challenge vector, and the debugging public key.
[0156] Each module in the above SoC and server can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module above.
[0157] Based on the same inventive concept, the present application also provides a debugging system for implementing the above-mentioned SoC debugging method. In an exemplary embodiment, Figure 5 As shown, a debugging system in an external debugging situation is provided, including the SoC provided in the previous SoC embodiment and the server provided in the previous server embodiment. In another exemplary embodiment, as Figure 6 As shown, a debugging system in an internal debugging situation is provided, including the SoC provided in the previous SoC embodiment and the server provided in the previous server embodiment.
[0158] It should be noted that in Figure 5 In the context of external debugging, the external debugging host refers to a computer device running debugging software. The emulator is used to connect to the debugging host through a high-bandwidth interface such as USB or Ethernet of the external debugging host, and communicate with the debugging network of the SoC through a JTAG or SWD interface. In addition, in combination with the explanation of the previous embodiment, in the case of external debugging, the interaction process between the server, the external debugging host and the SoC can be referred to Figure 7 In the case of internal debugging, the interaction process between the server and SoC can be referred to Figure 8 .
[0159] Based on the contents of the previous embodiment, Fig. 9As shown, the embodiment of the present application also provides a security subsystem, including: a security processor (CPU), a static random access memory (SRAM), a one-time programmable memory (OTP), an OTP read-write controller (otp_ctrl), a true random number generator (TRNG), encryption and decryption algorithm engines (Crypto engines) and a secure debug authenticator (SDA, Secure Debug Authenticator), wherein:
[0160] The security processor is used to run the firmware stored in SRAM and control modules such as opt_ctrl, TRNG, Cryptoengines and SDA to complete the entire process of JTAG path access authentication for secure debugging.
[0161] SRAM, used to store programs and data required for the operation of the security subsystem;
[0162] OTP is used to store the SoC's encryption and decryption keys, the hash value of the root of trust public key, and the hash value of the SoC secure debug public key, and other information that cannot be lost when power is off. For example, it can be stored in the current lifecycle state sec_lifecycle_state mentioned in the previous content.
[0163] otp_ctrl, used to read sec_lifecycle_state from OTP.
[0164] TRNG, used to generate random numbers for generating challenge vectors.
[0165] Crypto engines are used to provide various cryptographic algorithms for encryption and decryption during secure debugging.
[0166] SDA is used to receive the sec_lifecycle_state sent by otp_ctrl. If the verification is passed, based on the current life cycle state of the SoC, it will filter the permissions to be applied for represented by the debug permission application information and obtain the authorization signal. The specific process of SDA outputting the authorization signal can be referred to in the previous content.
[0167] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0168] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A SoC debugging method, characterized in that: Applied to SoC, the method comprises: In response to the acquired debugging initiation request, generating a challenge vector for data verification; Triggering sending of a debugging authentication request to a server, wherein the debugging authentication request includes the challenge vector and debugging permission application information; Obtaining a debugging certificate returned by the server, wherein the debugging certificate includes debugging data, and the debugging data includes the challenge vector and debugging permission application information; Performing data verification based on the commissioning certificate; If the verification is passed, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debugging permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal, and the authorization signal is used to represent the debugging permissions that match the current life cycle state.
2. The method according to claim 1, characterized in that: The debugging permission application information includes an application identifier corresponding to at least one subsystem in the SoC, and the application identifier is used to indicate whether to apply for access to the address space of the corresponding subsystem; the filtering of the permissions to be applied represented by the debugging permission application information based on the current life cycle state of the SoC to obtain an authorization signal includes: Acquire debugging permission support information matching the current life cycle state of the SoC, the debugging permission support information including a support identifier corresponding to at least one subsystem in the SoC, the support identifier being used to indicate whether an address space of the corresponding subsystem supports access in the current life cycle state; Based on the same identifier between the debugging permission application information and the debugging permission support information, an authorization signal is obtained.
3. The method according to claim 2, characterized in that The address space of the subsystem includes at least one of a secure address space and a non-secure address space.
4. The method according to claim 1, characterized in that: The generating of a challenge vector for data verification comprises: Obtaining a SoC identifier of the SoC and generating a random number, wherein the SoC identifier is used to instruct the server to verify the identity of the SoC; The SoC identifier is integrated with the random number to obtain a challenge vector for data verification.
5. The method according to claim 1, characterized in that The debugging certificate also includes a debugging public key; and the data verification based on the debugging certificate includes: Obtaining a signature returned by the server, wherein the signature is obtained by the server using the debugging public key to encrypt a hash value of the debugging certificate; In a case where the hash value calculated corresponding to the debugging public key is the same as the pre-stored hash value, decrypting the signature based on the debugging public key; When the decryption result is the same as the hash value calculated corresponding to the debug certificate, and the generated challenge vector is the same as the challenge vector in the debug certificate, the data verification is successful.
6. A SoC debugging method, characterized in that: Applied to a server, the method comprises: generating a debugging certificate in response to a received debugging authentication request, wherein the debugging authentication request includes debugging permission application information and a challenge vector for data verification; Triggering sending of a debug certificate to the SoC, the debug certificate including debug data, the debug data including the challenge vector and debug permission application information; The debugging certificate is used to instruct the SoC to perform data verification. If the verification passes, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debugging permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal. The authorization signal is used to represent the debugging permission that matches the current life cycle state.
7. The method according to claim 6, characterized in that The generating of the debugging certificate comprises: A debugging certificate is generated based on the debugging permission application information, the challenge vector and the debugging public key.
8. A SoC, characterized in that: include: The security subsystem is used to generate a challenge vector for data verification in response to an acquired debug initiation request, wherein the debug initiation request is initiated by a debug software module; A debugging software module, used to trigger sending a debugging authentication request to a server, wherein the debugging authentication request includes the challenge vector and debugging permission application information; The debugging software module is further used to obtain the debugging certificate returned by the server, wherein the debugging certificate includes debugging data, and the debugging data includes the challenge vector and debugging permission application information; The security subsystem is further used to perform data verification based on the debugging certificate obtained by the debugging software module. If the verification is passed, the permissions to be applied represented by the debugging permission application information are screened based on the current life cycle state of the SoC to obtain an authorization signal, where the authorization signal is used to represent the debugging permission that matches the current life cycle state; The debugging software module is further used to perform debugging based on the authorization signal.
9. A server, characterized in that: include: A generating module, configured to generate a debugging certificate in response to a received debugging authentication request, wherein the debugging authentication request includes debugging permission application information and a challenge vector for data verification; A trigger execution module, used to trigger sending a debug certificate to the SoC, wherein the debug certificate includes debug data, and the debug data includes the challenge vector and debug permission application information; The debugging certificate is used to instruct the SoC to perform data verification. If the verification passes, based on the current life cycle state of the SoC, the permissions to be applied for represented by the debugging permission application information are screened, an authorization signal is obtained, and debugging is performed based on the authorization signal. The authorization signal is used to represent the debugging permission that matches the current life cycle state.
10. A debugging system, characterized in that: include: The SoC as claimed in claim 8 and the server as claimed in claim 9.
Citation Information
Cited By
Safety debugging method, chip and electronic equipment
CN122113134A
Life cycle management method, security processor system, chip and electronic device
CN122221321A
Life cycle management method, secure processor system, chip and electronic device
CN122221321B
Debug re-enablement using hash chain-based message authentication
US20260220246A1
