Key attribute verification

By exchanging encryption key identifiers and attributes between the key management system and the encryption coprocessor, and using MAC and encryption salt value verification, the problem of limited storage capacity of the encryption coprocessor is solved and the integrity of the key attributes is ensured. security and consistency.

CN115398856BActive Publication Date: 2024-08-30INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202180027061.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-17
Publication Date
2024-08-30
Estimated Expiration
2041-03-17

AI Technical Summary

Technical Problem

Existing encryption coprocessors have problems with limited data storage capacity and limited functions when storing and managing encryption keys and their related attributes, resulting in the inability to effectively ensure the integrity and consistency of key attributes, which may lead to security risks.

Method used

Ensure attributes by exchanging key identifiers and attributes between the key management system and the cryptographic coprocessor, verifying the integrity of the attributes using a message authentication code (MAC), and storing reference values ​​in an external database or public whitelisting service Correctness and consistency, using encryption salts to improve security, and iteratively calculating MAC to adapt to coprocessor resource constraints.

Benefits of technology

It realizes the integrity verification of a large number of attribute groups associated with encryption keys, ensures the consistency of attributes across multiple devices, improves security, and avoids potential security risks and attack threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115398856B_ABST
    Figure CN115398856B_ABST
Patent Text Reader

Abstract

A key identifier identifying an encryption key is sent to an encryption coprocessor. A first set of attributes is received from the encryption coprocessor. The first set of attributes and a second set of attributes are serialized into a first attribute sequence. The first attribute sequence is stored in an attribute box. One or more attributes in the second set of attributes are associated with the encryption key and are derived from a key attribute storage of a key management system. The second set of attributes is different from the first set of attributes. The first attribute sequence is sent to the encryption coprocessor. A first message authentication code (MAC) calculated from the first attribute sequence is received from the encryption coprocessor. The attribute box is verified by comparing the first MAC or a value derived from the first MAC with a reference value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates generally to cryptographic keys and, more particularly, to a key management system utilizing a cryptographic coprocessor capable of storing cryptographic keys and attributes associated with the cryptographic keys. Background Art

[0002] Server-centric cryptographic services rely on cryptographic coprocessors to store keys in hardware-protected secure storage devices. Cryptographic coprocessors are typically capable of performing a variety of cryptographic functions, such as password encryption and signing data. Cryptographic coprocessors provide high security but have various limitations, such as limited capacity for data storage and a specialized but restricted range of functions.

[0003] A key management system provides storage and management of cryptographic keys. For example, a key management system allows for the generation, exchange, storage, use, destruction, and replacement of cryptographic keys. A key management system can store multiple cryptographic keys. Along with each cryptographic key, the key management system can also store various attributes related to the cryptographic key. For example, these attributes can specify when the key was created, which cryptographic operations can be used with the key, and when the key expires. Summary of the invention

[0004] Embodiments of the present invention include a method for providing a key management system and attributes associated with an encryption key. In one embodiment, a key identifier identifying an encryption key is sent to an encryption coprocessor. A first set of attributes is received from the encryption coprocessor. One or more attributes in the first set of attributes are associated with the encryption key and are derived from a key attribute storage in the encryption coprocessor. The first set of attributes and the second set of attributes are serialized into a first attribute sequence. The first attribute sequence is stored in an attribute box. One or more attributes in the second set of attributes are associated with the encryption key and are derived from a key attribute storage of the key management system. The second set of attributes is different from the first set of attributes. The first attribute sequence is sent to the encryption coprocessor. A first message authentication code (MAC) calculated from the first attribute sequence is received from the encryption coprocessor. The attribute box is verified by comparing the first MAC or a value derived from the first MAC with a reference value. BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In the following, embodiments are explained in more detail, by way of example only, with reference to the accompanying drawings, in which:

[0006] Figure 1 A block diagram of a key management system and an encryption coprocessor according to an embodiment of the present invention is shown;

[0007] Figure 2 is a flow chart detailing the operation of a key management system according to an embodiment of the present invention;

[0008] Figure 3 is a flow chart detailing the operation of a key management system according to an embodiment of the present invention, wherein the key management system exemplarily uses a public whitelist service for authentication;

[0009] Figure 4 is a flow chart detailing the operation of a key management system according to an embodiment of the present invention, wherein the key management system uses a cryptographic coprocessor for authentication;

[0010] Figure 5 is a flow chart detailing the operation of a cryptographic coprocessor according to an embodiment of the present invention;

[0011] Figure 6 is a flow chart detailing the operation of a cryptographic coprocessor during authentication according to an embodiment of the present invention; and

[0012] Figure 7 The embodiment according to the present invention is shown Figure 1 A block diagram of the components of a computing environment. DETAILED DESCRIPTION

[0013] The description of various embodiments of the present invention is given for the purpose of illustration and is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, practical application or technical improvement of technology found in the marketplace, or to enable those of ordinary skill in the art to understand the embodiments disclosed herein.

[0014] A key management system is capable of storing cryptographic keys and attributes associated with the cryptographic keys. It may be necessary to change or extend a set of attributes associated with a cryptographic key. An cryptographic key may also be used in conjunction with different sets of attributes. As an example, multiple public key certificates may be legally issued for the same asymmetric key, with disjoint certificate chains and completely unrelated attributes. As another example, a set of attributes associated with a cryptographic key may undergo an attribute lifecycle evolution over time. For example, the conversion and revocation of a certificate may extend the metadata associated with the cryptographic key. Therefore, it may be necessary to ensure that a set of attributes associated with a cryptographic key is consistent across multiple devices. Otherwise, the cryptographic key may be used in an unforeseen or undesirable manner, which may constitute a security issue.

[0015] The cryptographic coprocessor can securely store a small number of attributes associated with the cryptographic key. The integrity of these attributes is protected by the cryptographic processor. Although the key management system can store many attributes, the cryptographic coprocessor cannot store a large set of attributes. In order to ensure the integrity of all attributes associated with the cryptographic key, the key management system cannot store all attributes in the cryptographic coprocessor. In addition, the cryptographic coprocessor usually lacks the context to interpret a wide range of attributes, and therefore cannot actually use many attributes.

[0016] A key management system according to the present invention sends a key identifier identifying an encryption key to an encryption coprocessor. According to an embodiment, the key identifier is used to identify the key and a set of specific attributes associated with the encryption key. In response to sending the key identifier to the encryption coprocessor, the key management system receives a first set of attributes from the encryption coprocessor, the attributes in the first set of attributes being associated with the encryption key. According to an embodiment, the attributes from the first set of attributes are attributes known to the encryption coprocessor and / or stored internally by the encryption coprocessor.

[0017] In an embodiment, the key management system serializes the first set of attributes and the second set of attributes into an attribute sequence and stores the attribute sequence in an attribute box. According to an embodiment, the attribute box retains multiple attributes for later reference and allows the attribute group to be verified at a later point in time. The second set of attributes is a set of attributes stored by a key attribute storage of the key management system. According to an embodiment, the key attribute storage may be a database or system memory of the key management system. According to an embodiment, the first set of attributes includes fewer attributes than the second set of attributes. According to another embodiment, the first set of attributes is a subset of the second set of attributes. This may be due to the fact that the encryption coprocessor cannot store as many attributes as the key management system. According to an embodiment, attributes from the attribute sequence may be stored in an appropriate format in the attribute box. According to an embodiment, the attribute sequence may include data fields such as Boolean values, bit masks, integers, arrays, and variable length containers.

[0018] The attribute sequence is obtained by serializing the first set of attributes and the second set of attributes. The serialization of the attributes may require that the attributes from the first set of attributes and from the second set of attributes be brought into a specific order. According to an embodiment, when constructing the attribute sequence, the attributes included in both the first set of attributes and the second set of attributes are inserted into the attribute sequence only once. The attribute sequence includes attributes associated with the key identifier from the key management system and from the cryptographic coprocessor.

[0019] The key management system sends the attribute sequence to the cryptographic coprocessor. In response to sending the attribute sequence to the cryptographic coprocessor, the key management system receives a first message authentication code (MAC) calculated from the attribute sequence. The first MAC has been calculated by the cryptographic coprocessor. The MAC allows the integrity of the data to be verified. To verify the integrity of the attribute sequence, the key management system compares the first MAC or a value derived from the first MAC with a reference value. If the first MAC or a value derived from the first MAC is equal to the reference value, the integrity of the attribute sequence is successfully verified.

[0020] According to an embodiment of the invention, the reference value is stored in an external database, and the key management system is configured to access the reference value from the external database. According to an embodiment, the external database is located in a public whitelist service that can be accessed via an Internet connection. According to another embodiment, the reference value may be stored in the key management system itself. According to another embodiment, the key management system may cause the reference value to be calculated by the cryptographic coprocessor.

[0021] A key management system may have the following advantages: The key management system may utilize a cryptographic coprocessor in order to verify the integrity of a large set of attributes that cannot be securely stored in the cryptographic coprocessor. In an embodiment, a determination is made as to whether a correct version of a set of attributes is used. A first MAC is obtained that uniquely identifies the attributes included within the key management system and the cryptographic coprocessor. An attribute box is constructed that includes data related to the cryptographic key, which attribute box may be used for later reference. It may therefore be established that the attributes used in conjunction with the cryptographic key are consistent across multiple entities. According to an embodiment, the key management system may store the attribute box for later reference.

[0022] According to an embodiment, the key management system is further configured to send attributes from the attribute sequence to the cryptographic coprocessor in consecutive calls so as to cause the cryptographic coprocessor to iteratively calculate the first MAC. This allows the cryptographic coprocessor to be accessed by individual calls of limited size that conform to the coprocessor limitations. Attributes from the attribute sequence are sent continuously so that they can be processed by the cryptographic coprocessor. The cryptographic coprocessor incrementally calculates the first MAC as it receives the attributes. After all attributes are received, the calculation is complete, the cryptographic coprocessor sends the first MAC to the key management system, and the key management system receives the first MAC.

[0023] According to an embodiment, the key management system is further configured to construct a placeholder MAC field in the attribute box and store the first MAC received from the cryptographic coprocessor in the placeholder. Storing the MAC in this manner has the advantage that the attribute box can be used for reference at a later point in time so that the integrity of the attribute from the attribute sequence can be verified by the first MAC. According to another embodiment, the key management system also stores an attribute key within the attribute box. Storing the attribute key has the advantage that it can be quickly determined which attribute key the first MAC stored within the attribute box and the attribute sequence are associated with.

[0024] According to another embodiment, the key management system is further configured to: construct a placeholder encrypted salt value field in the attribute box, receive an encrypted salt from the encryption coprocessor in response to sending the attribute sequence, and store the encrypted salt in the placeholder. According to various embodiments, the encrypted salt value that has been used to generate the first MAC is received by the key management system, and the encrypted salt value is stored in the placeholder field within the attribute box. The encrypted salt value cannot be easily inferred from the first MAC to ensure the content of the attribute sequence. In addition, the use of the salt value prevents malicious entities that know the attribute sequence from obtaining a MAC directly calculated from the known attribute sequence, which can prevent the compromise of the system.

[0025] According to an embodiment, the first MAC is calculated by the encryption coprocessor using a salt value, thereby changing the result of the first MAC. If the salt value is not used, then the attacker can generate a table containing different attribute sequences and corresponding MACs. Given a MAC, the attacker can then use the table to find the corresponding attribute sequence. If the salt value is used to calculate the first MAC, this type of attack may become less likely. According to an embodiment, the salt value is randomly generated by the encryption coprocessor. In an embodiment where the salt value is used to calculate the first MAC, the salt value is also required to verify whether a given attribute sequence corresponds to the first MAC. According to various embodiments, the salt value is therefore stored in the attribute box for later reference.

[0026] According to another embodiment, the key management system is further configured to serialize the first set of attributes and the second set of attributes according to a standardized mechanism, and send the attributes from the attribute sequence to the encryption coprocessor according to the order of the attributes in the attribute sequence. The standardized mechanism has the following advantages: it ensures that the first set of attributes and the second set of attributes are sorted in a consistent manner during serialization. Initially, the attributes within the first set of attributes and the second set of attributes do not necessarily have an inherent ordering that can be guaranteed to be the same across different devices. For example, the attributes from the first set of attributes can be sent to the key management system by the encryption coprocessor in the order in which the attributes are stored in the key attribute storage of the encryption coprocessor. Similarly, the attributes from the second set of attributes can be stored in the key management system in any order. However, in order to ensure that the same MAC is always generated from the attributes derived from the first set of attributes and the second set of attributes, the attributes need to be provided to the encryption coprocessor in a consistent order. Changing the order of the attributes will result in the generation of a different first MAC.

[0027] Using a normalization mechanism has the following advantages: The normalization mechanism always sets the attributes from the first set of attributes and the second set of attributes to the same order. According to an embodiment, the order of the attributes in the attribute sequence is immutable. Because a consistent ordering is performed, different key management systems will generate the same attribute sequence as long as these key management systems adopt the same normalization mechanism. This ensures that the same first MAC will always be calculated for matching these sets of attributes.

[0028] According to an embodiment, the standardization mechanism depends on the characteristics of the serialized attributes, which are selected from a group including attribute values ​​and attribute types. The attribute value represents the content of the attribute. In one example, an attribute containing only zeros can be placed at the beginning or end of the attribute sequence. The attribute type represents the type of attribute data stored in the attribute. For example, possible attribute types may include a key identity type that allows a key to be uniquely identified, a key entity type that identifies the entity to which the key is assigned, an encryption key type such as a private key, a private key, or a public key, and a key usage type that declares which encryption algorithms the key can be used for. The attribute can be set to a predetermined order according to its attribute type. This embodiment has the advantage of providing a standard for sorting attributes. According to an embodiment, the attributes are set to a predetermined order according to the type of the attribute and the value of the attribute. According to another embodiment, the attributes can also be sorted according to other criteria.

[0029] According to an embodiment, verifying the attribute box by the key management system includes sending the attribute sequence from the attribute box again to the encryption coprocessor, calculating the first encrypted hash from the first MAC, receiving the second encrypted hash from the encryption coprocessor as a reference value, and comparing the first encrypted hash with the second encrypted hash to verify the attribute box. According to this embodiment, the value is derived from the first MAC by calculating the first encrypted hash. The second encrypted hash received by the key management system from the encryption coprocessor is used as a reference value. If the first encrypted hash and the second encrypted hash match, the verification is successful. This embodiment has the following advantages: the reference value is calculated by the encryption coprocessor and does not need to be obtained from an external database or other external source. The fact that the first encrypted hash and the second encrypted hash are compared to each other instead of two MACs can have a security advantage: if the encryption coprocessor is to return a MAC instead of a second encrypted hash, the encryption coprocessor can be used as a signing oracle.

[0030] According to an embodiment, the key management system is configured to receive a failure notification from the cryptographic coprocessor if the verification fails. According to another embodiment, the key management system is configured to evaluate the verification as failed if the key management does not receive a second cryptographic hash in response to sending the attribute sequence from the attribute box to the cryptographic coprocessor again. This may be the case if the key management requires verification in the context of its communication protocol (i.e., a valid confirmation from its communication partner). In this case, even the lack of a success notification qualifies as a failure.

[0031] According to an embodiment, verifying the attribute box by the key management system further comprises: sending the key identifier to the cryptographic coprocessor again, receiving a third set of attributes from the cryptographic coprocessor, the attributes in the third set of attributes being associated with the cryptographic key, verifying that a subset of the attributes from the sequence of attributes is consistent with the third set of attributes, and if verification of the subset is unsuccessful, stopping verification of the attribute box. This has the advantage that if it is determined that the third set of attributes is inconsistent with the subset of attributes from the sequence of attributes, the verification process can be aborted. In practice, this would mean that the key management system stores different attributes associated with the cryptographic key than the cryptographic coprocessor.

[0032] According to an embodiment, the validation is performed before the sequence of attributes is sent again from the attribute box to the cryptographic coprocessor. The third set of attributes is a set of attributes that the cryptographic coprocessor stores in association with the cryptographic key. According to another embodiment, the subset of attributes from the sequence of attributes is identical to the first set of attributes previously received by the key management system from the cryptographic coprocessor. According to another embodiment, the subset of attributes from the sequence of attributes includes at least some attributes from the first set of attributes.

[0033] According to an embodiment, the key management system performs verification by checking whether attributes from the subset of attributes are equal to attributes from the third set of attributes. According to another embodiment, the key management system performs verification by checking whether attributes from the third set of attributes, which match attributes from the sequence of attributes with respect to their attribute type, also match these attributes with respect to their value. In an embodiment, it may be determined whether an attribute specifying a date on which an encryption key was created (attribute type) includes the same date (attribute value) in both the subset of attributes and the third set of attributes.

[0034] According to various embodiments, an attribute is consistent with another attribute if the attribute is equal to the other attribute with respect to attribute value and / or attribute type. According to other embodiments, an attribute from the third set of attributes may be consistent with an attribute from the subset of attributes if there is no difference between the attribute from the third set of attributes and the attribute from the subset of attributes with respect to security policy, expected value range, or other characteristics.

[0035] The invention also relates to a computer program product for operating a key management system. According to an embodiment, the computer program product has program instructions that cause a processor of the key management system to operate as described above. All actions of the key management system as described above can be affected by the embodiments of the computer program product in any combination.

[0036] The invention also relates to a method for operating a key management system. According to an embodiment, the method comprises the actions of the key management system as described above. According to an embodiment of the method, all actions of the key management system as described above may be performed in any combination.

[0037] The encryption coprocessor according to the present invention is configured to assist the key management system in identifying and / or verifying the attribute box. Specifically, the encryption coprocessor is configured to receive a key identifier that identifies an encryption key from the key management system. The encryption coprocessor then sends a first set of attributes to the key management system, the attributes in the first set of attributes being associated with the encryption key and originating from the key attribute storage of the encryption coprocessor. The attributes from the first set of attributes are attributes associated with the encryption key stored by the encryption coprocessor. Due to resource limitations, the encryption coprocessor only stores some key attributes internally. According to an embodiment, the encryption coprocessor obtains the first set of attributes by selecting a set of attributes associated with the key identifier from its key attribute storage.

[0038] In response to sending the first set of attributes, the encryption coprocessor receives an attribute sequence from the key management system, wherein the attribute sequence includes a first set of attributes and a second set of attributes. In an embodiment, the attributes from the second set of attributes are associated with an encryption key, and the second set of attributes are different from the first set of attributes. According to an embodiment, the attributes from the second set of attributes are attributes that are not stored internally within the encryption coprocessor. Instead, these attributes may originate from the internal storage of the key management system. The encryption coprocessor calculates a first MAC based on the attribute sequence and sends the first MAC to the key management system. The encryption coprocessor has the following advantages: it allows the key management system to obtain a first MAC, which the key management system can then use for identification and / or verification purposes. In addition, the advantage of the communication flow discussed is that it sends the first set of attributes to the key management system, which provides the key management system with information about which attributes are known to the encryption coprocessor.

[0039] According to an embodiment, the cryptographic coprocessor is further configured to iteratively generate a first MAC by receiving a sequence of attributes from a key management system in consecutive calls. According to this embodiment, the attributes from the attribute sequence are received one by one by the cryptographic coprocessor. This embodiment is consistent with the way the cryptographic coprocessor operates, namely by receiving calls that typically include a relatively small amount of data. Some application programming interfaces (APIs) of cryptographic service providers may provide related functions that can be used in this context. According to an embodiment, the cryptographic coprocessor calculates the first MAC from the attributes step by step. It may be very important to receive the attributes in the correct order of the attributes, which means that the order of the attributes within the attribute sequence before or while the attributes are received by the cryptographic coprocessor may be unchanged. Otherwise, the first MAC generated by the attribute sequence will be incorrect.

[0040] According to an embodiment, the cryptographic coprocessor is configured to store data required to iteratively generate a first MAC between consecutive calls. This has the following advantages: the first MAC can be iteratively generated with minimal memory requirements within the cryptographic coprocessor. According to an embodiment, the cryptographic coprocessor receives a first attribute from an attribute sequence and performs a first calculation step for generating a first MAC. The first calculation step produces a first intermediate result for calculating the first MAC. The cryptographic coprocessor then stores the first intermediate result and continues to receive a second attribute from the attribute sequence. The cryptographic coprocessor then uses the first intermediate result and the second attribute as input to perform a second calculation step, thereby producing a second intermediate result. The second intermediate result is then stored in place of the first intermediate result. The process continues until the last attribute from the attribute sequence has been received. The cryptographic coprocessor then performs a final calculation step, by which the first MAC is obtained. According to another embodiment, the cryptographic coprocessor receives attributes from an attribute sequence via consecutive calls and stores the complete attribute sequence within the cryptographic coprocessor. According to this embodiment, the cryptographic coprocessor calculates a first MAC based on the attribute sequence after receiving the complete attribute sequence.

[0041] According to another embodiment, the encryption coprocessor is configured to generate a salt value, use the salt value as input to calculate the first MAC, and send the salt value to the key management system. As described above, using the salt value when calculating the MAC improves the security level. Therefore, this embodiment has the advantage of providing an improved security level. Because verifying the integrity of the attribute sequence will require not only the first MAC but also the salt value, the salt value is sent to the key management system. According to an embodiment, when calculating the first MAC, the salt value is attached to the attribute sequence. According to other embodiments, the salt value can be used in another way during the MAC calculation. According to another embodiment, the salt value is randomly generated.

[0042] According to another embodiment, the cryptographic coprocessor is configured to verify that a subset of attributes from the sequence of attributes is consistent with the first set of attributes, and to notify the key management system if the verification fails. This embodiment has the following advantages: the process of calculating the first MAC can be stopped in the case of invalid input data. In particular, according to an embodiment, if the key management system and the cryptographic coprocessor operate with different attributes related to the encryption key, the verification can be stopped.

[0043] According to an embodiment, verifying a subset of attributes includes comparing characteristics of attributes from the attribute sequence with characteristics of attributes in the first set of attributes, the characteristics of the attributes being selected from a group including attribute values ​​and attribute types. According to another embodiment, the cryptographic coprocessor performs verification by checking whether attributes from the first set of attributes (which match the attributes from the attribute sequence with respect to their attribute types) also match these attributes with respect to their values. For example, according to an embodiment, it may be determined whether the attributes specifying the date (attribute type) of creating an encryption key in both the subset of attributes and the first set of attributes store the same date (attribute value). According to another embodiment, the cryptographic coprocessor performs verification by determining whether all attributes from the first set of attributes (which form a subset of the attributes) are included in the attribute sequence. According to another embodiment, verification is performed by determining whether there is a password policy mismatch or other type of difference between the attribute sequence and the first set of attributes.

[0044] According to another embodiment, the cryptographic coprocessor is further configured to verify the attribute box, wherein verifying the attribute box includes receiving the attribute sequence again from the key management system, calculating a second MAC from the attribute sequence, calculating a second encrypted hash from the second MAC, and sending the second encrypted hash to the key management system for use as a reference value. This embodiment has the following advantages: the cryptographic coprocessor supports verification of the attribute box by providing a reference value. The key management system does not have to query any external database to obtain the second encrypted hash. The second MAC is calculated from the attribute sequence, and the second encrypted hash is calculated from the second MAC. Sending the second encrypted hash instead of the second MAC to the key management system prevents attacks on the cryptographic coprocessor when using the cryptographic coprocessor as a signing oracle.

[0045] According to another embodiment, the cryptographic coprocessor is configured such that the verification attribute box further comprises: receiving the key identifier again from the key management system; and sending a third set of attributes to the key management system, the attributes in the third set of attributes being associated with the cryptographic key and originating from the key attribute storage of the cryptographic coprocessor. According to an embodiment, the cryptographic coprocessor obtains the third set of attributes by selecting a set of attributes associated with the key identifier from its key attribute storage. This allows the key management system to obtain the third set of attributes. This embodiment has the following advantages: the cryptographic coprocessor provides the third set of attributes to the key management system. The key management system can verify the third set of attributes and, if there is an inconsistency regarding the third set of attributes, stop the verification process early.

[0046] According to another embodiment, the cryptographic coprocessor is configured to verify during verification that a subset of attributes from the sequence of attributes is consistent with the third set of attributes, and to notify the key management system if the verification fails. During verification, the cryptographic coprocessor receives the sequence of attributes. According to an embodiment, the cryptographic coprocessor performs verification by determining whether attributes from the third set of attributes (which match the attributes from the sequence of attributes with respect to the attribute type) also match these attributes with respect to their values. In an embodiment, it can be determined whether the attributes specifying the date (attribute type) of the creation of the encryption key in the subset of attributes and the third set of attributes store the same date (attribute value). According to another embodiment, the cryptographic coprocessor performs verification by determining whether all attributes from the third set of attributes (which form a subset of the attributes) are included in the sequence of attributes. According to another embodiment, the cryptographic coprocessor determines whether there is any other type of mismatch between the attributes from the third set of attributes and the attributes from the subset of attributes.

[0047] The present invention also relates to a computer program product for operating a cryptographic coprocessor. In an embodiment, the computer program product includes program instructions for causing the cryptographic coprocessor to operate as described above. According to an embodiment, all actions of the cryptographic coprocessor described above can be affected by the computer program product in any combination.

[0048] The present invention also relates to a method for operating a cryptographic coprocessor. An embodiment of the method includes the actions of the cryptographic coprocessor as described above. According to an embodiment of the method, all the actions of the cryptographic coprocessor as described above can be performed in any combination.

[0049] According to an embodiment, the key management system and the cryptographic coprocessor are located within a computer system. According to an embodiment, the key management system can be run on a computer processor, which is connected to the cryptographic coprocessor. The computer processor can be connected to the cryptographic coprocessor via a system bus. According to other embodiments, the cryptographic coprocessor can be operated remotely from the key management system.

[0050] In an embodiment, the present invention may be a system, method and / or computer program product of any possible degree of technical detail integration. The computer program product may include a computer-readable storage medium (or multiple media) having computer-readable program instructions for causing a processor to perform various aspects of the present invention.

[0051] Computer readable storage medium can be a tangible device that can retain and store instructions for use by instruction execution devices. Computer readable storage medium can be, for example, but not limited to, electronic storage device, magnetic storage device, optical storage device, electromagnetic storage device, semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage medium includes the following: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DvD), memory stick, floppy disk, mechanical encoding device such as punch card or a protruding structure in a groove with instructions recorded thereon, and any suitable combination of the above. Computer readable storage medium as used herein should not be interpreted as a temporary signal itself, such as radio waves or other free propagating electromagnetic waves, electromagnetic waves propagated by waveguides or other transmission media (e.g., light pulses transmitted by optical fiber cables) or electrical signals emitted by wires.

[0052] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network), or downloaded to an external computer or external storage device. The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network, and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.

[0053] The computer-readable program instructions for performing the operation of the present invention can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, configuration data of integrated circuits, or source code or object code written in any combination of one or more programming languages, and programming languages ​​include object-oriented programming languages ​​(such as Smalltalk, C++, etc.) and process programming languages ​​(such as "C" programming languages ​​or similar programming languages). Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the latter case, the remote computer can be connected to the user's computer through any type of network (including a local area network (LAN) or a wide area network (WAN)), or can be connected to an external computer (for example, using an Internet service provider through the Internet). In certain embodiments, the electronic circuit including, for example, a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA) can be personalized to perform computer-readable program instructions by utilizing the state information of the computer-readable program instructions to personalize the electronic circuit, so as to perform various aspects of the present invention.

[0054] Aspects of the present invention will be described below with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to an embodiment of the present invention. It will be appreciated that each frame of the flowchart and / or block diagram and the combination of each frame in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0055] These computer-readable program instructions may be provided to a processor of a computer or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device create a device for implementing the functions / actions specified in the box or multiple boxes of the flowchart and / or block diagram. These computer-readable program instructions may also be stored in a computer-readable storage medium, which instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable storage medium in which the instructions are stored includes an article of manufacture, which includes instructions for implementing aspects of the functions / actions specified in the box or multiple boxes in the flowchart and / or block diagram.

[0056] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable apparatus, or other device implement the functions / actions specified in a box or multiple boxes in the flowchart and / or block diagram.

[0057] The flow chart and block diagram in the accompanying drawings show the architecture, function and operation of the possible implementation of the system, method and computer program product according to different embodiments of the present invention.To this end, each frame in the flow chart or block diagram may represent a part, segment or module of an instruction, which includes one or more executable instructions for realizing the specified logical function.In some replaceable implementations, the function marked in the frame may not occur in the order marked in the figure.For example, the two frames shown in succession can actually be completed as a step, and are executed simultaneously, substantially simultaneously, in a partially or completely overlapping manner in time, or sometimes these frames can be executed in reverse order, depending on the functions involved.It should also be noted that each frame in the block diagram and / or flow chart and the combination of frames in the block diagram and / or flow chart can be realized with a dedicated hardware-based system that performs a combination of specified functions or actions or performs special hardware and computer instructions.

[0058] The programs described herein are identified based on the applications implemented in the specific embodiments of the invention. However, it is understood that any specific program terms are used herein only for convenience, and thus the present invention should not be limited to use only in any specific application identified and / or implied by such terms.

[0059] Figure 1 A block diagram of a computing system, generally designated 100 , is shown for a key management system 150 . The key management system 150 includes a key management subsystem 101 and a cryptographic coprocessor 102 .

[0060] As an example, the key management subsystem 101 includes a policy enforcement unit 103, a driver unit 104, and a key attribute storage 110. The policy enforcement unit 103 is responsible for reading, writing, and recording encryption policy settings. The driver unit 104 allows access to the encryption coprocessor 102. As exemplarily depicted, the driver unit 104 is equipped with an attribute box 105, which includes a key identifier 106, an attribute sequence 107, a placeholder message authentication code (MAC) field 108, and a placeholder encryption salt value field 109. The placeholder MAC field 108 and the placeholder encryption salt value field 109 can store MAC and encryption salt values, respectively. The attribute sequence 107 can include multiple attributes associated with the encryption key identified by the key identifier 106. For example, attributes can be stored in the attribute sequence 107 as a Boolean sequence, a bit mask, an integer, an array, or a variable length field. Attributes describe different attributes of an encryption key. The key attribute storage 110 stores multiple keys and their associated attributes. The key attribute store 110 stores, among other attribute groups, a second set of attributes 111. The second set of attributes 111 may be associated with the cryptographic key referenced by the key identifier 106.

[0061] The cryptographic coprocessor 102 includes an encryption unit 112, a key attribute storage 113, and a public whitelist service 115. The key attribute storage 113 is capable of performing various cryptographic functions, such as encrypting and signing data. The key attribute storage 113 included in the cryptographic coprocessor 102 stores various cryptographic keys and their associated attributes. The key attribute storage 113 stores, in addition to other attribute groups, a first set of attributes 114 associated with the cryptographic keys. Even though the second set of attributes 111 and the first set of attributes 114 are both associated with the same cryptographic key, due to the storage capacity of the cryptographic coprocessor 102, the first set of attributes 114 includes fewer attributes than the second set of attributes 111 stored in the key attribute storage 110 by the key management subsystem 101.

[0062] Alternatively, public whitelist service 115 may run on a server independent of cryptographic coprocessor 102 and key management system 150 (which may be accessed via the Internet). Public whitelist service 115 stores a number of cryptographic hashes, where cryptographic hashes 116 are associated with cryptographic keys identified by key identifier 106.

[0063] Figure 2 Detailed description of the workflow 200 of the operation of a key management system (such as the key management system 150). The key management system may send a key identifier identifying an encryption key to an encryption coprocessor (step 201). In response to sending the key identifier, the key management system may receive a first set of attributes from the encryption coprocessor (step 202). The key management system now knows which attributes related to the encryption key are stored by the encryption coprocessor. The first set of attributes and the second set of attributes need to be set in a standardized form. To this end, the key management system serializes the first set of attributes and the second set of attributes into an attribute sequence and stores the attribute sequence in an attribute box (step 203). Serialization may be performed using an agreed upon standardized mechanism. This means that serializing the same attribute will always produce an attribute sequence with the same attribute order.

[0064] The key management system may send the attribute sequence to the encryption coprocessor (step 204). For example, the attributes may be sent to the encryption coprocessor according to the order of the attributes in the attribute sequence. In response to sending the attribute sequence, the key management system receives a first MAC and a salt value from the encryption coprocessor (step 205). In this example, the first MAC is calculated from the attribute sequence by the encryption coprocessor. The key management system stores the first MAC in a placeholder MAC field of the attribute box. The encryption coprocessor uses the salt value to calculate the first MAC. When verifying the first MAC, the salt value is required for verification purposes. Therefore, the key management system may store the salt value in a placeholder salt value field of the attribute box. The key management system may then verify the attribute box with the first MAC (step 206). As described later, there are different ways of how to verify the attribute box.

[0065] Figure 3 Detailed description of the workflow 300 of the operation of the key management system, wherein the key management system exemplarily uses a public whitelist service for verification. The first MAC allows verification of the integrity or correct version of the attribute stored in the attribute box. The key management system calculates a first encrypted hash (step 301). In this example, the key management system sends a key identifier to the public whitelist service (step 302). The public whitelist server can be implemented by an Internet service running on a server connected to the Internet. In response to sending the key identifier to the public whitelist service, the key management system receives a second encrypted hash from the public whitelist service (step 303). According to this example, the key management system then compares the first encrypted hash with the second encrypted hash (step 304). If the first encrypted hash and the second encrypted hash are equal, the verification is successful (step 305). Therefore, it is confirmed that the attribute sequence from the attribute box stored by the key management system is the same as the attribute sequence associated with the key identifier by the public whitelist service. If the first encrypted hash is not equal to the second encrypted hash, the verification is unsuccessful (step 306).

[0066] According to some embodiments, the second cryptographic hash as sent by the whitelist service may be a partial cryptographic hash. This means that the whitelist service does not send the full hash, but only selected bits of the second cryptographic hash. The key management system may then compare these sent bits with the bits at corresponding positions of the first cryptographic hash. In this way, the key management system may perform verification without fully receiving the second cryptographic hash. The second cryptographic hash is not fully disclosed to other users of the key management system or the whitelist service. This is a privacy protection feature that may prevent abuse of the second cryptographic hash.

[0067] Figure 44 is a flowchart detailing a workflow 400 of the operation of a key management system, wherein the key management system uses an encryption coprocessor for verification. As an example, the key management system sends a key identifier to the encryption coprocessor (step 401). In response to sending the key identifier, the key management system receives a third set of attributes from the encryption coprocessor (step 402). The third set of attributes may include attributes associated with the key identifier by the encryption coprocessor. The key management system checks whether a subset of attributes from an attribute sequence is consistent with the third set of attributes (step 403). According to this example, the key management system determines that attributes from the third set of attributes that match attributes from the attribute sequence relative to attribute type also match these attributes relative to the values ​​of these attributes. If this is not the case, this means that the encryption coprocessor stores attributes that are different from the expected attributes associated with the key identifier, and verification fails (step 410).

[0068] If the attributes from the third set of attributes are consistent with the attributes from the attribute sequence, the verification process continues. The key management system sends the attribute sequence from the attribute box to the encryption coprocessor (step 405). Together with the attribute sequence, the key management system may also send an encryption salt value to the encryption coprocessor. In response to sending the attribute sequence, the key management system receives a second encrypted hash from the encryption coprocessor (step 406). The key management system calculates the first encrypted hash based on the first MAC (step 407). The key management system then compares the first encrypted hash with the second encrypted hash (step 408). According to this example, if the first encrypted hash and the second encrypted hash are equal, the verification is successful (step 409). A successful comparison confirms the integrity of the attributes in the attribute box. If the first encrypted hash is not equal to the second encrypted hash, the verification is unsuccessful (step 410).

[0069] Figure 5 5 is a flowchart detailing a workflow 500 of the operation of a cryptographic coprocessor, such as cryptographic coprocessor 102. As an example, the cryptographic coprocessor may receive a key identifier from a key management system (step 501). In response to receiving the key identifier from the key management system, the cryptographic coprocessor may send a first set of attributes to the key management system (step 502). Exemplarily, the first set of attributes is stored in a key attribute storage of the cryptographic coprocessor. The cryptographic coprocessor may load the first set of attributes from the key attribute storage. In response to sending the first set of attributes to the key management system, the cryptographic coprocessor receives a sequence of attributes from the key management system (step 503).

[0070] According to this example, the cryptographic coprocessor verifies whether a subset of the attributes from the attribute sequence is consistent with the first set of attributes (step 504). Verification can be performed by checking that the attributes from the first set of attributes (which match the attributes from the attribute sequence relative to the attribute type) also match these attributes relative to the value of the attribute. If this is not the case, it can be concluded that the key management system does not use the same attributes as the cryptographic coprocessor in conjunction with the key identifier and its associated key. Verification fails and the cryptographic coprocessor notifies the key management system (step 505). If verification is successful, the cryptographic coprocessor calculates the first MAC based on the attribute sequence (step 506). In order to calculate the first MAC, the cryptographic coprocessor can randomly generate a salt value. The cryptographic coprocessor can use the salt value to generate the first MAC. This can help prevent attacks that perform a reverse lookup of the first MAC. After generating the first MAC, the cryptographic coprocessor can send the first MAC to the key management system (step 507).

[0071] Figure 6 600 is a flowchart detailing the operation of the cryptographic coprocessor during verification. The cryptographic coprocessor illustratively receives a key identifier from the key management system again (step 601). At this point, the key identifier is received for the purpose of verification. As an example, the cryptographic coprocessor can obtain a third set of attributes from its internal storage based on the key identifier. It is expected that the third set of attributes includes the same attributes as the first set of attributes, unless the data in the key attribute storage of the cryptographic coprocessor has changed. The cryptographic coprocessor can send the third set of attributes to the key management system (step 602). The key management system can then verify the integrity of the third set of attributes. In response to sending the third set of attributes to the key management system, the cryptographic coprocessor receives the attribute sequence from the key management system again (step 603). The cryptographic coprocessor verifies whether a subset of the attributes from the attribute sequence is consistent with the third set of attributes (step 604). According to this example, verification is performed by checking that the attributes from the third set of attributes that match the attributes from the attribute sequence relative to the attribute type also match these attributes relative to the value of the attribute. If this is not the case, it can be concluded that the key management system does not use the same attributes as the cryptographic coprocessor in conjunction with the encryption key. The verification fails and the cryptographic coprocessor notifies the key management system that the verification failed (step 605). This also means that the verification of the attribute box failed. If the verification succeeds, the cryptographic coprocessor can calculate a second MAC based on the attribute sequence (step 606). Subsequently, the cryptographic coprocessor can calculate a second encrypted hash from the second MAC (step 607). The cryptographic coprocessor then sends the second encrypted hash to the key management system (step 608). According to this example, the key management system can then compare the first encrypted hash with the second encrypted hash to complete the verification process.

[0072] Figure 7 Depicted is a computer system 700, which is an example of a system substantially similar to the key management system 150. The computer system 700 includes a processor 701, a cache 703, a memory 702, a persistent storage 705, a communication unit 707, an input / output (I / O) interface 706, and a communication fabric 704. The communication fabric 704 provides communications between the cache 703, the memory 702, the persistent storage 705, the communication unit 707, and the input / output (I / O) interface 706. The communication fabric 704 can be implemented with any architecture designed to pass data and / or control information between a processor (such as a microprocessor, a communication and network processor, etc.), a system memory, peripheral devices, and any other hardware components within the system. For example, the communication fabric 704 can be implemented using one or more buses or crossbar switches.

[0073] Memory 702 and persistent storage 705 are computer-readable storage media. In this embodiment, memory 702 includes random access memory (RAM). In general, memory 702 may include any suitable volatile or non-volatile computer-readable storage medium. Cache 703 is a fast memory that enhances the performance of processor 701 by saving recently accessed data from memory 702 and data near recently accessed data.

[0074] Program instructions and data for implementing embodiments of the present invention may be stored in persistent storage 705 and memory 702 for execution by one or more of the respective processors 701 via cache 703. In an embodiment, persistent storage 705 includes a magnetic hard drive. Alternatively, or in addition to a magnetic hard drive, persistent storage 705 may include a solid-state hard drive, a semiconductor memory device, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), flash memory, or any other computer-readable storage medium capable of storing program instructions or digital information.

[0075] The media used by persistent storage 705 may also be removable. For example, a removable hard drive may be used for persistent storage 705. Other examples include optical and magnetic disks, thumb drives, and smart cards that are inserted into a drive for transfer to another computer-readable storage medium that is also part of permanent storage 705.

[0076] In these examples, communication unit 707 provides communications with other data processing systems or devices. In these examples, communication unit 707 includes one or more network interface cards. Communication unit 707 can provide communications using physical and / or wireless communication links. Program instructions and data for implementing embodiments of the present invention can be downloaded to persistent storage 705 via communication unit 707.

[0077] The I / O interface 706 allows the input and output of data with other devices that can be connected to each computer system. For example, the I / O interface 706 can provide a connection to an external device 708 (such as a keyboard, a keypad, a touch screen and / or some other suitable input device). The external device 708 can also include a portable computer readable storage medium, such as, for example, a thumb drive, a portable optical disk or disk, and a memory card. The software and data for implementing an embodiment of the present invention can be stored on this portable computer readable storage medium and can be loaded into the persistent storage 705 through the I / O interface 706. The I / O interface 706 is also connected to a display 709.

[0078] Display 709 provides a mechanism for displaying data to a user and may be, for example, a computer monitor.

Claims

1. A key management system capable of storing cryptographic keys and attributes associated with the cryptographic keys, wherein: The key management system is configured to: sending a key identifier identifying the encryption key to the encryption coprocessor; receiving, in response to sending the key identifier, a first set of attributes from the cryptographic coprocessor, wherein one or more attributes of the first set of attributes are associated with the cryptographic key and originate from a key attribute store of the cryptographic coprocessor; serializing the first set of attributes and the second set of attributes into a first attribute sequence; storing the first attribute sequence in an attribute box, wherein one or more attributes in the second set of attributes are associated with the encryption key, the one or more attributes in the second set of attributes are derived from a key attribute store of the key management system, and the second set of attributes is different from the first set of attributes; sending the first sequence of attributes from the attributes box to the cryptographic coprocessor; In response to sending the first attribute sequence, receiving from the cryptographic coprocessor a first message authentication code MAC calculated from the first attribute sequence; and The attribute box is validated by comparing the first MAC or a value derived from the first MAC with a reference value.

2. The key management system of claim 1, the system being further configured to send the one or more attributes from the first sequence of attributes to the cryptographic coprocessor in consecutive calls to cause the cryptographic coprocessor to iteratively calculate the first MAC.

3. The key management system of claim 1 , the system being further configured to: construct a placeholder MAC field in the attribute box, and store the first MAC iteratively calculated by the encryption coprocessor and received from the encryption coprocessor in the constructed placeholder MAC field.

4. A key management system according to claim 1, wherein the system is further configured to: construct a placeholder encryption salt value field in the attribute box, receive an encryption salt value generated by the encryption coprocessor from the encryption coprocessor in response to sending the first attribute sequence as an input for calculating the first MAC, and store the encryption salt value in the placeholder encryption salt value field.

5. The key management system according to claim 1 is further configured to serialize the first set of attributes and the second set of attributes into the first attribute sequence according to a standardized mechanism, and to send the one or more attributes from the first attribute sequence to the encryption coprocessor according to an order of the one or more attributes within the first attribute sequence.

6. The key management system of claim 5, the normalization mechanism being dependent on characteristics of the one or more attributes being serialized, the attributes being selected from the group consisting of attribute values ​​and attribute types.

7. The key management system according to claim 1, wherein: Verify that the Properties box includes: sending the first attribute sequence from the attribute box to the encryption coprocessor again; Calculating a first encrypted hash based on the first MAC; receiving a second encrypted hash from the cryptographic coprocessor as the reference value in response to sending the first attribute sequence again; and The first encrypted hash is compared to the second encrypted hash to verify the attribute box.

8. The key management system according to claim 7, wherein: Verifying that the properties box further comprises: sending the key identifier to the cryptographic coprocessor again; receiving, in response to sending the key identifier, a third set of attributes from the cryptographic coprocessor, wherein one or more attributes of the third set of attributes are associated with the cryptographic key and originate from the key attribute store of the cryptographic coprocessor; and A subset of attributes from the first sequence of attributes is validated to be consistent with the third set of attributes, and validation of the attribute box is stopped if validation of the subset is unsuccessful.

9. A computer program product for operating a key management system, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions being executable by a processor to cause the processor to: sending a key identifier identifying the encryption key to the encryption coprocessor; In response to sending the key identifier, receiving a first set of attributes from the cryptographic coprocessor, wherein: One or more attributes of the first set of attributes are associated with the cryptographic key and originate from a key attribute store of the cryptographic coprocessor; serializing the first set of attributes and the second set of attributes into a first attribute sequence; storing the first attribute sequence in an attribute box, wherein one or more attributes in the second set of attributes are associated with the encryption key, the one or more attributes in the second set of attributes are derived from a key attribute store of the key management system, and the second set of attributes is different from the first set of attributes; sending the first sequence of attributes from the attributes box to the cryptographic coprocessor; In response to sending the first attribute sequence, receiving from the cryptographic coprocessor a first message authentication code MAC calculated from the first attribute sequence; and The attribute box is validated by comparing the first MAC or a value derived from the first MAC with a reference value.

10. The computer program product of claim 9, the program instructions further configured to send the one or more attributes from the first sequence of attributes to the cryptographic coprocessor in consecutive calls to cause the cryptographic coprocessor to iteratively calculate the first MAC.

11. The computer program product of claim 9, the program instructions further configured to construct a placeholder MAC field in the attribute box, and store the first MAC iteratively calculated by and received from the encryption coprocessor in the constructed placeholder MAC field.

12. The computer program product of claim 9, wherein the program instructions are further configured to construct a placeholder encryption salt value field in the attribute box, receive from the encryption coprocessor an encryption salt value generated by the encryption coprocessor as input for calculating the first MAC in response to sending the first attribute sequence, and store the encryption salt value in the placeholder encryption salt value field.

13. A method for operating a key management system, the method comprising: sending a key identifier identifying the encryption key to the encryption coprocessor; receiving, in response to sending the key identifier, a first set of attributes from the cryptographic coprocessor, wherein one or more attributes of the first set of attributes are associated with the cryptographic key and originate from a key attribute store of the cryptographic coprocessor; serializing the first set of attributes and the second set of attributes into a first attribute sequence; storing the first sequence of attributes in an attribute box, wherein one or more attributes from the second set of attributes are associated with the encryption key, the one or more attributes in the second set of attributes originate from a key attribute store of the key management system, and the second set of attributes is different from the first set of attributes; sending the first sequence of attributes from the attributes box to the cryptographic coprocessor; In response to sending the first attribute sequence, receiving from the cryptographic coprocessor a first message authentication code MAC calculated from the first attribute sequence; and The attribute box is validated by comparing the first MAC or a value derived from the first MAC with a reference value.

14. The method of claim 13, further configured to send the one or more attributes from the first sequence of attributes to the cryptographic coprocessor in consecutive calls to cause the cryptographic coprocessor to iteratively calculate the first MAC.

15. The method of claim 13, further configured to construct a placeholder MAC field in the attribute box, and store the first MAC iteratively calculated by the encryption coprocessor and received from the encryption coprocessor in the constructed placeholder MAC field.

16. The method of claim 13, further configured to construct a placeholder encrypted salt value field in the attribute box, receive an encrypted salt value generated by the encryption coprocessor from the encryption coprocessor in response to sending the first attribute sequence as input for calculating the first MAC, and store the encrypted salt value in the placeholder encrypted salt value field.

17. The method according to claim 13 is further configured to serialize the first set of attributes and the second set of attributes into the first attribute sequence according to a standardized mechanism, and to send the one or more attributes from the first attribute sequence to the encryption coprocessor according to the order of the one or more attributes within the first attribute sequence.

18. The method of claim 17, the normalization mechanism being dependent on characteristics of the one or more attributes being serialized, the attributes being selected from the group consisting of attribute values ​​and attribute types.

19. The method according to claim 13, wherein: Verify that the Properties box includes: sending the first attribute sequence from the attribute box to the encryption coprocessor again; Calculating a first encrypted hash based on the first MAC; receiving a second encrypted hash from the cryptographic coprocessor as the reference value in response to sending the first attribute sequence again; and The first encrypted hash is compared to the second encrypted hash to verify the attribute box.

20. The method according to claim 19, wherein: Verifying that the properties box further comprises: sending the key identifier to the cryptographic coprocessor again; receiving, in response to sending the key identifier, a third set of attributes from the cryptographic coprocessor, wherein one or more attributes of the third set of attributes are associated with the cryptographic key and originate from the key attribute store of the cryptographic coprocessor; and A subset of attributes from the first sequence of attributes is validated to be consistent with the third set of attributes, and validation of the attribute box is stopped if validation of the subset is unsuccessful.

Citation Information

Patent Citations

  • Serializing method, device and processor

    CN103425632A

  • Software encryption method and device

    CN107967413A