Agile password deployment service
Through the Agile Cryptography Protocol, the computer system and the server computer negotiate to generate session keys and update the cryptographic software modules, which solves the problem of difficult updates in existing cryptographic systems, and achieves fast and secure protocol updates and performance adaptation, resisting future attacks.
Patent Information
- Application Number
- CN202280025810.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-30
- Filing Date
- 2022-02-02
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-02-02
AI Technical Summary
Existing cryptographic systems are difficult to update or replace quickly in the face of advancements in computer technology, which threatens security, especially when coordinating the updating of cryptographic protocols across multiple computer systems in large systems, which is difficult and time-consuming.
The agile cryptographic protocol is adopted to generate session keys through negotiation between the computer system and the server computer, and to encrypt messages using key derivation functions and key encapsulation mechanisms. At the same time, the protocol file is updated to identify new or different cryptographic software modules to ensure security and performance requirements.
It enables computer systems and server computers to update cryptographic protocols quickly and automatically, improving security, resisting future attacks such as quantum computing, adapting to changes in performance requirements, and reducing the complexity and time of system updates.
Smart Images

Figure CN117157938B_ABST
Abstract
Description
[0001] Cross-referencing related applications
[0002] This application is an international patent application claiming the benefit of U.S. Patent Application No. 63 / 167,927, filed on March 30, 2021, which is incorporated herein by reference in its entirety for all purposes. Background Technology
[0003] Cryptography is commonly used to implement secure digital communication between computers, particularly over networks such as the Internet. Typically, computer systems possess cryptographic keys that can be used to encrypt messages, decrypt messages, and digitally sign documents. These keys correspond to underlying cryptographic systems such as RSA, 3DES, and AES. For secure message transmission, both the encrypting computer (sender) and the decrypting computer (receiver) need to possess the relevant cryptographic keys and the ability to execute cryptographic operations according to the cryptographic system corresponding to those keys.
[0004] While most cryptographic systems in use today are secure or extremely difficult to break, there is no guarantee that they will remain secure in the future. New developments in computer technology could render these systems insecure. For example, known quantum algorithms (e.g., Shor's algorithm) exist that can be used to factor integers in polynomial time. Once a sufficiently powerful quantum computer is created, these algorithms could be used to break cryptographic systems such as RSA, rendering such systems (and system-based communications) insecure.
[0005] Therefore, it is sometimes desirable to periodically update or replace the cryptographic systems or keys used to perform encryption and decryption. However, this can be difficult due to the coordinated nature of cryptographic processes. In a cryptographically secure communication network, each participant may need to update its corresponding cryptographic software in order to continue communicating over the network. Therefore, it is often difficult or time-consuming for a computer or its operator to modify the cryptographic protocols used for secure communication. This difficulty is even greater in large systems, where there may be thousands or millions of computer systems that need to update their corresponding cryptographic communication protocols.
[0006] The embodiments individually and collectively address these and other problems. Summary of the Invention
[0007] Some embodiments of this disclosure relate to methods for securely sending messages using agile cryptographic protocols. Other embodiments further relate to efficient and convenient methods for modifying and updating these cryptographic protocols, for example, based on the security or performance requirements of a computer system or network.
[0008] As an example, a computer system (or "client computer") may possess messages intended for use by a server computer. These messages may include sensitive information, such as login information for services provided by the server computer, sensitive medical records, payment account information, etc. The computer system and the server computer may agree on a specific cryptographic protocol to use when communicating securely with each other. This cryptographic protocol may be defined or identified by protocol files stored by the computer system and the server computer. The protocol files may identify one or more cryptographic software modules to generate one or more shared secrets, which can then be used to derive a session key. Using the session key, the computer system can encrypt the message. The computer system can then send the message to the server computer, which can use a similar process to derive the session key and decrypt the message.
[0009] Later, the computer system and server computer can update the cryptographic protocols used to encrypt and decrypt messages. This update process can be performed, for example, if the cryptographic protocol is found to be insecure, or if the computer system has performance requirements (e.g., the computer system may have high message throughput and may require a faster encryption protocol). As part of this update process, the server computer can send additional cryptographic software modules to the computer system. These additional cryptographic software modules can be digitally signed, allowing the computer system to verify that they originate from the server computer and are not from an imposter. Additionally, the computer system and server computer can modify their respective protocol files to identify new or different cryptographic software modules that can be used to generate shared secrets and session keys. For example, the protocol file can be updated to identify additional software modules received from the server computer and exclude those found to be insecure.
[0010] One embodiment relates to a method performed by a computer system for securely transmitting messages. The computer system may identify one or more cryptographic software modules based on a computer system protocol file, wherein the one or more cryptographic software modules are a subset of a library of cryptographic software modules stored on the computer system. The computer system may generate one or more shared secrets corresponding to the one or more cryptographic software modules. The computer system may generate a session key using a key derivation function and the one or more shared secrets. The computer system may encrypt a message using the session key to generate an encrypted message. The computer system may send a message packet including the encrypted message and a computer system identifier to a server computer. The server computer may be configured to use the computer system identifier to identify a server computer protocol file, generate one or more shared secrets, generate a session key, and decrypt the encrypted message. Subsequently, the computer system may update the computer system protocol file to identify additional cryptographic software modules besides the one or more cryptographic software modules. The computer system may additionally send a protocol update message to the server computer. The protocol update message may indicate that the computer system protocol file has been updated. The protocol update message may include a computer system identifier for the server computer to use to identify the server computer protocol file to be updated.
[0011] Another embodiment relates to a method for securely transmitting messages, executed by a server computer. The server computer can receive a message packet from a computer system, including an encrypted message and a computer system identifier. The encrypted message may be encrypted using a session key generated by the computer system using a key derivation function and one or more shared secrets generated using one or more cryptographic software modules. The server computer may identify a server computer protocol file based on the computer system identifier and generate one or more shared secrets corresponding to the server computer protocol file. The server computer may generate a session key using the key derivation function and one or more shared secrets, and use the session key to decrypt the encrypted message to retrieve the message. Subsequently, the server computer may send an additional cryptographic software module to the computer system. The additional cryptographic software module may include a digital signature. The computer system may be configured to verify the additional cryptographic software module by verifying the digital signature using a public key corresponding to the manufacturer of the server computer, certificate authority, or trusted execution environment device. The computer system may also add the additional cryptographic software module to a cryptographic software module library.
[0012] These and other embodiments of this disclosure are described in detail below. For example, other embodiments relate to systems, apparatuses, and computer-readable media associated with the methods described herein.
[0013] the term
[0014] A "server computer" can include a powerful computer or cluster of computers. For example, a server computer can include a mainframe, a small cluster of computers, or a group of servers operating as a single unit. In one example, a server computer can include a database server coupled to a web server. A server computer can include one or more computing devices and can use any of a variety of computing architectures, arrangements, and compilations to serve requests from one or more client computers.
[0015] "Memory" can include any suitable one or more devices capable of storing electronic data. Suitable memory can include non-transient computer-readable media storing instructions executable by a processor to implement the desired method. Examples of memory include one or more memory chips, disk drives, etc. Such memory can be operated using any suitable electrical, optical, and / or magnetic modes of operation.
[0016] "Processor" can include any suitable one or more data computing devices. A processor can include one or more microprocessors that work together to achieve a desired function. A processor can include a CPU, which includes at least one high-speed data processor sufficient to execute program components for performing user and / or system-generated requests. A CPU can be a microprocessor, such as AMD's Athlon, Duron, and / or Opteron; IBM and / or Motorola's PowerPC; IBM and Sony's Cell processors; Intel's Celeron, Itanium, Pentium, Xenon, and / or XScale; and / or similar processors.
[0017] An "identifier" can include data used to identify something. This can include data used to identify objects, entities (e.g., personal or business entities), computer systems, transactions, methods, etc.
[0018] A "key pair" can include a pair of linked cryptographic keys. For example, a key pair can include a public key and a corresponding private key. In a key pair, the first key (e.g., the public key) can be used to encrypt a message, while the second key (e.g., the private key) can be used to decrypt the encrypted message. Additionally, the public key can be used to verify digital signatures created using the corresponding private key. The public key can be distributed throughout the network to enable verification of messages signed using the corresponding private key. The public and private keys can be in any suitable format, including formats based on RSA, elliptic curve cryptography (ECC), or any applicable post-quantum cryptography scheme (e.g., NTRU).
[0019] A "digital signature" can include any electronic signature used for a message. A digital signature can be a numeric data value, an alphanumeric data value, or any other type of data. In some embodiments, a digital signature can be a unique data value generated from the message (or data block) and a private key using a cryptographic algorithm. In some embodiments, a verification algorithm using a public key can be used to verify the signature. A digital signature can be used to prove the authenticity of the sender.
[0020] A “user” can be any user of an object or service. This can include users of “mobile devices” such as smartphones, or users of payment cards (e.g., credit cards or debit cards). A user can be associated with one or more personal accounts (e.g., payment accounts) or user devices. A user can be referred to as a “cardholder” (when owning or using a payment card), an account holder (when owning or using an account), or a consumer (when using goods or services provided by a trusted entity or resource provider).
[0021] "Resource provider" can include any suitable entity that provides resources (e.g., goods, services, access to secure data, access to location, etc.) to other entities, such as users. For example, a resource provider could be a merchant, venue operator, building owner, government entity, etc. A "merchant" is typically an entity that participates in a transaction and can sell goods or services or provide access to goods or services.
[0022] "User device" or "mobile device" can include any suitable electronic device that a user can transport and operate, and that also provides the ability to communicate remotely with a network. Mobile communication devices can communicate using mobile phone (wireless) networks, wireless data networks (e.g., 3G, 4G, or similar networks), Wi-Fi, Bluetooth, Bluetooth Low Energy (BLE), Wi-Max, or any other communication medium that provides access to a network (e.g., the Internet or a private network). Examples of mobile devices include mobile phones (e.g., cellular phones), PDAs, tablet computers, netbooks, laptops, wearable devices (e.g., watches), vehicles such as cars and motorcycles, personal music players, handheld dedicated readers, etc. Mobile devices can include any suitable hardware and software for performing such functions, and can also include multiple devices or components (e.g., two devices used together can be considered a single mobile device when the device remotely accesses a network by sharing the network with another device (i.e., using said other device as a modem)).
[0023] A "software module" can include any instructions or code used to perform a specific function. A software module can be part of a software application that comprises multiple software modules. A software module can include code written in an interpreted language or a scripting language. This code can be executed or run by the software application to perform the required methods or functions.
[0024] A "data file" can include any finite element of digital data or information stored on a computer system. Data files can be organized into a computer submission system or another data structure, such as a database.
[0025] A "library" can include a collection of non-volatile resources used by a software application. These non-volatile resources can include, for example, software modules used by the software application.
[0026] A “shared secret” can include a secret value (e.g., a number) that is known or derived by two or more parties and kept secret by those parties. A shared secret can be used in cryptographic processes to derive another cryptographic value, such as a symmetric cryptographic key used to perform encryption and decryption of messages sent between parties.
[0027] A "key derivation function" can include any function used to derive a cryptographic key. A key derivation function can take one or more inputs and produce a cryptographic key corresponding to a specific underlying cryptographic system (e.g., AES). These inputs can include, for example, a seed value and a cryptographic salt or random numbers. Key derivation functions can be consistent, meaning that a key derivation function will produce the same cryptographic key when given the same inputs.
[0028] The "key encapsulation mechanism" may include encryption techniques designed to use asymmetric cryptographic algorithms to protect the symmetric cryptographic key used for transmission. Using an "encapsulation function" and a public cryptographic key, a computer system can generate an "encapsulation" of data elements containing encapsulated cryptographic material (e.g., the symmetric cryptographic key). This encapsulation can be sent to a receiving computer, which can then decapsulate the encapsulation using a dedicated cryptographic key to recover the encapsulated cryptographic material. The encapsulation can be generated using post-quantum techniques, such as those that prevent a sufficiently powerful quantum computer from "cracking" the encapsulation and obtaining the encapsulated cryptographic material.
[0029] A “credential” can include any data that proves some aspect of an entity. This data may include, for example, a password indicating that the entity has the right to access a specific service. Another example of a credential is a payment account (or PAN) that an entity uses to authorize payments from its payment account. Credentials can be issued to the entity by a third party, such as a financial institution.
[0030] A "Certificate Authority" can be an entity that issues digital certificates. A digital certificate proves ownership of data (such as a public key) through a specified subject line. This allows other parties to rely on signatures or assertions made about a private key corresponding to a certified public key. A Certificate Authority can act as a trusted third party. Attached Figure Description
[0031] Figure 1 An exemplary system block diagram of an agile cryptography deployment service according to some embodiments is shown.
[0032] Figure 2 A flowchart corresponding to an overview of a method according to some embodiments is shown.
[0033] Figure 3 A system diagram corresponding to the registration process according to some embodiments is shown.
[0034] Figure 4 A sequence diagram of a secure communication process according to some embodiments is shown.
[0035] Figure 5 A system diagram of a secure communication process according to some embodiments is shown.
[0036] Figure 6 A sequence diagram of a cryptographic deployment process according to some embodiments is shown.
[0037] Figure 7 A system diagram of a cryptographic deployment process according to some embodiments is shown.
[0038] Figure 8 An exemplary computer system according to some embodiments is shown. Detailed Implementation
[0039] As described above, the embodiments relate to securely sending messages using flexible, cryptographically agile protocols. The embodiments can be used with various applications, computer configurations, and network architectures, such as client-server architectures, where a computer system (sometimes referred to as a "client computer") can operate client applications and communicate with a server computer. The server computer can provide computing resources used by the client applications. As an example of a potential application of the embodiments, the client application operating on the computer system can be a software application for performing point-of-sale operations (particularly operations related to processing payments). As part of these point-of-sale operations, the computer system may periodically send messages to the server computer. These messages may include, for example, payment information, such as a payment account (PAN), or login information used by the client application to access computing resources stored on the server computer.
[0040] Because the messages sent may include proprietary or other sensitive information, the computer system may need to encrypt them before sending them to the server computer. The computer system can encrypt the messages according to a cryptographic protocol already negotiated between the computer system and the server computer. This cryptographic protocol can be defined by a cryptographic protocol file and a data file identifying the cryptographic software modules (from a cryptographic software library). This data file can be used to encrypt the messages, enabling them to be securely sent and decrypted by the server computer. The computer system can use one or more cryptographic software modules identified by the protocol file to generate one or more secret shares, which can then be used to generate a session key for encrypting the messages. These secret shares may include cryptographic keys corresponding to their underlying cryptographic software modules. For example, a secret share generated using an RSA software module may include an RSA cryptographic key. The session key can be derived using a hybrid key derivation function that takes a shared secret as input and produces a session key as output.
[0041] After encrypting the message with the session key, the computer system can generate a message packet containing the encrypted message and the computer system identifier. The computer system can then send the message packet to the server computer. Using the computer system identifier, the server computer can determine the cryptographic protocol used by the computer system to encrypt the message. The server computer can then generate a session key according to the relevant cryptographic protocol using a method similar to that used by the computer system. The server computer can then use the session key to decrypt the encrypted message.
[0042] In some embodiments, the computer system and the server computer can use a key encapsulation mechanism to enable the server computer to decrypt encrypted messages. Broadly speaking, the computer system can use one or more public keys (corresponding to one or more cryptographic software modules used to generate secret shares) to generate one or more encapsulations corresponding to one or more secret shares used to generate a session key. The computer system can send these encapsulations to the server computer in a message packet or any subsequent message or packet. The server computer can decapsulate these encapsulations using a decapsulation function and one or more corresponding cryptographic keys (e.g., private keys corresponding to one or more public keys). In this way, the server computer can obtain the secret shares and use them to generate a session key, which can then be used to decrypt encrypted messages.
[0043] The server computer can possess a protocol file corresponding to the computer system associated with the received computer system identifier. This protocol file, referred to as the "server computer protocol file," can be stored in a database. The server computer can use the computer system identifier to look up the server computer protocol file in the database. The server computer can then generate a session key according to the cryptographic protocol defined by the server computer protocol file and decrypt the encrypted message. The server computer protocol file can be one of many, and each server computer protocol can correspond to a different client computer and client computer protocol file.
[0044] Sometimes, computer systems and server computers may need to update the cryptographic protocols used to securely send messages. For example, a cryptographic protocol can be updated if one or more cryptographic software modules used to generate session keys are found to be insecure. This can happen if advancements in computer technology lead to new cryptographic attacks that could potentially break the underlying cryptographic system (e.g., the development of reliable quantum computers). As another example, a cryptographic protocol can be updated if a computer system has specific performance requirements. Computer systems that send messages at high rates may require cryptographic protocols that encrypt or decrypt messages faster than current ones; therefore, computer systems and server computers may update their cryptographic protocols to accommodate these requirements.
[0045] In summary, the update process may involve the server computer pre-configuring one or more additional cryptographic software modules to the computer system, the computer system and server computer updating their respective protocol files, and the computer system and server computer testing the new cryptographic protocol.
[0046] As described above, as part of the update process, the server computer can send an additional cryptographic software module to the computer system. This additional cryptographic software module can be digitally signed by the server computer, a certificate authority, or a trusted execution environment device manufacturer. The computer system can use the digital signature to verify the legitimacy of the additional cryptographic software module. The computer system may include additional cryptographic software modules from a cryptographic software module library. It is worth noting that in some cases, the cryptographic protocol can be updated to use different software modules or combinations of software modules already available in the computer system's cryptographic software module library. Therefore, the step of sending the additional cryptographic software module to the computer system can be optional.
[0047] After the computer system (optionally) receives additional cryptographic software modules from the server computer, both the computer system and the server computer can update their respective protocol files. Note that the protocol file may identify the cryptographic software modules used to generate secret shares, which are subsequently used to generate session keys. The protocol file can be updated to change the cryptographic software modules identified in it. For example, the protocol file can be updated to identify additional cryptographic software modules received from the server computer. For example, if one or more of these cryptographic software modules have been proven insecure, the protocol file can also be updated to no longer identify one or more of these modules.
[0048] After the computer system receives any additional software modules and the protocol file is updated, both the computer system and the server computer can test the new cryptographic protocol to verify that they can securely transmit messages using the new protocol file. The computer system can generate a test message and then encrypt it according to the new cryptographic protocol (e.g., generating secret shares using newly identified cryptographic software modules, generating session keys using those secret shares, etc.). The computer system can then send the encrypted test message to the server computer. The server computer can decrypt the message according to the new cryptographic protocol and generate an indication message that can be sent back to the computer system. The computer system can evaluate the indication message to determine if the test was successful.
[0049] As an example, the indication message may include the original test message or a hash of the test message. The computer system can compare the indication message with the test message or the hash of the test message to determine whether the test was successful. Alternatively, the test message sent to the server computer can be an expected or known message. After decrypting the test message, the server computer can compare the decrypted test message with the expected test message. If they match, the server computer can send the indication message "true" back to the computer system. If they do not match, the server computer can send the message "false" back to the computer system. If the test is unsuccessful, the computer system and the server computer can renegotiate or otherwise modify the cryptographic protocol and try the test again. If the test is successful, the computer system and the server computer can use the updated cryptographic protocol to securely send any other messages sent by the computer system to the server computer.
[0050] The embodiments of this disclosure offer several advantages. Specifically, the use of computer system protocol files, server computer protocol files, and cryptographic software modules allows operators of computer systems and server computers to update their cryptographic communication protocols relatively quickly and easily in an automated, cryptographically agile manner. To modify a cryptographic protocol, both the computer system and the server computer can modify their respective protocol files to reflect the same changes in the cryptographic protocol. This contrasts with conventional systems, where cryptographic protocols are typically “hard-coded” into specific application or communication implementation schemes and are difficult or impossible to modify. The agility and automatic updating of cryptographic protocols are particularly valuable in large systems, such as payment processing networks, which may include a large number of merchant computer systems, each with its own corresponding cryptographic protocol. Furthermore, embodiments of this disclosure can help protect encrypted messages from future-designed cryptographic attacks or computer system types (e.g., quantum attacks or other unknown forms of cryptographic attacks), even systems designed to break or exploit mathematical or cryptographic assumptions. By enabling modifiable cryptographic protocols, the embodiments achieve secure, agile defense against mobile targets.
[0051] The remainder of this disclosure is organized as follows: Part I describes the following based on references. Figure 1 An exemplary system of an embodiment. Part II describes an overview of some methods according to the embodiments, including registration, encryption and decryption, and updating the cryptographic protocol (see reference). Figure 2 Part III Reference Figure 3 A more detailed description of the registration process is provided in Part IV. Figure 4 and 5 A more detailed description of encryption and decryption. See Part V for reference. Figure 6 and 7 The updated cryptographic protocol is described. Part VI describes the use of the new cryptographic protocol to encrypt and decrypt messages. Finally, Part VII refers to... Figure 8 A computer system is described according to some embodiments.
[0052] I. Overview of Cryptographically Agile Systems
[0053] Figure 1 A block diagram of a system according to some embodiments is shown. Any number of computer systems, such as computer systems 106 and 108, can communicate with application server 114 via their respective client applications (e.g., client applications 110 and 112). These computer systems may be owned or operated by operators such as operators 102 and 104. Application server 114 can be any suitable server, so the term "application" should not be considered a limitation in itself.
[0054] It should be understood that Figure 1The computers and other devices shown (e.g., computer systems 106-108, application server 114, carrier database 116, cryptographic server 118, etc.) can operationally communicate with each other through any suitable communication channel or communication network. Suitable communication networks may include any one and / or a combination of the following: direct interconnection; the Internet; local area network (LAN); metropolitan area network (MAN); Operational Mission as a Node on the Internet (OMNI); secure custom connection; wide area network (WAN); wireless network (e.g., using protocols such as, but not limited to, Wireless Application Protocol (WAP), I-mode, etc.), etc. Messages between computers, networks, and devices can be sent using secure communication protocols, such as, but not limited to, File Transfer Protocol (FTP); Hypertext Transfer Protocol (HTTP); Secure Hypertext Transfer Protocol, etc.
[0055] Computer systems 106 and 108 can use their respective client applications 110 and 112 to perform operations associated with the functionality of the client applications. For example, if the client applications correspond to point-of-sale applications, computer systems 106 and 108 can use client applications 110 and 112 to perform operations typically associated with point-of-sale terminals. Client applications 110 and 112 may primarily utilize computing resources (e.g., data, functions, code, memory, processing, etc.) stored, executed, or included on application server 114 rather than on computer systems 106 or 108. This configuration can be advantageous because it reduces the computational burden on computer systems 106 and 108 and enables computationally less powerful systems (e.g., smartphones, tablets, PDAs, etc.) to perform operations they typically cannot perform. As an example, computer systems 106 and 108 may include general-purpose portable computing devices (e.g., smartphones and tablets) that use client applications 110 and 112 to perform operations associated with conventional point-of-sale terminals, such as processing credit and debit card payments. In this example, operators 102 and 104 may include resource providers (e.g., merchants) who offer goods or services to customers in exchange for payment.
[0056] Operations performed by client applications 110 and 112 may include, for example, securely sending a message to application server 114. As an example, the message may include payment information, such as a Payment Account (PAN) used for transactions between an authorized resource provider operator and a customer. As another example, the message may include login information used by application server 114 to authenticate computer systems 106 and 108 before providing services to them (e.g., services associated with a point-of-sale system, account management services, etc.).
[0057] Computer systems 106 and 108 can use cryptography to securely send messages, for example, by encrypting those messages. Each computer system can use a specific cryptographic protocol to encrypt messages sent to application server 114. Computer systems 106 and 108 can use the same cryptographic protocol or different cryptographic protocols. Computer systems 106 and 108 can use different cryptographic protocols based on the specific cryptographic requirements or needs of their respective operators, or based on the hardware attributes or limitations of the computer systems. For example, computer system 106 may frequently send messages with relatively low security requirements (e.g., location data used in navigation-related client application 110), while computer system 108 may infrequently send messages with high security requirements (e.g., medical records used in healthcare-related client application 112). Therefore, operator 102 may prefer a fast cryptographic protocol even if its cryptographic security is somewhat lacking, while operator 104 may prefer a secure cryptographic protocol even if its processing speed is somewhat lacking.
[0058] Computer systems 106 and 108 may each store a corresponding computer system protocol file (e.g., protocol files 120 and 122), which defines the cryptographic protocols used by the respective computer systems. Protocol files 120 and 122 may be integrated into client applications 110 and 112, or they may exist independently. The cryptographic protocol files may identify one or more cryptographic software modules (e.g., cryptographic software modules 128 and 130) used to generate session keys for encrypting messages. Protocol files 120 and 122 may be modified to change the cryptographic software modules used to generate session keys, as described in Section V below. This may happen if, for example, one or more cryptographic software modules 128 and 130 are found to be insecure. Alternatively, the cryptographic protocols may be modified based on operator requirements. For example, if the message throughput of computer system 108 increases, operator 104 may require a faster cryptographic protocol to accommodate the increased message transmission rate.
[0059] Cryptographic software modules 128 and 130, identified by protocol documents 120 and 122, may include code for performing cryptographic operations, such as interpreted code (e.g., written in a language like JavaScript). Cryptographic software modules 128 and 130 may be sent to computer systems 106 and 108 by application server 114 during the registration phase (e.g., as described in Section III below). Additionally, cryptographic software modules 128 and 130 may be digitally signed by application server 114 or a certificate authority. A digital signature proves the legitimacy of the signed cryptographic software module. Computer systems 106 and 108 may include or otherwise store cryptographic software module libraries 124 and 126 to store cryptographic software modules 128 and 130. In some embodiments, computer systems 106 and 108 may include trusted execution environments (TEEs) storing these cryptographic software module libraries 124 and 126. In some embodiments, cryptographic software modules 128 and 130 may be signed by a trusted execution environment manufacturer.
[0060] As described above, application server 114 can provide computing resources for client applications 110 and 112 to perform operations (e.g., point-of-sale operations) associated with the intended functions of computer systems 106 and 108. These operators may include receiving encrypted messages from computer systems (including computer systems 106 and 108) and decrypting these messages according to cryptographic protocols used by these computer systems (e.g., cryptographic protocols defined by protocol files 120 and 122). Application server 114 may maintain an operator database 116, which may contain database entries including information corresponding to each operator or each operator's account and services provided by application server 114. Operator database 116 may include a part of an identity management system that creates, manages, and deletes user (e.g., operator) access to system resources. Database entries in operator database 116 may include server computer protocol files (e.g., protocol files 138 and 140). These server computer protocol files 138 and 140 may include information for identifying or defining cryptographic protocols used by the corresponding computer systems (e.g., as defined by the computer system protocol files of the aforementioned computer systems).
[0061] To decrypt messages received from computer systems 106 and 108, application server 114 may communicate with cryptographic server 118. Cryptographic server 118 may include dedicated hardware or execute dedicated code associated with cryptography. For example, cryptographic server 118 may include one or more hardware security modules (HSMs) for storing cryptographic keys or executing cryptographic functions, such as key generation, cryptographically secure ciphertext generation, etc. The HSM may include a classical hardware security module 134 for performing cryptographic operations associated with classical cryptography. In addition to any number of additional HSMs 142, the HSM may also include a post-quantum hardware security module 136 for performing cryptographic operations associated with post-quantum cryptography. After identifying a specific cryptographic protocol used to encrypt a message received from one of the computer systems, application server 114 may communicate with cryptographic server 118 to request decryption of the message according to the corresponding cryptographic protocol. In some embodiments, application server 114 and cryptographic server 118 may include a single server computer entity.
[0062] Cryptographic server 118 may include part of a cloud-based service that provides cryptographic services to application server 114, including, for example, securely storing cryptographic information (e.g., cryptographic keys), performing decapsulation using decapsulation functions, generating shared secrets, generating session keys according to cryptographic protocol files, and generating and verifying digital signatures. Additionally, cryptographic server 118 may execute functions associated with updating the cryptographic protocols used to encrypt and decrypt messages. Cryptographic server 118 may store cryptographic software modules that can be used to generate secret shares. These cryptographic software modules may be stored in an HSM, such as a classic HSM 134, a post-quantum HSM 136, an additional HSM 142, or any other suitable storage element. As part of an update process, cryptographic server 118 may send these cryptographic software modules to computer systems (e.g., computer systems 106 and 108) to update the cryptographic protocols used by these computer systems. This sending may be mediated by application server 114 (e.g., cryptographic server 118 may send cryptographic software modules to application server 114, which may then send the cryptographic software modules to computer systems 106 and / or 108).
[0063] Additionally, cryptographic server 118 may include interface 132. This interface enables application server 114 to communicate with cryptographic server 118. Interface 132 also enables application server 114 to request services provided by cryptographic server 118 (e.g., decryption of encrypted messages). Interface 132 may include one or more application programming interfaces (APIs) supporting an abstraction layer, which allows applications (e.g., client applications 110 and 112) to be built in a cryptographically agile manner. This can be achieved by using generic, non-specific API functions. In general, the functions executed by cryptographic server 118 can be designed so that application server 114 or client applications 110 and 112 do not need to understand or specify the operation of these functions in order to use them. The details of these functions are executed by cryptographic server 118 and can be changed or otherwise modified without modifying the API functions. Therefore, even if the functions executed by cryptographic server 118 are modified, the applications running on computer systems 106, 108, or application server 114 will not be broken or otherwise rendered invalid by these modifications, thus allowing cryptographic applications to be developed in a more agile and error-free manner.
[0064] The cryptographic server 118 can provide other services such as vulnerability management, key management, revocation, and risk assessment. This can be achieved by maintaining policies or policy files 144 related to the security of each cryptographic software module. If a vulnerability, misconfiguration, or mathematical weakness is discovered, the risk assessment module 146 can determine whether a particular cryptographic software module should be modified or discarded.
[0065] II. Overview of Registration, Encryption, and Updates
[0066] Figure 2 A flowchart is shown that outlines some exemplary methods according to embodiments. Figure 2 The flowchart extensively illustrates the three stages. Figure 2 The first phase described is registration phase 202, during which the computer system can register with the cryptographic service provided by the server computer, receive the initial cryptographic software module set, and establish an initial cryptographic protocol with the server computer. Figure 2 The second phase described is the encryption and decryption phase 204, during which the computer system can generate a session key and use it to encrypt the message. The computer system can then send the encrypted message to the server computer, which can subsequently decrypt it. Figure 2 The third phase described is the cryptographic protocol update phase, which may include adding or removing cryptographic software modules, updating protocol files, and testing the new cryptographic protocol file by encrypting and sending test messages and then verifying that the test messages are successfully decrypted. Figure 2 This is intended only as a brief overview of some methods according to embodiments; therefore, some embodiments may involve… Figure 2 Steps or stages not described in the text.
[0067] During registration phase 202, at step 202-1, the computer system (e.g., Figure 1 The computer system 106 can initiate registration with a cryptographic service provided by a server computer (e.g., cryptographic server 118). Initiating registration may involve, for example, the operator of the computer system using the computer system to navigate to a webpage associated with the server computer. This webpage may include forms that the operator can fill out to complete the registration process. The forms may include, for example, fields such as a computer identifier field, a required username and password field, an email address field, etc. As another example, the computer system can initiate registration by sending a request message to the server computer containing a computer system identifier or other credentials (e.g., username and password) and a flag indicating that the computer system intends to register with the cryptographic service. After the initial registration step, at step 202-2, the computer system can receive an initial cryptographic software module set. As an example, the initial module set may be sent directly from the server computer in response to a link provided by the server computer or obtained from a third-party provider. Then, at step 202-3, the computer system and the server computer can establish an initial cryptographic protocol by exchanging a series of messages during the negotiation phase. The registration phase 202 is described in more detail in Part III below.
[0068] During encryption and decryption phase 204, at step 204-1, the computer system can generate a session key using an initial cryptographic protocol. At step 204-2, this session key can be used to encrypt a message intended for use on the server computer. Subsequently, at step 204-3, the computer system can send the encrypted message to the server computer, and also at step 204-3, the computer system can send one or more encapsulations to the server computer. At step 204-4, the server computer can generate a corresponding session key. In some embodiments, the server computer can decapsulate one or more encapsulations to generate one or more secret shares, and then the server computer can combine the secret shares to generate a session key. At step 204-5, the server computer can use the session key to decrypt the message. Encryption and decryption phase 204 is described in more detail in Part IV below.
[0069] During the cryptographic protocol update phase 06, the computer system and server computer can perform various operations associated with updating the cryptographic protocol. For example, at step 206-1, the computer system and server computer can add or remove cryptographic software modules from the cryptographic software module library on the computer system. Additionally, at step 206-2, the computer system and server computer can update their respective protocol files to reflect changes in the cryptographic software module library. At step 206-3, the computer system and server computer can test the new cryptographic protocol by encrypting and sending a test message and then verifying that the test message has been successfully decrypted. The cryptographic protocol update phase is described in more detail in Section V below. Afterwards, the computer system and server computer can return to the encryption and decryption phase 204. The computer system can then use the new cryptographic protocol to encrypt messages sent to the server computer. Similarly, the server computer can use the new cryptographic protocol to decrypt messages sent by the computer system. Encrypting and sending messages using the updated cryptographic protocol is described in more detail in Section VI below.
[0070] III. Registration
[0071] The registration phase may involve a computer system receiving software for secure communication with a server computer (e.g., an application server). This may include receiving one or more client applications operable by the computer system. It may also include receiving one or more cryptographic software modules that can be used to generate a session key, which can be used to encrypt messages sent to the server computer (e.g., messages containing sensitive information such as medical records or payment information). The registration phase may further include the computer system and the server computer negotiating an initial cryptographic protocol for generating the session key and for encrypting and decrypting messages. After negotiating the cryptographic protocol, the computer system may modify or generate a computer system protocol file to identify one or more software modules used to generate the session key. Similarly, the server computer may modify or generate a corresponding server computer protocol file to identify one or more software modules used to generate the session key. The server computer may use this server computer protocol file during the encryption and decryption phase to decrypt encrypted messages sent by the computer system (e.g., as described in Part IV below).
[0072] Figure 3 An exemplary system diagram is shown according to some embodiments. Figure 3This includes a client application 302 (operating on a computer system), an application server 304, a cryptographic server 306, and a carrier database 308. In some embodiments, the application server 304 and the cryptographic server 306 may include a single server computer. The client application 302 may include a thin application and may be limited, for example, by relatively low memory footprint and processing power requirements.
[0073] In some embodiments, the registration process involves installing client application 302 on a computer system. In other cases, it is assumed that client application 302 is already installed on the computer system prior to registration. For example, client application 302 may have been manually installed by the computer system operator. Application server 304 can facilitate the installation process by sending client application 302 to the computer system. Alternatively, application server 304 can send a software development kit (SDK) to the computer system, enabling the computer system operator to use the SDK to include cryptographic functions in its own client application 302 (e.g., a client application developed and produced by the computer system operator).
[0074] The client application 302 or SDK may include a cryptographic software module library 310, which includes one or more cryptographic software modules. Figure 3 Six cryptographic software modules are illustrated: ECDH module 312, RSA-OAEP module 314, Kyber module 316, NTRU module 318, DSA module 320, and RSA-PSS module 322. These cryptographic software modules can each correspond to a cryptographic system with a corresponding name. For example, ECDH module 312 can correspond to an elliptic curve Diffie-Hellman cryptosystem and can be used to perform cryptographic operations associated with said cryptographic system. It should be understood that embodiments of this disclosure can be practiced with any number and combination of cryptographic software modules, and are not limited thereto. Figure 3 The cryptographic software modules described. Figure 3 The cryptographic software modules described are intended to provide an example only. It is also worth noting that client application 302 may not have cryptographic software modules 312-322 prior to the registration phase, and may be pre-configured with cryptographic software modules 312-322 during the registration phase.
[0075] Cryptographic software modules can be signed using digital signatures supported by digital certificates issued by a certificate authority. Figure 3In this document, the certificate authority is designated as CA1. (CA1 is described in more detail below). These digital signatures are resistant to both classical and post-quantum forgery. Therefore, if the client application 302 or the operator of the computer system trusts CA1, the cryptographic software modules originating from the server computer and / or cryptographic server 306 can also be trusted. As a security measure, the cryptographic software module library 310 can be programmed or configured such that the library can only include modules with valid signatures; otherwise, the modules in the cryptographic software module library 310 are only read and executed.
[0076] At step 334, after client application 302 has been installed, client application 302 can initiate a registration process by sending a registration message to application server 304. Besides indicating that client application 302 intends to register with the application server, the registration message (or any subsequent message) may include any information required for the registration process, such as a computer system identifier or identification information corresponding to the computer system's operator (e.g., name, email address, etc.). Application server 305 may create a database entry in operator database 308 containing any information included in the registration message or any subsequent messages received from the client application. Additionally, at step 334, client application 302 and application server 304 may establish trust via Certificate Authority CA1. This process may involve, for example, client application 302 and application server 304 (or their respective operators) verifying that CA1 is a legitimate and trusted Certificate Authority. CA1 may return digital signatures included in cryptographic software modules, enabling client application 302 to trust that those cryptographic software modules are legitimate. After exchanging and evaluating the information in the registration message and establishing trust in CA1, the client application 302 and the application server 304 can begin the process of loading the cryptographic software modules for encryption and signing.
[0077] Subsequently, at step 336, application server 304 may interface with cryptographic server 306 to retrieve cryptographic software modules that can be used by client application 302 to generate session keys and encrypt messages. Application server 304 can retrieve these cryptographic software modules from cryptographic server 306 using cryptographic server interface 324. This interface 324 may include APIs that expose functions to application server 304, such as recommendModule() function 324-1, generateKeyPair() function 324-2, getSessionKey() function 324-3, encrypt() function 324-4, decrypt() function 324-5, and sign() function 324-6. Interface 324 may expose any number of other functions (not shown) that may be related to cryptographic operations and may be used by application server 304 during its operation. These functions may include, for example, functions associated with risk management, such as functions that enable application server to assess the risks associated with the use of a particular cryptographic software module, functions for performing key revocation, etc. It is worth noting that not all described functions are available during the registration phase. Some or all of these functions can be used in later stages, such as the encryption and decryption stages, as referenced above. Figure 2 As described in Part II. For example, functions such as getSessionKey() can be used during the encryption and decryption phases, but may not be needed during the registration phase.
[0078] The `recommendModule()` function 324-1 can be used during the registration phase or cryptographic protocol update phase (as described in Part V) to identify or otherwise determine one or more cryptographic software modules that can be used to implement a cryptographic communication protocol for securely sending messages from client application 302 to application server 304. These cryptographic software modules can be determined in part based on the performance capabilities and security requirements of the computer system operating client application 302, operator preferences, etc. For example, if client application 302 operates on a computer system with specific memory limitations (e.g., less than 1 GB of RAM), application server 304 can use the `recommendModule()` function 324-1 to pass an actual argument, including the amount of memory available to client application 302, to cryptographic server 306. Cryptographic server 306 can use these memory limitations to identify cryptographic software modules that can be operated by client application 302.
[0079] The `generateKeyPair()` function 324-2 can be used to generate an asymmetric key pair including a public key and a private key. The `generateKeyPair()` function 324-2 can return the public key to application server 304, which can then provide the public key to client application 302. The public and private keys can be used in various applicable cryptographic contexts; for example, the public key can be used by cryptographic software modules in cryptographic software module library 310 to perform cryptographic operations such as encryption, decryption, and generating session keys.
[0080] The cryptographic server 306 can use the getSessionKey() function 324-3 to generate a session key, which is used to encrypt and decrypt messages sent between the client application 302 and the application server 304. The getSessionKey() function 324-3 can generate the session key using a key derivation function and one or more secret shares. Alternatively, the getSessionKey() function 324-3 can use one or more encapsulations (e.g., received from the computer system during the encryption and decryption process, as referenced below). Figure 4 As described in Part IV.A, a decapsulation function is used as input to generate one or more secret shares, and a session key is generated using a key derivation function and the decapsulated secret shares. The session key can be stored in memory or returned to the application server 304 for encrypting and decrypting messages.
[0081] Application server 304 can use the encrypt() function 324-4 to request encryption of data (e.g., a message) using a specified key, such as a generated session key. Application server 304 can use a key identifier to identify the specified key, which can identify a specific public key, private key, or session key stored by cryptographic server 306. Cryptographic server 306 can store this key in any suitable hardware security module, such as hardware security module 328 or 330. Cryptographic server 306 can retrieve the specified key and then use it to encrypt the provided data.
[0082] Similarly, application server 304 can use the `decrypt()` function 324-5 to request the decryption of data (e.g., an encrypted message) using a specified key. Application server 304 can use a key identifier to identify the specified key, which can identify a specific public key, private key, or session key stored by cryptographic server 306. Cryptographic server 306 can store this key in any suitable hardware security module, such as hardware security module 328 or 330. Cryptographic server 306 can retrieve the specified key and then use it to decrypt the provided data.
[0083] Application server 304 can use the sign() function 324-6 to request the generation of a digital signature corresponding to data (e.g., a message). This can be implemented in several ways. As an example, application server 304 can use the sign() function 324-6 to provide data to cryptographic server 306. Cryptographic server 306 can retrieve the signing key (e.g., from hardware security module 328 or 330) and use the signing key to generate a digital signature. Cryptographic server 306 can then return the digital signature to application server 304.
[0084] Cryptographic keys corresponding to the cryptographic software modules (e.g., cryptographic software modules 312-322) provided by the cryptographic server 306 can be stored in one or more hardware security modules (HSMs) associated with the cryptographic server 306. For example, a cryptographic software module associated with a classical cryptosystem can be stored in a hardware security module 328 for classical cryptography. Similarly, a cryptographic software module associated with post-quantum cryptography can be stored in a hardware security module 330 for post-quantum cryptography. Additionally, the cryptographic server 306 may include any number of other hardware security modules, such as those associated with theoretical "post-post-quantum" cryptography.
[0085] The hardware security module can store cryptographic keys and cryptographic functions used by the cryptographic server 306. These cryptographic functions can include key generation functions, such as the classical key generation algorithm (KeyGenCC()) 306-3 for generating classical cryptographic keys, and the post-quantum key generation algorithm (KeyGenPQC()) 306-4. The cryptographic server 306 can pre-compute these cryptographic keys using the KeyGen pre-computation function 306-5 before the registration process. The KeyGen pre-computation function 306-5 can call KeyGenCC() 306-3 and KeyGenPQC() 306-4 to pre-compute the cryptographic keys. The KeyGen pre-computation function 306-5 can also access the quantum cryptography RNG module 332 using the KeyGenPQ() function 306-2 to generate high-entropy random numbers based on properties of quantum physics. These random numbers can be used as inputs to the key generation functions, for example, as seed values or random numbers. The cryptographic server 306 can include any number of additional random number generators, for example, to provide security against other forms of attacks. The cryptographic server interface 324 can call the GetKeys() function 306-1 to retrieve any number of cryptographic keys from its corresponding hardware security module or initiate the generation of any number of cryptographic keys.
[0086] At step 338, the cryptographic server 306 can determine which cryptographic software modules to use as part of the initial cryptographic protocol (using, for example, the recommendModule() function 324-1) and return these cryptographic software modules to the application server 304, enabling the application server 304 to send the cryptographic software modules to the client application 302. The client application 320 can then store the cryptographic software modules in its cryptographic software module library 310.
[0087] exist Figure 3 In the exemplary system, the cryptographic software modules stored in the cryptographic software module library 310 may include two classical cryptographic modules (ECDH module 312 and RSA-OAEP module 314) and two post-quantum cryptographic modules (Kyber module 316 and NTRU module 318). The cryptographic software modules may also include two signature modules: DSA module 320 and RSA-PSS module 322. These cryptographic software modules may include functions (e.g., key generation algorithms) associated with their underlying cryptographic systems. The cryptographic software modules may store or otherwise include cryptographic keys corresponding to these cryptographic systems.
[0088] Application server 304 can establish a mapping relationship between client application 302, hardware security module, and cryptographic key using, for example, one or more client application identifiers, computer system identifiers, HSM identifiers, and cryptographic key identifiers. This mapping relationship can be established and stored in operator database 308. Application server 304 can also establish a mapping relationship between cryptographic key, client application 302, and cryptographic server 306 for cryptographic software module used for digital signature generation, and store these mapping relationships in operator database 308.
[0089] At step 340, after the client application 302 is installed on the computer system and the cryptographic software module is loaded, the client application 302 and the application server 304 can negotiate an initial cryptographic protocol to be used. In some embodiments, a default cryptographic protocol may exist that was established during the installation process. In other cases, the client application 302 may communicate with the application server 304 to establish a cryptographic protocol. These communications may include, for example, system information or system parameters corresponding to the computer system (e.g., detailing the cryptographic capabilities or limitations of the computer system). Figure 3In the example, as indicated by labels 302-5, client application 302 and application server 304 have established a cryptographic protocol, which includes deriving a cryptographic session key using the key derivation function KDF(), ECDH software module 312, and Kyber software module 316. The cryptographic protocol can be defined by a computer system protocol file (not shown) and a corresponding server computer protocol file 326. The computer system protocol file can be stored locally on the computer system running client application 302. The server computer protocol file 326 can be stored in the operator database 308.
[0090] Labels 302-1 through 302-5 summarize some of the steps performed by client application 302 during the registration process. After installing client application 302, as indicated by label 302-1, client application 302 and application server 304 can establish trust in Certificate Authority CA1, which provides protection against classical and post-quantum attacks. Next, at label 302-2, client application 302 can receive trusted cryptographic software modules from application server 304, including, for example, ECDH module 312, RSA-OAEP module 314, Kyber module 316, and NTRU module 318. Client application 302 can store these modules in cryptographic software module library 310. Similarly, at label 302-3, client application 302 can receive trusted signature modules, including DSA module 320 and RSA-PSS module 322. Client application 302 can store these modules in cryptographic software module library 310. As indicated by label 302-4, the file paths to these cryptographic software modules in the cryptographic software module library are CA1 protected. That is, modules can only be added or removed using valid CA1-supported signatures; otherwise, these modules are only read and executed. At label 302-5, client application 302 and application server 304 can establish an initial cryptographic protocol for encryption and decryption. Figure 3 In this initial cryptographic protocol, the use of ECDH module 312 and Kyber module 316 is involved in generating cryptographic keys.
[0091] Labels 304-1 through 304-5 summarize some of the steps performed by application server 304 during the registration process. After installing client application 302, at label 304-1, client application 302 and application server 304 can establish trust in Certificate Authority CA1, which provides protection against classical and post-quantum attacks. Next, at label 304-2, application server 304 retrieves trusted cryptographic software modules from cryptographic server 306 and pushes these modules to client application 302 during the load installation process. Application server 304 also creates entries (“Application Configuration”) in operator database 308, which include a mapping between cryptographic software modules, client application 302, and their corresponding cryptographic keys stored in hardware security modules in cryptographic server 306. This mapping can be established using a device or computer system identifier corresponding to the computer system operating client application 302. Figure 3 In this context, these trusted cryptographic software modules include ECDH module 312, RSA-OAEP module 314, Kyber module 316, and NTRU module 318. At label 304-3, application server 304 can perform a series of similar steps involving signature modules used by client application 302, including DSA module 320 and RSA-PSS module 322.
[0092] At label 304-4, application server 304 and client application 302 can negotiate an initial cryptographic protocol. Application server 304 can access operator database 308 to associate protocol file 326 with the operator configuration corresponding to the client application. Using information contained in the operator configuration (e.g., system requirements or capabilities), application server 304 can determine which cryptographic software modules to use in the initial cryptographic protocol. As indicated by label 304-5, the negotiated cryptographic protocol includes using ECDH module 312 and Kyber module 316 to generate cryptographic keys for encryption and decryption.
[0093] IV. Encryption and Decryption
[0094] After the initial cryptographic protocol is established between the computer system and the server computer during the registration process, the cryptographic protocol can be used to encrypt and decrypt messages sent between the computers. The sequence diagram is described below. Figure 4 ) and system diagram ( Figure 5 This is to illustrate such encryption and decryption operations.
[0095] A. Encryption and decryption sequence diagram
[0096] Figure 4A sequence diagram illustrating exemplary encryption and decryption processes according to some embodiments is shown. A computer system operating client application 404 may possess a message that client application 404 intends to securely send to a server computer (which may include, for example, application server 406 or a combination of application server 406 and cryptographic server 410). In some embodiments, the message may include credentials for authorizing an interaction (e.g., a payment transaction) between a user (e.g., a customer) of a user device (e.g., a smartphone) and a resource provider operator (e.g., a merchant) operating the computer system of client application 404. The computer system may receive this credential from the user device, for example, via near-field communication or another suitable communication protocol. As another example, the message may include login information used by client application 404 to log in to services provided by application server 406 (e.g., cloud-based point-of-sale services, video streaming services, data hosting services, etc.).
[0097] At step 412, the client application 404 may identify one or more cryptographic software modules based on a computer system protocol file. This computer system protocol file may define the cryptographic protocol used by the client application 404 to encrypt messages. The computer system protocol file may identify one or more cryptographic software modules used to generate session keys that can be used to encrypt messages. These cryptographic software modules may include a subset of cryptographic software modules stored in a cryptographic module library 402. These cryptographic software modules may each correspond to an underlying cryptographic system; for example, one cryptographic software module may correspond to the RSA cryptographic system, and another cryptographic software module may correspond to the Kyber cryptographic system. These cryptographic software modules may include cryptographic data (e.g., cryptographic keys) and functions associated with cryptography (e.g., key generation functions or secret share generation functions). Although Figure 4 Some steps performed by the cryptographic module library 402 and some steps performed by the client application 404 are shown, but these steps can be performed by one and / or both of these software entities.
[0098] To securely transmit the shared secret that can subsequently be used to generate a session key, in steps 414 and 416, the computer system operating the client application 404 may use a key encapsulation mechanism (KEM) or other encapsulation techniques. At step 414, the computer system may use the client application 404 and cryptographic software modules from the cryptographic module library 402 to generate one or more shared secrets corresponding to one or more cryptographic software modules. These shared secrets may be generated using functions implemented by the cryptographic software modules and may later be used by the computer system as input to a key derivation function to generate a session key for encrypting messages.
[0099] In step 416, in some embodiments, each shared secret can be encrypted using a public key. Application server 406 or cryptographic server 410 can know the corresponding private key, enabling one or both servers to decrypt the encrypted shared secret using the corresponding private key. This key encapsulation mechanism (including steps 414 and 416) allows for secure transmission of secret shares over an insecure computer network and enables application server 406 or cryptographic server 410 to generate a session key using a key derivation function and the shared secret, further enabling application server 406 or cryptographic server 410 to decrypt messages using the session key.
[0100] Subsequently, at step 418, the computer system operating the client application 404 can send one or more encapsulations to the server computer (e.g., application server 406 and cryptographic server 410). Later, at step 432, the cryptographic server 410 can decapsulate the encapsulations to generate a shared secret. As described above, at step 432, these shared secrets can be used to generate a session key for decrypting messages.
[0101] At step 420, a shared secret generated by the cryptographic software module in cryptographic module library 402 can be provided to client application 404. Client application 404 can then use these shared secrets to generate a session key for encrypting messages. Alternatively, in some embodiments, the key derivation function KDF() may be part of cryptographic module library 402. In these embodiments, the session key may be generated in cryptographic module library 402, rather than by client application 404. Therefore, step 420 is optional.
[0102] In step 422, the computer system operating the client application 404 can generate a session key using a key derivation function and one or more shared secrets. The key derivation function can be stored in the cryptographic module library 402, the client application 404, or elsewhere in the computer system's memory. This session key can be used to encrypt messages. Therefore, the session key (more broadly, the encrypted message) is as secure as the underlying cryptographic system used to generate the secret share used to generate the session key. For example, if the session key is generated using two secret shares, one corresponding to a classical cryptographic software module and the other to a post-quantum cryptographic software module, then the session key (and the encrypted message) will be resistant to both classical and post-quantum cryptographic attacks. The computer system can also use the key derivation function and one or more shared secrets to generate a session signing key. This session signing key can be used to digitally sign the encrypted message, enabling the application server 406 to verify that the message originates from the client application 404.
[0103] At step 424, the computer system operating the client application 404 can encrypt the message using the session key, thereby generating the encrypted message in the process. The computer system operating the client application 404 can generate a message packet that includes the encrypted message, a computer system identifier, and any other relevant information (e.g., timestamps, metadata, header information, etc.). The computer system identifier can be used by the application server 406 to identify the cryptographic protocol used to encrypt the message. The computer system operating the client application 404 can also generate a digital signature by signing the message packet using a session signing key or using the private key corresponding to the computer system operating the client application 404. The server computer can later verify the digital signature upon receiving the message packet.
[0104] At step 426, the computer system operating the client application 404 may send a message packet including the encrypted message and the computer system identifier to the server computer (e.g., application server 406), which may be made via an insecure network such as the Internet or via any other suitable network or by any other suitable means.
[0105] At step 428, application server 406 can identify and obtain a server computer protocol file based on the computer system identifier received in the message packet at step 426. The server computer protocol file can identify the cryptographic protocol used to encrypt the message and the corresponding cryptographic software module. In some embodiments, the server computer protocol file may include database entries stored in a protocol file database (e.g., operator database 408). This database entry may additionally include a public key corresponding to the computer system operating client application 404. If applicable, application server 406 can use the public key to verify the digital signature included in the message packet to verify client application 404. Additionally, the database entry may include a key identifier. The key identifier may identify a secret key corresponding to the public key used to perform a key encapsulation mechanism (e.g., at step 416). This secret key may be stored in a hardware security module on cryptographic server 410. Operator database (sometimes referred to as protocol file database) 408 may store one or more protocol files corresponding to one or more computer systems, enabling different computer systems to use different cryptographic protocols.
[0106] At step 430, application server 406 may communicate with cryptographic server 410 to generate a shared secret and a session key for decrypting the encrypted message. In some embodiments, application server 406 may use an API or other suitable interface provided by the cryptographic server to request message decryption. Communication from application server 406 may include, for example, sending encapsulation and key identifiers to cryptographic server 410. Cryptographic server 410 may use the key identifiers to identify and retrieve a cryptographic key that can be used to decapsulate the shared secret.
[0107] At step 432, the cryptographic server 410 may generate or otherwise retrieve one or more shared secrets corresponding to the server computer protocol file. The cryptographic server may later use these shared secrets to generate a session key for decrypting messages. In some embodiments, the cryptographic server 410 may generate one or more shared secrets by decapsulating the encapsulation received from the application server 406 at step 430, for example, by decrypting the encapsulation using its corresponding private key.
[0108] In some other embodiments, the cryptographic server 410 may generate the shared secret locally using a process similar to that used by the client application 402. The cryptographic server 410 may locally store one or more cryptographic software modules that enable it to generate one or more shared secrets. Alternatively, the cryptographic server 410 may already possess one or more shared secrets and have already stored them, for example, in a hardware security module. As another alternative, the cryptographic server 410 may have pre-computed and (e.g., in a hardware security module) stored session keys. Therefore, steps 432 and 434 may be optional.
[0109] At step 434, the cryptographic server 410 may use a key derivation function and one or more shared secrets to generate a session key. The cryptographic server 410 may also generate a session signing key (using the same key derivation function or a similar key derivation function) to verify the digital signature included in the message packet.
[0110] At step 436, the cryptographic server 410 can use the session key to decrypt the encrypted message to retrieve it. Additionally, the cryptographic server 410 can use the session signing key to verify the digital signature included in the message packet.
[0111] At step 438, the cryptographic server 410 can send the decrypted message back to the application server 406. The application server 406 can then use the decrypted message based on its specific purpose or application. For example, if the application server 406 is used to control access to computing resources provided by the application server 406, it can use the message to authenticate the client application 404 and enable it to access those computing resources. As another example, if the application server 406 is used to process payment transactions, it can extract payment information from the decrypted message and then forward the payment information to a bank or other entity to request authorization for the transaction.
[0112] As an alternative to step 438, cryptographic server 410 can send the session key to application server 406. Application server 406 can use the session key to decrypt the encrypted message to retrieve it (instead of having the message decrypted by cryptographic server 410 as described above).
[0113] B. Encryption and Decryption System Diagram
[0114] Figure 5 An exemplary system diagram is shown, detailing the encryption and decryption processes that can be used by client application 502 and application server 504. Figure 5 In the example, the cryptographic protocol involves deriving a cryptographic session key using a hybrid key derivation function based on classical cryptography (CC) software module 512 and post-quantum cryptography (PQC) software module 514. These software modules can be stored in a cryptographic software module library 510, located on the computer system operating the client application 502. Alternatively, the cryptographic keys corresponding to these modules can be stored in a keystore 532 (e.g., a Secure Element or an Android keystore on the Android platform). This cryptographic session key can be used to encrypt a login token subsequently sent to application server 504. Using cryptographic server 506 and carrier database 508, application server 504 can decrypt the login token and authenticate client application 502, thereby enabling client application 502 to access resources provided by application server 504.
[0115] At step 524, as part of the key negotiation process, client application 502 may call the `keyEstablishmentManager()` function, which can be used to perform several steps associated with the encryption process, including steps 502-1 through 502-7. At step 502-1, client application 502 can use the `GetKey_CC()` function to retrieve the classical public key 534 from the keystore 532. The classical public key 536 can be used with the classical cryptographic software module 512 to generate a session key for encrypting the login token. At step 502-2, client application 502 can use the `GetKeyPQC()` function to retrieve the post-quantum public key 536 from the keystore 532. The post-quantum public key 536 can be used with the post-quantum cryptographic software module 514 to generate a session key for encrypting the login token.
[0116] At steps 502-3, client application 502 can retrieve classical cryptographic software module 512 from cryptographic software module library 510 using, for example, the getClassicalModule() function. At steps 502-4, client application 502 can retrieve post-quantum cryptographic software module 514 from cryptographic software module library 510 using, for example, the getQuantumModule() function. It should be understood that although these steps specifically refer to classical and post-quantum cryptographic keys and software modules, embodiments may be practiced using other types of cryptographic keys and software modules.
[0117] Then, client application 502 can use classic public key 534, post-quantum public key 536, classic cryptographic software module 512, and post-quantum cryptographic software module 514 to derive a session key for encrypting the login token. Client application 502 can use, for example, the above reference, according to the cryptographic protocol. Figure 4 The described method, for example, using a key derivation function, is used to perform this operation. This cryptographic protocol can be defined by a computer system protocol file stored on the computer system operating the client application 502. At steps 502-5, the client application 502 can encrypt and sign a login token and send the login token to the application server 504. The client application 502 can also send a computer system identifier, which the application server 504 can use to identify the cryptographic protocol used by the client application 502 to encrypt the message. The application server 504 can then begin the process of decrypting the login token to log the client application 502 into the services provided by the application server 504.
[0118] At step 526, application server 504 may call the getPrivateKeys_identifier function using an identifier (e.g., a computer system identifier associated with client application 502) to identify the private key required to generate the hybrid session key used to decrypt the login token, and retrieve these private keys from operator database 508. At step 504-1, application server 504 may provide the private key identifier to cryptographic server 506 via interface 516. This step enables cryptographic server 506 to retrieve the corresponding private key from its respective hardware security module (e.g., classical cryptographic hardware security module 518 and post-quantum cryptographic hardware security module 520).
[0119] At step 504-2, application server 504 can verify the signature included in the signed login token to verify that the login token originates from client application 502 using, for example, the verifySignature() function. At step 504-3, application server 504 can (using, for example, protocol file 538 stored in carrier database 508) identify the cryptographic protocol used to derive the hybrid session key, which can be used to decrypt the login token.
[0120] At steps 528 and 504-3, application server 504 can use cryptographic server interface 516 to call the getSessionKey() function 516-3 to request the session key. Figure 5 In the exemplary encryption and decryption process, application server 504 can provide cryptographic server 506 with two encapsulations corresponding to classical public key 534 and post-quantum public key 536, as well as one or more key identifiers. Cryptographic server 506 can use the key identifiers to identify the corresponding private cryptographic key and retrieve the corresponding private cryptographic key (from, for example, either hardware security module 518 or 520). Cryptographic server 506 can use the corresponding private key to decapsulate the encapsulations, and then use a key derivation function and the decapsulated secret share to derive the session key. The session key can then be returned to application server 504.
[0121] At steps 504-4 and 530, application server 504 can use the session key to decrypt and verify the login token. In doing so, application server 504 can verify that client application 502 and the computer system operating client application 502 have access to the computing resources provided by application server 504. Application server 504 can then return the session token to client application 502, which can be used for further communication between client application 502 and application server 504.
[0122] In steps 502-6, client application 502 can receive session information from the server, including a session token. In steps 506-7, client application 502 can verify the session token to complete the login process.
[0123] V. Update the cryptographic protocol
[0124] After a cryptographic protocol has been used to securely send messages, updating the protocol may be desirable or necessary. For example, new developments in computer technology may render one or more cryptographic software modules used in the protocol insecure. To address this security issue, the cryptographic protocol can be updated to remove insecure cryptographic software modules and add new, secure ones. This update process may involve three steps: adding or removing cryptographic software modules, updating the cryptographic protocol file, and testing the new protocol.
[0125] A. Update sequence diagram
[0126] Figure 6 A sequence diagram detailing the methods that can be used during the cryptographic protocol update phase is shown. Figure 6 This includes a series of steps 612-650. The cryptographic protocol update phase can occur after the cryptographic protocol has been used to perform encryption or decryption (e.g., as described in Part IV above). Therefore, Figure 4 Some or all of the steps shown can be performed at any time. Figure 6 Before the steps shown, such as steps 418, 426, 428, 432, and 434. Figure 6 Some of the steps shown can be optional.
[0127] 1. Add or remove password software module
[0128] At step 612, a client application 604 or application server 606 operating on a computer system (not shown) may initiate a protocol update process. The protocol update process may involve, for example, using one or more cryptographic software modules in the cryptographic protocol, deleting one or more cryptographic software modules from the cryptographic protocol, defining a completely new cryptographic protocol (e.g., not involving previously used cryptographic software modules), etc. The cryptographic protocol update process may be initiated by the operator of client application 604 (e.g., a merchant operator) or the operator of application server 606 (e.g., a system administrator) in response to the discovery or development of new cryptography that renders one or more cryptographic software modules insecure, for example. Alternatively, client application 604 or application server 606 may be configured to update the cryptographic protocol periodically, such as annually, semi-annually, monthly, or according to any other update schedule. The computer system operating client application 604 may initiate the update process by sending a request message to application server 606.
[0129] The request message may request additional cryptographic software modules that client application 604 intends to include in the cryptographic protocol. In some embodiments, client application 604 may specifically identify the desired additional cryptographic software module; in others, client application 604 may request the additional cryptographic software module without specifically identifying it. For example, the request message may identify the additional cryptographic software module based on an identifier (e.g., "PQC_x1" corresponding to post-quantum cryptography (PQC) software module "x1"). Alternatively, the request message may provide parameters that application server 606 can use to identify the additional cryptographic software module, such as security requirements (e.g., "post-quantum security"). The request message may additionally include computer system parameters corresponding to the computer system operating client application 604. These computer system parameters may include information, for example, related to the operating system, available memory, processor speed, etc. These system parameters may indicate the limitations or capabilities of the computer system operating client application 604 regarding operating or executing the code associated with the cryptographic software module.
[0130] Instead of the client application 604 initiating a protocol update process with a request message, the application server 606 can initiate an update process by pushing an update to the client application 604. As an example, if the application server 606, the cryptographic server 610, or the operator of either and / or both servers determines that a cryptographic protocol or cryptographic software module has been found to be insecure, the application server 606 can push a protocol update to the client application 604.
[0131] Application server 606 may select additional cryptographic software modules to send to client application 604 during a password update process. In some embodiments, a server computer (e.g., a computer system or network including application server 606 and / or cryptographic server 610) may determine the additional cryptographic software module from a plurality of additional cryptographic software modules (e.g., stored in an HSM on cryptographic server 610) based on computer system parameters. Application server 606 may use computer system parameters to identify cryptographic software modules that the computer system operating client application 604 can use. Alternatively, if a cryptographic protocol update is initiated due to a security vulnerability (e.g., a newly discovered feasible cryptographic attack on a cryptographic system or a series of cryptographic systems), application server 606 may select an additional cryptographic software module that is not easily attacked. The selected additional cryptographic software module may be signed and includes a digital signature corresponding to the manufacturer of the server computer (e.g., application server 606), certificate authority, or trusted execution environment device.
[0132] At step 614, application server 606 may send an additional cryptographic software module, including a digital signature, to the computer system operating client application 604. This sending may occur, for example, after encryption and decryption operations have been performed by client application 604 and application server 606, as described above. Figure 4 As described in Part IV.
[0133] At step 616, the computer system operating the client application 604 can verify the cryptographic software module using a public key corresponding to the server computer (e.g., application server 606, cryptographic server 610, or a combination thereof) or the manufacturer of a certificate authority or trusted execution environment device. This can be achieved by verifying a digital signature included in the attached cryptographic software module. The computer system operating the client application 604 can decrypt the digital signature using the public key and then evaluate the decrypted content. For example, the digital signature may include a cryptographic hash of the cryptographic software module. The client application 604 can generate its own hash of the cryptographic software module and then compare it with the hash generated by decrypting the digital signature. If the two hashes match, the client application 604 can confirm that the cryptographic software module is legitimate.
[0134] At step 618, if the additional cryptographic software module is successfully verified, the computer system operating the client application 604 can include the additional cryptographic software module in the cryptographic module library 602. In some embodiments, the cryptographic module library 602 can prevent the client application 604 from adding additional software modules that do not have valid digital signatures.
[0135] Optionally, at step 620, the client application 604 may remove a cryptographic software module from the cryptographic module library 602. For example, one of the cryptographic software modules may become insecure due to advancements in computer technology or the discovery of vulnerabilities, and removing the cryptographic software module to free up space for adding additional cryptographic software modules may be beneficial.
[0136] 2. Update the password protocol file
[0137] At step 622, once the additional cryptographic software module has been included in the cryptographic module library 602, the computer system operating the client application 604 can update the computer system protocol file. The computer system protocol file may include a data file identifying one or more cryptographic software modules used to generate session keys and encrypt messages. For example, a computer system protocol file including the identifier "PQC_x1" may instruct the computer system to use the cryptographic software module "PQC_x1" to generate a secret share that can be used to derive the session key. The computer system operating the client application can update the computer system protocol file to identify additional cryptographic software modules in addition to those previously identified (e.g., by including additional identifiers in the computer system protocol file).
[0138] Optionally, at step 624, if the computer system operating the client application 604 at step 620 deletes a cryptographic software module from the cryptographic module library 602, the computer system operating the client application 604 may update the computer system protocol file to no longer identify those cryptographic software modules, for example, by deleting the identifier corresponding to at least one of the one or more cryptographic software modules.
[0139] At step 626, the computer system operating the client application 604 can send a protocol update message to the application server 606. Figure 6 Many of the other steps shown are similar; this transmission can be performed after the encryption and decryption operations have been completed but before the cryptographic protocol update process, as illustrated in the reference above. Figure 4 As described in Part IV, the protocol update message may include a computer system identifier that indicates the computer system protocol file has been updated to include additional cryptographic software modules and (optionally) no longer includes at least one of one or more cryptographic software modules. The protocol update message may indicate to application server 606 that client application 604 is in the process of updating its computer system protocol file, and application server 606 may update its server computer protocol file to reflect the changes, thereby enabling the two systems to communicate using the newly updated protocol.
[0140] At step 628, application server 606 may identify a server computer protocol file using a computer system identifier included in the protocol update message. This server computer protocol file may correspond to a computer system protocol file stored by the computer system operating client application 604. The server computer protocol file may be stored in operator database 608, which may store multiple server computer protocol files, each corresponding to a cryptographic protocol negotiated between the application server and multiple computer systems, each operating its own corresponding client application.
[0141] At step 630, application server 606 may update the server computer protocol file to indicate that the computer system protocol file identifies additional cryptographic software modules (and optionally does not include at least one of one or more cryptographic software modules). Application server 606 may use any suitable database management tool, technology, or software to update the server computer protocol file stored in operator database 608.
[0142] 3. Test the new cryptographic protocol
[0143] After updating the computer system protocol file and the server computer protocol file, the computer system and the server computer can perform a cryptographic protocol test to verify that the cryptographic protocol can be used to encrypt and decrypt messages sent between the computer system operating the client application 604 and the application server 606.
[0144] At step 632, the computer system operating client application 604 may generate a test message. The computer system may later encrypt this test message to test the new cryptographic protocol. This test message may include a publicly known reference string between client application 604 and application server 606, enabling both to verify that the protocol has been successfully updated. Alternatively, the test message may include data representing a message typically encrypted and sent by client application 604. For example, if client application 604 is used to securely transmit payment information, the test message may include “virtual” payment information, such as a fake payment account and fake transaction information. Alternatively, the test message may include any number or a random number.
[0145] At step 634, the computer system operating the client application 604 can use the cryptographic software module and the additional cryptographic software module identified by the computer system protocol file to generate multiple test shared secrets. Test secret shares can correspond to each of the cryptographic software module and the additional cryptographic software module, and can be generated using functions associated with these cryptographic software modules. For example, each test shared secret may include a cryptographic key generated using a key generation function corresponding to a specific cryptographic software module.
[0146] At step 636, the computer system operating the client application 604 can generate a test session key using a key derivation function and multiple test shared secrets, as described in, for example, in Part IV above and throughout the remainder of this disclosure.
[0147] At step 638, the computer system operating the client application 604 can use the test session key to encrypt the test message and send the encrypted test message to the application server 606. Encryption can use any suitable cryptographic protocol specified by the current computer system protocol file.
[0148] Upon receiving the encrypted test message, at step 640, application server 606 can communicate with cryptographic server 610 to decrypt the test message. Application server 606 can send one or more key identifiers to cryptographic server 610 so that cryptographic server 610 can identify multiple cryptographic software modules that can be used to generate multiple secret shares and session keys. Alternatively, if the session key is pre-computed, the cryptographic server can identify and retrieve the session key stored in its hardware security module. After generating or retrieving the session key, cryptographic server 610 can use the session key to decrypt the encrypted test message.
[0149] At step 642, the cryptographic server 610 may generate multiple test secret shares, then use these test secret shares to generate a test session key, and then use the test session key to decrypt the encrypted test message. If the session key is pre-computed and stored in the hardware security module, the cryptographic server 610 may not need to generate multiple test secret shares, therefore step 642 is optional.
[0150] At step 644, the cryptographic server 610 can send the decrypted test message back to the application server 606.
[0151] At step 646, application server 606 may generate an indication message based on the test message. In some embodiments, the indication message may be the same as the test message. For example, if the test message includes a string such as "test message", the indication message may include the same "test message" string. This indication message may be sent back to client application 604, enabling client application 604 to verify successful test completion by comparing the test message with the indication message. In other embodiments, the indication message may include a hash of the test message, hashed using a hashing algorithm known to both client application 604 and application server 606. In other embodiments, the indication message may be a statement indicating whether the test message was successfully decrypted, such as "true" or "false". This configuration is applicable to embodiments where the test message includes data (e.g., a common reference string) known to both client application 604 and application server 606. Application server 606 may compare the decrypted test message with the common reference string, generating an indication message "true" if they match and an indication message "false" if they do not match.
[0152] At step 648, the application server 606 may send an instruction message to the computer system operating the client application.
[0153] At step 650, the computer system operating the client application 604 can confirm that the server computer protocol file has been successfully updated by evaluating the indication message. In some embodiments, where the indication message includes a test message, the computer system can confirm that the server computer protocol file has been successfully updated by verifying a match between the indication message and the test message. In other embodiments, where the indication message includes a hash of the test message, the client application can generate a hash of the test message and compare it with the indication message to confirm that the protocol test has been successfully performed.
[0154] B. Update Cryptographic Protocol System Diagram
[0155] Figure 7 A system diagram corresponding to an exemplary protocol update process according to some embodiments is shown. Figure 7In the example, suppose a new computer technology has been developed that renders the cryptographic protocol insecure. For instance, this new technology might enable the use of algorithms that can factor a large number of numbers in polynomial time. Therefore, the cryptographic protocol can be updated to use additional cryptographic software modules that are secure against such attacks. In this example, this software module is represented as McEliece 720. Furthermore, because this new computer technology could enable the forging of digital signatures supported by CA1, client application 702 and application server 704 might need to establish trust in a new certificate authority, CA2, that provides protection against the new technology.
[0156] Client application 702 or application server 704 can initiate a cryptographic protocol update process. Client application 702 can send a message indicating that the operator of client application 702 wants to update the cryptographic protocol to application server 704. Alternatively, application server 704 can push the update to client application 702. In some embodiments, as indicated by labels 702-1 and 704-1, client application 702 and application server 704 may need to establish trust in the new Certificate Authority CA2 before updating the cryptographic protocol. This new Certificate Authority may use secure mathematical assumptions to prevent attacks from new technologies or new forms of cryptographic attacks. CA2 can be added to the trusted zone via CA1 trust and device root. After CA2 is added, CA1 and CA2 can be used to establish further trust. From this point of view, signatures corresponding to CA1 and CA2 can be used to verify cryptographic software modules; for example, to verify a new cryptographic software module, client application 702 can verify that it contains valid signatures corresponding to both CA1 and CA2. As an alternative to including the new Certificate Authority CA2, CA1 can be updated to provide trust against new technologies.
[0157] At step 704-2, application server 704 or its operator may update cryptographic server 706 to include the new cryptographic software module McEliece 720. Additionally, application server 704 or its operator may update operator database 708 to specify that cryptographic software module McEliece 720 can be used in cryptographic protocols. At step 704-3, application server 704 or its operator may update cryptographic server 706 to include the new quantum-safe signature module Falcon 726. Additionally, application server 704 or its operator may update operator database 708 to specify that Falcon 726 can be used for digitally signing messages.
[0158] At step 738, application server 704 may request a new cryptographic software module from cryptographic server 706. Application server 704 may communicate with cryptographic server 706 via its interface 728. Application server 704 may use an interface function, such as the recommendModule() function, in this request. This interface function may use information such as system and performance capabilities, as well as the requested functionality, to identify a cryptographic software module that can be operated by the computer system operating client application 702. For example, application server 704 may request cryptographic server 706 to recommend a software module that is secure against new computer technologies or newly developed cryptographic attacks.
[0159] At step 740, application server 704 can then receive the recommended module from cryptographic server 706. In some embodiments, application server 704 may also receive signature module Falcon 726, which is used to generate digital signatures that cannot be forged using new computer technologies. The code corresponding to the new cryptographic software module McEliece 720 and the new signature module Falcon 726 can be signed or verified by two certificate authorities, CA1 and CA2.
[0160] At step 742, application server 704 may send these cryptographic software modules, along with a message indicating that the cryptographic protocol should be updated to include the new cryptographic software modules, to client application 702.
[0161] Client application 702 can verify the signatures corresponding to CA1 and CA2 to verify the legitimacy of the new cryptographic software module. After doing so, client application 702 can include the cryptographic software module in its cryptographic module library 710. Figure 7 In the example shown, as indicated by label 702-2, the cryptographic module library 710 now contains eight software modules: two classical cryptographic modules, ECDH 712 and RSA-OAEP 714; two post-quantum modules, Kyber 716 and NTRU 718; a new quantum-safe module, McEliece 720; and three signature modules, as indicated by label 702-3: DSA 722, RSA-PSS 724, and Falcon 726. As indicated by label 702-4, the cryptographic software module paths are protected by CA1 and CA2. Modules can only be updated based on CA1, CA2, and application server 704; otherwise, these modules are only read and executed.
[0162] At step 744, client application 702 and application server 704 can then negotiate a new cryptographic protocol. In this example, the new cryptographic protocol may include deriving a hybrid key using ECDH cryptographic software module 712, Kyber software module 716, and McEliece software module 720. Client application 702 and application server 704 can modify their respective protocol files (e.g., server computer protocol file 730) to reflect the negotiated protocol. Application server 704 may store protocol file 730 in its operator database 708.
[0163] At step 744, the client application and application server 704 can test the new protocol to verify that it will be suitable for subsequent encryption and decryption operations. Client application 702 can encrypt a test message using a session key derived according to the new cryptographic protocol and send the encrypted test message to application server 704. Application server 704 can look up the cryptographic protocol (sometimes referred to as "carrier configuration") in operator database 708 and then decrypt the encrypted test message. Application server 704 can use cryptographic server 706 to decrypt the encrypted test message. Afterwards, application server 704 can create an indication message based on the test message and send it back to client application 702. Client application 702 can evaluate the verification message to determine whether the test was successfully completed.
[0164] VI. Encrypt messages using the new cryptographic protocol
[0165] After negotiating a new cryptographic protocol, updating the computer system and server computer protocol files, and testing the new cryptographic protocol, the computer system and server computer can use the new cryptographic protocol to securely transmit messages. This can be achieved using steps, methods, or techniques similar to those described above in Part IV.B. The following example illustrates a possible way for the computer system to encrypt an “additional message” and send it to the server computer (to distinguish it from any messages sent before the cryptographic protocol was updated). In this example, during a previous cryptographic protocol update, the computer system protocol file and server computer protocol file were updated to identify the additional cryptographic algorithm (e.g., a quantum-resistant cryptographic algorithm) implemented using an additional cryptographic software module. In addition to the additional cryptographic software module, the computer system protocol file and server computer protocol file also identify one or more cryptographic software modules. The one or more cryptographic software modules may include cryptographic software modules used to implement the cryptographic protocol prior to the cryptographic protocol update.
[0166] To encrypt additional messages, a computer system can use a computer system protocol file to identify one or more cryptographic software modules and additional cryptographic software modules. Using these cryptographic software modules, the computer system can generate multiple additional secret shares corresponding to the one or more cryptographic software modules and the additional cryptographic software modules. These secret shares may include, for example, a cryptographic key corresponding to each cryptosystem, with each cryptosystem corresponding to each software module. As an example, the secret share corresponding to an AES module may include a symmetric AES key. Therefore, these secret shares can be generated using, for example, a key generation algorithm implemented by the cryptographic software modules. One or more of the multiple additional shared secrets may correspond to one or more cryptographic software modules, and one of these shared secrets may correspond to an additional cryptographic software module.
[0167] After generating multiple additional shared secrets, the computer system can use a key derivation function and multiple additional secret shares to generate an additional session key. The key derivation function can be included in a library of cryptographic software modules stored on the computer system. The computer system can then use the additional session key to encrypt an additional message to generate the additional encrypted message. The computer system can form an additional message packet that includes the additional encrypted message and the computer system identifier. The computer system can then send this additional message packet (via a network such as the Internet) to a server computer to securely transmit the information or data (e.g., login information, payment account, etc.) stored in the additional message.
[0168] If needed, the computer system can transmit any information required by the server computer to generate additional shared secrets. For example, in an embodiment using encapsulation, the computer system can use an encapsulation function (or key encapsulation mechanism) and one or more cryptographic keys to generate one or more encapsulations and send the encapsulations to the server computer. The one or more cryptographic keys may correspond to cryptographic software modules used to generate the respective secret shares, such as one or more cryptographic software modules and an additional cryptographic software module. Later, the server computer can use a decapsulation function and one or more corresponding cryptographic keys to generate one or more shared secrets.
[0169] The server computer can receive additional message packets and then use a computer system identifier to identify the server computer protocol file corresponding to the computer system protocol file. As an example, the server computer can identify the server computer protocol file by querying a database that stores database entries relating to server computer protocol files that can be identified using a computer system identifier and their corresponding computer systems, and / or relating to server computer protocol files and their corresponding carrier accounts. This server computer protocol file can identify the cryptographic software module used to generate the shared secret, or alternatively, identify the cryptographic key used by the server computer to generate the corresponding shared secret.
[0170] The server computer can then use, for example, multiple cryptographic software modules or multiple cryptographic keys stored on the server computer to generate multiple additional shared secrets corresponding to the server computer's protocol file. Alternatively, the server computer can obtain these secrets from a cryptographic server (e.g., Figure 1 The cryptographic server 118 in the system requests cryptographic services. If necessary, the server computer and / or the cryptographic server can use decapsulation functions to generate multiple additional secret shares using the encapsulation received from the computer system.
[0171] The server computer (or cryptographic server) can then use a key derivation function and multiple additional shared secrets to generate an additional session key. Using the additional session key, the server computer can decrypt the encrypted additional message to retrieve it. The server computer can then perform any additional operations based on the additional message and its intended functionality. For example, if the server computer is used to control access to digital resources such as subscriptions to streaming services or cloud computing services, it can evaluate login information contained in the additional message to authenticate the computer system. As another example, if the server computer is used to process payment transactions (e.g., credit card transactions), it can evaluate payment information stored in the additional message and forward the additional message or payment information to an authorized entity such as an issuing bank.
[0172] VII. Computer System
[0173] Any computer system mentioned in this article can use any suitable number of subsystems. Figure 8 Examples of such subsystems in a computer system 800 are shown. In some embodiments, the computer system includes a single computer device, wherein the subsystem may be a component of the computer device. In other embodiments, the computer system may include multiple computer devices having internal components, each of which is a subsystem. The computer system may include desktop and laptop computers, tablet computers, mobile phones, and other mobile devices.
[0174] Figure 8 The subsystems shown are interconnected via system bus 812. Additional subsystems are shown, such as printer 808, keyboard 818, storage device 820, monitor 824 (e.g., display screen, such as LED) coupled to display adapter 814, etc. Peripheral devices and I / O devices coupled to input / output (I / O) controller 802 can be connected to the computer system via various components known in the art, such as input / output (I / O) port 816 (e.g., USB, etc.). For example, I / O port 816 or external interface 822 (e.g., Ethernet, Wi-Fi, etc.) can be used to connect computer system 800 to a wide area network such as the Internet, a mouse input device, or a scanner. Interconnection via system bus 812 allows central processing unit 806 to communicate with each subsystem and control the execution of multiple instructions from system memory 804 or storage device 820 (e.g., a fixed disk, such as a hard disk drive or optical disk), as well as the exchange of information between subsystems. System memory 804 and / or storage device 820 may embody a computer-readable medium. Another subsystem is a data collection device 810, such as a camera, microphone, accelerometer, etc. Any data mentioned herein can be output from one component to another and can be output to the user.
[0175] A computer system may include multiple identical components or subsystems connected together, for example, via an external interface 822, an internal interface, or via a removable storage device that can be attached to and removed from one component to another. In some embodiments, the computer system, subsystem, or device may communicate via a network. In such cases, one computer may be considered a client and another computer a server, where each computer may be part of the same computer system. The client and server may each include multiple systems, subsystems, or components.
[0176] Various aspects of the embodiments may be implemented using hardware circuitry (e.g., application-specific integrated circuits or field-programmable gate arrays) and / or in a modular or integrated manner using computer software in the form of control logic via a generally programmable processor. As used herein, a processor may include a single-core processor, a multi-core processor on the same integrated chip, or multiple processing units on a single circuit board or networked, as well as dedicated hardware. Based on the disclosure and teachings provided herein, those skilled in the art will recognize and understand other ways and / or methods of implementing the embodiments of this disclosure using hardware and combinations of hardware and software.
[0177] Any software component or function described in this application may be implemented as processor-executable software code using any suitable computer language such as Java, C, C++, C#, Objective-C, Swift, or a scripting language such as Perl or Python, employing conventional or object-oriented techniques. The software code may be stored as a series of instructions or commands on a computer-readable medium for storage and / or transmission. Suitable media include random access memory (RAM), read-only memory (ROM), magnetic media (e.g., hard disk drive or floppy disk), or optical media (e.g., optical disc (CD) or DVD (Digital Universal Disc)), flash memory, etc. The computer-readable medium may be any combination of such storage or transmission means.
[0178] Such programs can also be encoded and transmitted using carrier signals suitable for transmission over wired, optical, and / or wireless networks conforming to various protocols, including the Internet. Therefore, computer-readable media according to embodiments of the invention can be created using data signals encoded with such programs. Computer-readable media encoded with program code can be packaged with a compatible device or provided separately from other devices (e.g., via Internet download). Any such computer-readable medium can reside on or within a single computer product (e.g., a hard disk drive, CD, or an entire computer system) and can exist on or within different computer products within a system or network. The computer system may include a monitor, printer, or other suitable display for providing any of the results mentioned herein to a user.
[0179] Any method described herein can be performed, wholly or partially, by a computer system including one or more processors that can be configured to perform these steps. Therefore, embodiments may relate to computer systems configured to perform steps of any method described herein, possibly having different components that perform corresponding steps or groups of corresponding steps. Although steps are presented as numbered, the method steps herein may also be performed simultaneously or in different orders. Furthermore, portions of these steps may be used in conjunction with portions of other steps from other methods. Similarly, all or part of a step may be optional. Additionally, any step of any method may be performed using modules, circuitry, or other means for performing these steps.
[0180] The specific details of particular embodiments may be combined in any suitable manner without departing from the spirit and scope of the embodiments of the invention. However, other embodiments of the invention may relate to specific embodiments associated with each other aspect or a particular combination of these individual aspects. The foregoing description of exemplary embodiments of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms described; many modifications and variations are possible in accordance with the teachings above. These embodiments were chosen and described in order to best explain the principles of the invention and its practical application, thereby enabling those skilled in the art to best utilize the invention in various embodiments and to make various modifications suitable for the particular intended use.
[0181] The above description is illustrative and not restrictive. Many variations of the invention will become apparent to those skilled in the art upon reading this disclosure. Therefore, the scope of the invention should not be determined by reference to the above description, but rather by reference to the pending claims and their full scope or equivalents.
[0182] Without departing from the scope of the invention, one or more features from any embodiment may be combined with one or more features from any other embodiment.
[0183] Unless explicitly indicated otherwise, the use of “a” or “the” is intended to mean “one or more”. The use of “or” is intended to mean “inclusive or” rather than “exclusive or” unless explicitly indicated otherwise.
[0184] All patents, patent applications, publications, and descriptions mentioned herein are incorporated herein by reference in their entirety for all purposes. They are not acknowledged as prior art.
Claims
1. A method for securely transmitting messages, comprising the following operations performed by a computer system: One or more cryptographic software modules are identified based on a computer system protocol file, wherein the one or more cryptographic software modules are a subset of a cryptographic software module library stored on the computer system; Generate one or more shared secrets corresponding to the one or more cryptographic software modules; Use the key export function and the one or more shared secrets to generate a session key; The message is encrypted using the session key to generate an encrypted message; A message packet including the encrypted message and a computer system identifier is sent to a server computer, wherein the server computer is configured to use the computer system identifier to identify a server computer protocol file, generate the one or more shared secrets, generate the session key, and decrypt the encrypted message; After sending the message packet, the computer system protocol file is updated to identify additional cryptographic software modules in addition to the one or more cryptographic software modules. A protocol update message is sent to the server computer, the protocol update message indicating that the computer system protocol file has been updated, wherein the protocol update message includes the computer system identifier for the server computer to identify the server computer protocol file to be updated; The computer system protocol file identifies the one or more cryptographic software modules and the additional cryptographic software module; Generate multiple additional shared secrets corresponding to the one or more cryptographic software modules and the additional cryptographic software modules; Use the key derivation function and multiple additional secret shares to generate an additional session key; The additional session key is used to encrypt the additional message to generate an additional encrypted message; as well as An additional message packet, including the additional encrypted message and the computer system identifier, is sent to the server computer, wherein the server computer is configured to use the computer system identifier to identify the server computer protocol file, generate the plurality of additional shared secrets, generate the additional session key, and decrypt the additional encrypted message.
2. The method of claim 1, wherein the one or more shared secrets are generated using an encapsulation function and one or more cryptographic keys corresponding to the one or more cryptographic software modules, and wherein the method further comprises: One or more encapsulations are generated using a key encapsulation mechanism and the one or more cryptographic keys; as well as The one or more encapsulations are sent to the server computer, wherein the server computer is configured to use a decapsulation function and one or more corresponding cryptographic keys to generate the one or more shared secrets.
3. The method according to claim 1, further comprising: Use the key derivation function and the one or more shared secrets to generate a session signature key; as well as A digital signature is generated by signing the message packet using the session signing key, wherein the server computer is configured to verify the digital signature after receiving the message packet.
4. The method of claim 1, wherein the message includes credentials for authorizing interaction between a user of the user device and a resource provider operator of the computer system, and wherein the method further includes receiving the credentials from the user device.
5. The method of claim 1, further comprising, before identifying the one or more cryptographic software modules: During the registration process, the one or more cryptographic software modules are received from the server computer; The one or more cryptographic software modules are stored in the cryptographic software module library; and Modify the computer system protocol file to identify the one or more cryptographic software modules.
6. The method of claim 1, further comprising, before updating the computer system protocol file: Receive an additional cryptographic software module from the server computer, wherein the additional cryptographic software module includes a digital signature; The digital signature is verified using the public key corresponding to the manufacturer of the server computer, certificate authority, or trusted execution environment device; and The additional cryptographic software module is included in the cryptographic software module library.
7. The method of claim 6, further comprising sending a request message to the server computer before receiving the additional cryptographic software module, the request message requesting the sending of the additional cryptographic software module.
8. The method of claim 1, further comprising: Update the computer system protocol file to no longer identify at least one of the one or more cryptographic software modules; as well as A protocol update message is sent to the server computer, the protocol update message indicating that the computer system protocol file has been updated, the protocol update message further including the computer system identifier, wherein the server computer is configured to use the computer system identifier to identify the server computer protocol file, and to update the server computer protocol file to no longer identify at least one of the one or more cryptographic software modules.
9. The method of claim 1, further comprising: Generate test messages; Generate multiple test shared secrets corresponding to the one or more cryptographic software modules and the additional cryptographic software modules; Use the key export function and the multiple test shared secrets to generate a test session key; The test message is encrypted using the test session key to generate an encrypted test message; The encrypted test message is sent to the server computer, wherein the server computer is configured to generate the plurality of test shared secrets, generate the test session key, decrypt the encrypted test message, and generate an indication message based on the test message; Receive the instruction message from the server computer; as well as Based on the indication message, it is confirmed that the server computer protocol file has been successfully updated.
10. The method of claim 9, wherein the indication message includes the test message, wherein the computer system confirms that the server computer protocol file has been successfully updated by verifying a match between the indication message and the test message.
11. A method for securely transmitting messages, comprising the following operations performed by a server computer: Receive a message packet from a computer system, which includes an encrypted message and a computer system identifier, wherein the encrypted message is encrypted using a session key generated by the computer system using a key derivation function and one or more shared secrets generated using one or more cryptographic software modules; The server computer protocol file is identified based on the computer system identifier; Generate one or more shared secrets corresponding to the server computer protocol file; The session key is generated using the key derivation function and the one or more shared secrets; Decrypt the encrypted message using the session key to obtain the message; Upon receiving the message, an additional cryptographic software module is sent to the computer system, wherein the additional cryptographic software module includes a digital signature, and wherein the computer system is configured to: The additional cryptographic software module is verified by using the public key corresponding to the manufacturer of the server computer, certificate authority, or trusted execution environment device to verify the digital signature, and Add the additional cryptographic software module to the cryptographic software module library; Receive a protocol update message from the computer system, the protocol update message indicating that the computer system protocol file stored on the computer system has been updated to identify the additional cryptographic software module, the protocol update message also including the computer system identifier; The server computer protocol file is identified using the computer system identifier; as well as Update the server computer protocol file to instruct the computer system protocol file to identify the additional cryptographic software module; Receive an additional message packet from the computer system, the additional message packet including an additional encrypted message and the computer system identifier; The server computer protocol file is identified using the computer system identifier; Generate multiple additional shared secrets corresponding to the server computer protocol file, the multiple additional shared secrets including the one or more shared secrets and additional shared secrets corresponding to the additional cryptographic software module; Use the key derivation function and the plurality of additional shared secrets to generate an additional session key; and Use the session key to decrypt the additional encrypted message to retrieve the additional message.
12. The method of claim 11, further comprising receiving from the computer system one or more encapsulations corresponding to the one or more shared secrets. The generation of one or more shared secrets corresponding to the server computer protocol file, and the generation of the session key using the key derivation function and the one or more shared secrets, are achieved in the following ways: Send the one or more encapsulations to a cryptographic server, wherein the cryptographic server is configured to: The identifier corresponds to one or more private keys encapsulated in the one or more packages. The one or more shared secrets are generated by decapsulating the one or more encapsulations using the one or more private keys. The session key is generated using the key derivation function and the one or more shared secrets, and The session key is sent to the server computer.
13. The method of claim 11, further comprising, before sending the additional cryptographic software module: Receive a request message from the computer system, the request message including the computer system identifier and computer system parameters; and Based on the computer system parameters, the additional cryptographic software module is determined from a plurality of additional cryptographic software modules.
14. The method of claim 11, further comprising, before receiving the message packet: During the registration process, the one or more cryptographic software modules are sent to the computer system, wherein the computer system is configured to store the one or more cryptographic software modules in the cryptographic software module library and modify the computer system protocol file to identify the one or more cryptographic software modules.
15. The method of claim 12, further comprising: Receive an encryption test message from the computer system; One or more test secret shares are generated based on the server computer protocol file; Use the key derivation function and the one or more test secret shares to generate a test session key; The encrypted test message is decrypted using the test session key to generate a test message; Generate an indication message based on the test message; as well as The instruction message is sent to the server computer.
16. The method of claim 15, wherein the indication message includes the test message.
17. A computer system, comprising: processor; as well as A non-transient computer-readable medium coupled to the processor, the non-transient computer-readable medium comprising code executable by the processor to implement the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Cryptographic module management apparatus, method, and program
US20090129586A1
Leveraging transport-layer cryptographic material
US20180026950A1
