Data integrity enhancements for authenticated encryption algorithms

By generating and inserting Error Detection Codes (EDCs) into the authentication encryption algorithm, the problem of not being able to detect errors in the encryption or decryption process in existing technologies is solved, ensuring the integrity and reliability of end-to-end data.

CN115804062BActive Publication Date: 2026-11-20MICROCHIP TECHNOLOGY INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202180047559.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-06-15
Filing Date
2021-06-11
Publication Date
2026-11-20
Estimated Expiration
2041-06-11

AI Technical Summary

Technical Problem

Existing authentication encryption algorithms such as AES-GCM cannot detect hard or soft errors during encryption or decryption without changing the message structure, thus failing to ensure end-to-end data integrity.

Method used

By generating an error detection code (EDC) in the authentication encryption algorithm and inserting it into the data block, an authentication code is generated to check data integrity, ensuring the integrity of data during encryption and decryption.

Benefits of technology

It enables the detection and assurance of end-to-end data integrity without altering the message structure, thereby enhancing the reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115804062B_ABST
    Figure CN115804062B_ABST
Patent Text Reader

Abstract

One or more examples generally relate to systems, methods, and devices for performing authentication encryption that provides assurance of data authenticity through encryption and decryption processes.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications

[0002] This application claims the benefit of U.S. Provisional Patent Application Serial No. 62 / 705,194, filed June 15, 2020, pursuant to 35 USC §119(e), the contents and disclosure of which are incorporated herein by reference in their entirety. Technical Field

[0003] One or more examples generally relate to electronic communications and communication systems. One or more examples generally relate to data integrity and end-to-end data integrity suitable for high-reliability applications. One or more examples generally relate to encryption and forms of encryption that simultaneously ensure the confidentiality and authenticity of data, and more specifically, to authenticated encryption. Background Technology

[0004] Data security and authenticity are important considerations in all situations, including but not limited to data communication using electronic communication systems. Attached Figure Description

[0005] To facilitate identification of any discussion of a particular element or action, the most important one or more numbers in the reference numerals refer to the figure number in which the element is first introduced.

[0006] Figure 1 It is a block diagram depicting an electronic communication system based on one or more examples.

[0007] Figure 2 It is a functional flow diagram depicting the sending side's process for communicating using authentication encryption with error detection codes (EDC) according to one or more examples.

[0008] Figure 3 It is a flowchart depicting, according to one or more examples, the process of the receiving side for communicating using EDC-certified encryption.

[0009] Figure 4 It is a function flow diagram that describes the functional flow of the sending side of a communication system that utilizes EDC-based authentication encryption according to one or more examples.

[0010] Figure 5 It is a function flow diagram that depicts the functional flow of the receiving side of a communication system that utilizes EDC-based authentication encryption according to one or more examples.

[0011] Figure 6 It is a functional block diagram depicting the data transformation based on one or more examples of algorithms for authentication encryption using EDC.

[0012] Figure 7It is a functional block diagram depicting the data transformation based on one or more examples of algorithms for authentication encryption using EDC.

[0013] Figure 8 It is a circuit, based on one or more examples, that can be used to implement various functions, operations, actions, processes, or methods. Detailed Implementation

[0014] In the following detailed description, reference is made to the accompanying drawings, which form part of this disclosure, and specific examples of how this disclosure may be practiced are shown by way of example in the drawings. These examples are described in sufficient detail to enable those skilled in the art to practice this disclosure. However, other examples enabled herein may be utilized, and structural, material, and process changes may be made without departing from the scope of this disclosure.

[0015] The illustrations presented herein are not intended to be actual views of any particular method, system, device, or structure, but are merely idealized representations used to describe examples of this disclosure. In some cases, for the convenience of the reader, similar structures or components in the various figures may retain the same or similar numbering; however, similarity in numbering does not necessarily mean that the structures or components are identical in size, composition, construction, or any other property.

[0016] The following description may include examples to assist those skilled in the art in practicing the examples disclosed herein. The use of the terms “exemplary,” “for example,” and “e.g.” indicates that the related description is illustrative, and while the scope of this disclosure is intended to cover examples and legal equivalents, the use of such terms is not intended to limit the disclosed examples or the scope of this disclosure to the specified components, steps, features, functions, etc.

[0017] It should be readily understood that the components of the examples described herein and shown in the accompanying drawings can be arranged and designed in a variety of different configurations. Therefore, the following description of various examples is not intended to limit the scope of this disclosure, but rather to represent various examples only. While various aspects of these examples are given in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated otherwise.

[0018] Furthermore, the specific embodiments shown and described are merely examples and should not be construed as the only way to implement this disclosure unless otherwise indicated herein. Components, circuits, and functions may be shown in block diagram form so as not to obscure this disclosure with unnecessary detail. Rather, the specific embodiments shown and described are merely exemplary and should not be construed as the only way to implement this disclosure unless otherwise indicated herein. Additionally, block definitions and logical partitioning between blocks are examples of specific embodiments. It will be apparent to those skilled in the art that this disclosure can be practiced with many other partitioning solutions. In most cases, details regarding timing considerations, etc., have been omitted, where such details do not require a full understanding of this disclosure and are within the capabilities of those skilled in the art.

[0019] Those skilled in the art will understand that information and signals can be represented using any of a variety of different techniques and methods. For clarity of presentation and description, some accompanying drawings may show a signal as a single signal. It should be understood by those skilled in the art that a signal may represent a signal bus, wherein the bus may have multiple bit widths, and this disclosure can be implemented on any number of data signals, including a single data signal.

[0020] The various exemplary logic blocks, modules, algorithms, and circuits described in conjunction with the examples disclosed herein can be implemented or carried out using a general-purpose processor, a special-purpose processor, a digital signal processor (DSP), an integrated circuit (IC), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic components, discrete hardware components, or any combination thereof designed to implement the functions described herein, the term "processor" being used to encompass all of the above. A general-purpose processor may be a microprocessor, but alternatively, a processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. A general-purpose computer including a processor is considered a special-purpose computer when it is configured to execute computational instructions (e.g., software code, but not limited thereto) related to the examples of this disclosure.

[0021] Examples can be described based on processes depicted as flowcharts, schematic diagrams, structural diagrams, or block diagrams. While a flowchart may describe actions as a continuous process, many of these actions may be performed in another sequence, in parallel, or substantially simultaneously. Furthermore, the order of actions can be rearranged. Processes in this document may correspond to methods, threads, functions, procedures, subroutines, subroutines, other structures, or combinations thereof. Furthermore, the methods disclosed herein can be implemented in hardware, software, or both. If implemented in software, these functions may be stored or transferred as one or more instructions or code onto a computer-readable medium. Computer-readable media includes both computer storage media and communication media, which includes any medium that facilitates the transfer of a computer program from one location to another.

[0022] Any reference to elements in this document using names such as "first," "second," etc., does not limit the number or order of those elements unless such limitation is explicitly stated. Rather, these names may be used herein as a convenient way to distinguish between two or more elements or instances of elements. Thus, referring to a first element and a second element does not imply that only two elements can be used there, or that the first element must somehow precede the second element. Furthermore, unless otherwise specified, a group of elements may include one or more elements.

[0023] As used herein, the term "substantially" means and includes, to a certain extent, that a person skilled in the art will understand that the given parameter, property, or condition is satisfied with minor variations (such as within acceptable manufacturing tolerances). By way of example, depending on the specific parameter, property, or condition that is substantially satisfied, it may be satisfied at least 90%, at least 95%, or even at least 99%.

[0024] As used herein, any relational terms (such as "above", "below", "on", "under", "upper", "lower", etc.) are used for clarity and convenience in understanding this disclosure and the accompanying drawings, and such relational terms do not imply or depend on any particular preference, orientation or order unless the context clearly indicates otherwise.

[0025] In this description, the term "coupled" and its derivatives may be used to indicate that two elements cooperate or interact with each other. When an element is described as "coupled" to another element, the element may be in direct physical or electrical contact, or an intermediary element or layer may be present. In contrast, when an element is described as "directly coupled" to another element, no intermediary element or layer is present. The term "connection" is used interchangeably with the term "coupled" in this specification and has the same meaning unless otherwise expressly indicated or the context will otherwise indicate to a person skilled in the art.

[0026] As used in this article, "string" refers to a sequence of symbols. As used in this article, "code" refers to a string generated by performing a specific operation, which assigns a specific utility to the generated string.

[0027] Authentication encryption algorithms are algorithms that, in theory, can simultaneously ensure the confidentiality and authenticity of data.

[0028] As a non-limiting example, GCM is an operational mode used in symmetric-key block ciphers, and it is often paired with the Advanced Encryption Standard (AES) symmetric-key block cipher (an algorithm that applies GCM mode to AES is called the "AES-GCM algorithm"). The AES-GCM algorithm is used as an encryption scheme for network communication.

[0029] Authentication encryption with associated data is a variation of authentication encryption that authenticates both the encrypted data and the unencrypted so-called "associated data" in a message. Non-limiting examples of authentication encryption algorithms include encryption-with-authentication, encryption-with-authentication, and authentication-with-encryption. Non-limiting examples of authentication encryption algorithms used in conjunction with block ciphers include, but are not limited to, Galois counter mode (GCM), Carter-Wegman mode with counter (CWC mode), counter with cipher block chaining message authentication code (CCM mode), or branch-coded mode (OCB mode).

[0030] As a non-limiting example, the authentication mode of AES-GCM involves generating a message authentication code (referred to as a GCM message authentication code (GMAC) or "GMAC tag"), which is designed to reveal both accidental errors and intentional modifications to the data during transmission. AES-GMAC is a special type of AES-GCM algorithm that is sometimes used to provide authentication guarantees when the input data is not encrypted.

[0031] The known authentication encryption algorithms (such as AES-GCM) disclosed herein do not include (e.g., naturally, but not limited to) mechanisms for detecting hard or soft errors that occur during the encryption or decryption phase of the algorithm. In communication systems used in high-reliability products, end-to-end data integrity is typically required, and undetectable errors are unacceptable. Techniques for ensuring end-to-end data integrity in protected communication using the known AES-GCM algorithm of this disclosure generally involve: altering the message structure by enhancing the message structure so that the enhanced message carries the original message and an error detection code; encrypting the enhanced message; and generating an authentication code using the encrypted enhanced message. Modifications to the message structure are not permitted by certain communication protocols or may be undesirable for other reasons.

[0032] The inventors of this disclosure recognize the need for a mechanism that provides end-to-end data integrity, which includes the encryption and decryption processes utilized in the authentication encryption algorithm without altering the message structure sent to transmit messages according to a specific communication protocol.

[0033] One or more examples generally relate to systems, methods, and apparatus for performing certified encryption that provides end-to-end data integrity, which includes encryption and decryption processes.

[0034] In one or more examples, an Error Detection Code (EDC) is generated and inserted into the data block used by the authentication encryption algorithm to generate an authentication encrypted data block. In one or more examples, the EDC is inserted into the following parts of the data block: the presence of the EDC does not affect the message structure of the message that includes a portion of the data block. For example, the presence of the EDC in the part of the data block encrypted by the authentication encryption algorithm affects the message structure, while the part of the data block strictly used for authentication, more specifically for generating the authentication code, only exists when the authentication code is generated and does not affect the data content stored in the packet's payload.

[0035] The process of generating an authentication code is applied to the modified data block, including the EDC and ciphertext. It is important to note that the generated authentication code serves as an authentication token for the message (i.e., used to ensure the data integrity of messages and message segments transmitted via packet data transmission), and also as an authentication token used in the encryption and decryption processes to ensure message security (i.e., used to ensure the data integrity of messages and message segments during the encryption process of converting plaintext to ciphertext). The sender transmits the authentication code along with the encrypted message segment.

[0036] At the receiver of the authenticated encrypted message (and more specifically, the encrypted message and authentication code), plaintext data is recovered from the encrypted message, at least in part, in response to the application of a decryption process to the ciphertext within the message. An EDC (Employment Data Capacity) is generated using the plaintext data recovered from the ciphertext. The EDC is inserted into the data block used at the receiver to generate an authentication code (sender authentication code). The authentication code (receiver authentication code) received with the message and the second authentication code are compared via the authentication process, and if, based on the authentication process, the first authentication code and the sender authentication code differ, this difference indicates the presence of an error in the message, and erroneous data is detected. If, based on the authentication process, the first authentication code and the sender authentication code are the same, this sameness indicates that the data is error-free.

[0037] It is worth noting that the disclosed authentication code is an authentication token used for a data path that begins by applying an encryption process to plaintext data to produce ciphertext data and ends by recovering plaintext data from the ciphertext data. The disclosed example extends data integrity to include encryption and decryption capabilities, which further guarantees that the received message corresponds to the message the sender intended to receive.

[0038] It is worth noting that the disclosed authentication encryption algorithm can be used for end-to-end data integrity when used with communication protocols that do not allow changes to the message structure, or when no changes to the message structure are desired. More generally, it can be used for error detection.

[0039] Figure 1 This is a block diagram depicting a communication system 100 according to one or more examples. In one or more examples, the communication system 100 may be or include interconnects, such as High-Speed ​​Peripheral Component Interconnect (PCIe), High-Speed ​​Compute Link (CXL), or variations thereof, but is not limited thereto, or utilize Layer 2.0 protocols operating at the data link layer, such as Media Access Control Security (MACsec), but is not limited thereto. Communication 110 between a first party 102 (the transmitting side of the communication system 100) and a second party 104 (the receiving side of the communication system 100) includes authenticated and encrypted data blocks 106 (i.e., "authenticated encrypted data blocks 106"). More specifically, according to one or more examples, data block 106 is authenticated by an authentication code 108 for use with EDC-based authentication encryption.

[0040] Figure 2 It is a functional flow diagram depicting a sending-side process 200 for using EDC authentication encryption based on one or more examples.

[0041] At operation 202, process 200 generates an error detection code in at least part of the response to plaintext data. In one or more examples, process 200 may derive the error detection code from plaintext data by applying a cryptographic primitive to the plaintext data, such as, but not limited to, a cryptographic hash function used to derive a cyclic redundancy check (CRC), checksum, or Hamming code.

[0042] At operation 204, process 200 generates ciphertext in at least part response to applying the encryption process to the plaintext data. In one or more examples, the encryption process may be the encryption part of an authentication encryption process (e.g., AES, RSA, Serpent, Data Encryption Standard (DES), ChaCha20 symmetric cryptography, or Diffie-Hellman, but not limited to).

[0043] At operation 206, process 200 generates a modified data block, at least in part, in response to adding the EDC generated in operation 202 to a data block comprising the ciphertext data generated in operation 204. In one or more examples, any portion of the data block may be selected to insert the EDC, which includes or is allocated for authentication data as discussed herein (e.g., data for generating authentication codes). In one or more examples, the selected portion of the data block may include data for authentication but not encrypted, encrypted data for authentication, or both (e.g., the EDC may be separated or multiple EDCs may be generated, but not limited to this). In one or more examples, the EDC is not sent with the authenticated encrypted data block and is used only for authentication. In one or more examples, the EDC may be inserted at portions of the data block for associated data (e.g., "Additional Authentication Data" (AAD) in the GCM, but not limited to this), ciphertext, or padding symbols, or at portions appended to or applied to it (e.g., for applying encryption or transformation, but not limited to this), but not limited to this.

[0044] At operation 208, process 200 generates a receiver authentication code in at least a partial response to the modified data block. In one or more examples, the authentication portion of the authentication encryption process may be applied to the modified data block, including the EDC, to generate the receiver authentication code. Non-limiting examples of the authentication portion include GCM, CWC mode, CCM mode, OCB mode, or Poly1305. The primitive function can be used to generate receiver authentication codes, such as the GHASH used in AES-GCM. H GCTR K and MSB t function.

[0045] At operation 210, process 200 generates an authenticated encrypted data block in at least part of response to the data block and the generated receiver authentication code. In one or more examples, process 200 may associate the data block with the generated receiver authentication code (e.g., by tagging the encrypted data block with the authentication code, but not limited thereto) to generate the authenticated encrypted data block.

[0046] At operation 210, process 200 may optionally send the authenticated encrypted data block generated at operation 210.

[0047] Figure 3 It is a flowchart depicting a receiving-side process 300 for using EDC-based authentication encryption according to one or more examples.

[0048] At operation 302, process 300 may optionally receive an authentication encrypted data block. For example, this authentication encrypted data block may be generated according to process 200.

[0049] At operation 304, process 300 generates plaintext data in at least part response to applying the decryption process to the ciphertext included in the authenticated encrypted data block. In one or more examples, the decryption process may be part of an authenticated decryption process (e.g., AES, RSA, Serpent, Data Encryption Standard (DES), ChaCha20 symmetric cryptography, or decryption utilized in Diffie-Hellman, but not limited thereto).

[0050] At operation 306, process 300 generates a modified receiver data block in at least part of response to adding a receiver error detection code to the receiver data block. This receiver data block may be, include, or substantially correspond to the authentication encryption data block.

[0051] In one or more examples, the receiver EDC is derived from the plaintext data generated in operation 304. In one or more examples, the first portion of the receiver data block is unencrypted (associated data), and the second portion of the data block includes encrypted data, i.e., ciphertext data. In one or more examples, the receiver EDC may be added to a portion of the receiver data block that is the same as or complementary to the portion of the transmitter data block into which the transmitter EDC is inserted.

[0052] At operation 308, process 300 generates a receiver authentication code in at least part response to the modified data block. In one or more examples, the authentication portion of the authentication decryption process may be applied to the receiver modified data block to generate a transmitter authentication code, as discussed above.

[0053] At operation 310, process 300 detects the presence or absence of erroneous data in the modified data block in at least part of response to an indication of a difference between the transmitter authentication code (received at operation 302 along with the authentication encrypted data block) and the receiver authentication code (generated at operation 308).

[0054] There are no limitations on the number and causes of detectable erroneous data. Non-limiting examples include: data err during transmission, data err during encryption, data err during decryption, data being intentionally manipulated, or authenticated data blocks not being authenticated by the publicly disclosed encryption algorithm that provides end-to-end data integrity authentication.

[0055] Figure 4 This is a functional flow diagram depicting the functional flow of a transmitting side 400 of a communication system utilizing EDC-based authentication encryption according to one or more examples. The transmitting side 400 includes a processor 402 that communicates with an optional transmitter 414 to transmit plaintext data 416 as authenticated encrypted data 426.

[0056] Processor 402 is generally configured to generate authenticated encrypted data 426 in response at least in part to applying the EDC-enabled authentication encryption algorithm 434 (algorithm 434) to plaintext data 416. Figure 4 Various dependencies of the functional blocks used to execute algorithm 434, an authentication encryption algorithm utilizing EDC, are described. Upon receiving plaintext data 416, the encryption algorithm is applied to plaintext data 416 at block 404 to generate ciphertext data 428. As a non-limiting example, such an encryption algorithm could be the encryption portion of an authentication encryption algorithm, as discussed herein. At block 406, an EDC generation algorithm for deriving error detection codes is applied to plaintext data 416 to generate transmitter EDC 420.

[0057] Ciphertext data 428 is combined with transmitter-associated data 430 at adder block 432 to generate transmitter data block 418. Data block 418 may include various strings, including ciphertext data 428, transmitter-associated data 430, and other data. In one or more examples, transmitter-associated data 430 may be data used for authentication but not encrypted (and in one or more examples, not sent, but not limited to this). Input data 430 may include network protocol data for a specific communication protocol used to encrypt and authenticate communications using algorithm 434, such as address, port, sequence number, protocol, and version number. Additionally or alternatively, transmitter-associated data 430 may include fields describing the processing of plaintext data 416.

[0058] Transmitter EDC 420 is combined with transmitter data block 418 at adder block 408 to generate transmitter modified data block 422. To combine transmitter EDC 420 and transmitter data block 418 at adder block 408, transmitter EDC 420 can be inserted into any part of transmitter data block 418. Figure 4 Two signal paths are depicted for transmitter data block 418: a first signal path to adder block 408, where transmitter EDC 420 combines with transmitter data block 418 to generate transmitter modified data block 422; and a second signal path to adder block 412, where this transmitter data block is combined with transmitter authentication code 424. Instances of transmitter data block 418 transmitted to adder block 408 and transmitted to authentication block 410 as transmitter modified data block 422 are ultimately transformed by the process of generating transmitter authentication code 424. Instances of transmitter data block 418 transmitted to adder block 412 are not modified by transmitter EDC 420, nor are they transformed like instances of transmitter data block 418 input to adder block 408. Therefore, when the transmitter EDC 420 is used to generate the transmitter modified data block 422 and the transmitter authentication code 424, it is neither used by nor included in the transmitter data block 418, and the transmitter data block 418 can be transmitted without the transmitter EDC 420.

[0059] At block 410, the authentication algorithm used to derive the code is applied to the transmitter's modified data block 422 to generate a transmitter authentication code 424. The transmitter authentication code 424 is combined with the transmitter data block 418 at adder 412 to generate authenticated encrypted data 426 (e.g., transmitter data block 418 is labeled with transmitter EDC 420, but is not limited thereto). In one or more examples, an optional transmitter 414 may be provided to send the authenticated encrypted data 426.

[0060] Figure 5 This is a functional flow diagram depicting the functional flow of a receiving side 500 of a communication system utilizing EDC-based authentication encryption according to one or more examples. The receiving side 500 includes a processor 512 to detect the presence or absence of erroneous data in the received authentication encryption data 514.

[0061] Processor 512 is generally configured to generate an indication 524 of the presence or absence of erroneous data in the authentication encrypted data 514, at least in part, in response to applying the authentication decryption algorithm 532 (algorithm 532) utilizing EDC to the authentication encrypted data 514.

[0062] Plaintext data 516 is generated by applying a decryption algorithm to the ciphertext data of authentication encryption data 514 at decryption block 504. At block 502, an algorithm for deriving the EDC is applied to plaintext data 516 to generate EDC 518. At block 528, EDC 518, authentication encryption data 514, and receiver association data 526 (which may have the same or different content as transmitter association data 430) are combined to generate receiver modified data block 520. At block 506, an authentication algorithm for deriving the code is applied to receiver modified data block 520 to generate receiver authentication code 510.

[0063] At block 530, the receiver authentication code 510 is compared with the sender authentication code 522 of the authentication encrypted data 514, and an indication 524 of the result is generated. As a non-limiting example, this comparison can be performed according to the authentication process. The detector 508 uses the output or result of the authentication process indicated by the indication 524 to detect the presence or absence of erroneous data in the authentication encrypted data 514.

[0064] Figure 6 It is a functional block diagram depicting data transformation using EDC-enabled authentication encryption based on one or more examples of algorithm 600. Figure 6 The described flow of Algorithm 600 generally supplements Figure 4 The flowchart of algorithm 434 is described.

[0065] exist Figure 6 In the specific, non-limiting example depicted, algorithm 600 begins by receiving plaintext data P (data block 602), similar to... Figure 4 Received plaintext data 416.

[0066] The derivation function EDC Gen (function block 606) takes plaintext data P as input and generates EDC data EDC (data block 618). Ciphertext data C (data block 608) is generated by the encryption function Encrypt Gen (function block 604) which takes plaintext data P as input.

[0067] The modified data block S′ (block 612) includes ciphertext data C, associated data A (data block 610), and EDC data EDC (here, it is inserted together with associated data A). The apostrophe in modified data block S′ is used here to indicate the modified data block S′ generated by adding EDC data EDC to data block S.

[0068] Authentication code T T (Data block 616) is generated by the derivation function Auth Gen (function block 614) which takes the modified data block S′ as input. At block 622, the data block S and the authentication code T are... TThese are combined to generate an authenticated encrypted data block S″.

[0069] Figure 7 It is a functional block diagram depicting data transformation using EDC-based authentication encryption based on one or more examples of Algorithm 700. Figure 7 The described flow of Algorithm 700 generally supplements Figure 5 The flowchart of algorithm 532 is described.

[0070] exist Figure 7 In the specific, non-restrictive example depicted, algorithm 700 obtains data block S (data block 702) and sender authentication code T. T Begin. Data block S can be authentication encrypted data or obtained from that authentication encrypted data, for example... Figure 4 Authentication encrypted data 426 Figure 5 Authentication encrypted data 514 or Figure 6 The authentication encrypted data S″. Data block S includes ciphertext data C (data block 706) and associated data A (data block 708).

[0071] Plaintext data P (data block 712) is generated by the decryption function Decrypt Gen (function block 710) which takes ciphertext data C as input. Transmitter EDC data EDC (data block 726) is generated by the derivation function EDC Gen (function block 714) which takes the generated plaintext data P as input.

[0072] A modified data block S′ (data block 716) is generated by inserting the sender EDC data EDC into a data block S that includes ciphertext data C and associated data A. The sender EDC data EDC is inserted into data block S (here, we envision the portion of data block S that includes associated data A, rather than any part of data block S or any appended or applied portion (e.g., for applying encryption or transformation, but not limited to this)) to generate the modified data block S′.

[0073] Authentication code T R (Data block 720) is generated by the derivation function Auth Gen (function block 718) which takes the modified data block S′ as input. Authentication code T R The authentication code T obtained along with the same data block S T (Data block 704) is compared (function block 724). The result of this comparison indicates whether erroneous data exists or not at data block S.

[0074] Those skilled in the art will understand that the functional elements (e.g., functions, operations, actions, processes, or methods, but not limited thereto) of the embodiments disclosed herein can be implemented in any suitable hardware, software, firmware, or combination thereof. Figure 8Non-limiting examples of implementations of the functional elements disclosed herein are shown. In various examples, some or all portions of the functional elements disclosed herein may be executed by hardware specifically configured to perform the functional elements.

[0075] Figure 8 This is a block diagram of circuit 800, which, in various examples, can be used to implement the various functions, operations, actions, processes, or methods disclosed herein. Circuit 800 includes one or more processors 802 (sometimes referred to herein as "processor 802") operatively coupled to one or more data storage devices (sometimes referred to herein as "storage device 804"). Storage device 804 includes machine-executable code 806 stored thereon, and processor 802 includes logic circuitry 808. Machine-executable code 806 includes information describing functional elements that can be implemented (e.g., executed by) logic circuitry 808. Logic circuitry 808 is adapted to implement (e.g., execute) the functional elements described by machine-executable code 806. When executing the functional elements described by machine-executable code 806, circuit 800 should be considered as dedicated hardware configured to implement the functional elements disclosed herein. In various examples, processor 802 may be configured to execute the functional elements described by machine-executable code 806 sequentially, simultaneously (e.g., on one or more different hardware platforms), or in one or more parallel process flows.

[0076] When implemented by the logic circuitry 808 of the processor 802, the machine-executable code 806 is configured to adapt the processor 802 to perform the operations of the examples disclosed herein. For example, the machine-executable code 806 may be configured to adapt the processor 802 to perform at least some or all of the features and functions discussed in the reference communication system 100, the transmitting side 400, and the receiving side 500.

[0077] As a particular non-limiting example, machine-executable code 806 may be configured to adapt processor 802 to perform at least a portion of the EDC generation and authentication encryption utilizing EDC discussed herein, such as including... Figure 2 Process 200 Figure 3 The processes 300, 600, and 700.

[0078] Processor 802 may include a general-purpose processor, a special-purpose processor, a central processing unit (CPU), a microcontroller, a programmable logic controller (PLC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, other programmable devices, or any combination thereof designed to perform the functions disclosed herein. A general-purpose computer including a processor is considered a special-purpose computer when it is configured to perform functional elements corresponding to machine-executable code 806 (e.g., software code, firmware code, hardware description) associated with the examples of this disclosure. It should be noted that the general-purpose processor (which may also be referred to herein as a host processor or simply a host) may be a microprocessor; however, alternatively, processor 802 may include any conventional processor, controller, microcontroller, or state machine. Processor 802 may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.

[0079] In various examples, storage device 804 includes volatile data storage devices (e.g., random access memory (RAM)), non-volatile data storage devices (e.g., flash memory, hard disk drive, solid-state drive, erasable programmable read-only memory (EPROM), but not limited thereto). In various examples, processor 802 and storage device 804 may be implemented as a single device (e.g., semiconductor device product, system-on-a-chip (SoC), but not limited thereto). In various examples, processor 802 and storage device 804 may be implemented as separate devices.

[0080] In various examples, the machine-executable code 806 may include computer-readable instructions (e.g., software code, firmware code). As a non-limiting example, the computer-readable instructions may be stored in storage device 804, directly accessed by processor 802, and executed by processor 802 using at least logic circuitry 808. Also as a non-limiting example, the computer-readable instructions may be stored on storage device 804, transferred to a storage device (not shown) for execution, and executed by processor 802 using at least logic circuitry 808. Therefore, in various examples, logic circuitry 808 includes logic circuitry 808 that can be configured electrically.

[0081] In various examples, machine-executable code 806 may describe the hardware (e.g., circuitry) to be implemented in logic circuitry 808 to perform functional elements. This hardware can be described from any of a range of abstraction levels, from low-level transistor layout to high-level description languages. At high-level abstractions, hardware description languages ​​(HDLs), such as the IEEE Standard Hardware Description Language (HDL), can be used. As a non-limiting example, Verilog, SystemVerilog, or the Very Large Scale Integration (VLSI) Hardware Description Language (VHDL) can be used.

[0082] HDL descriptions can be transformed into descriptions at any of a variety of other levels of abstraction as needed. As a non-limiting example, a high-level description can be transformed into a logic-level description such as Register Transfer Language (RTL), Gate-level (GL) description, Placement-level description, or Mask-level description. As a non-limiting example, micro-operations performed by the hardware logic circuitry of logic circuitry 808 (e.g., gates, flip-flops, registers, but not limited thereto) can be described in RTL, then transformed into a GL description by a synthesis tool, and the GL description can be transformed into a placement-level description by a placement and routing tool, which corresponds to the physical layout of an integrated circuit, discrete gate or transistor logic unit, discrete hardware unit, or a combination thereof of a programmable logic device. Therefore, in various examples, machine-executable code 806 can include HDL, RTL, GL descriptions, Mask-level descriptions, other hardware descriptions, or any combination thereof.

[0083] In an example where machine-executable code 806 includes a hardware description (at any level of abstraction), a system (not shown, but including storage device 804) may be configured to implement the hardware description described by machine-executable code 806. As a non-limiting example, processor 802 may include a programmable logic device (e.g., an FPGA or PLC), and logic circuitry 808 may be electrically controlled to implement a circuit system corresponding to the hardware description into logic circuitry 808. Also as a non-limiting example, logic circuitry 808 may include hardwired logic components manufactured by a manufacturing system (not shown, but including storage device 804) according to the hardware description of machine-executable code 806. Such manufacturing of hardwired logic components may also be characterized herein as permanently configuring the logic circuitry of the processor.

[0084] Regardless of whether the machine-executable code 806 includes computer-readable instructions or a hardware description, the logic circuit 808 is adapted to execute the functional elements described by the machine-executable code 806 when implementing the functional elements of the machine-executable code 806. It should be noted that although the hardware description may not directly describe the functional elements, it indirectly describes the functional elements that the hardware elements described by the hardware description can execute.

[0085] Those skilled in the art will understand that the disclosed examples can be applied to enhance authentication and / or data integrity in many situations, not limited to the specific examples discussed herein. As a non-limiting example, it can be used in memory encryption applications where static data in memory is encrypted using a block cipher (e.g., XOR-encryption-XOR (AES-XEX) or XEX-based ciphertext-sealed fine-tuned encoded text mode (AES-XTS)), and the static data is authenticated using a secure hash algorithm (e.g., SHA3-KMAC-256 or other SHAs). Such authentication can be enhanced using EDC, such that the MAC generated from the SHA engine is generated from the EDC-enhanced input data block. As a non-limiting example, this enhancement can be applied to the authentication encryption of static data in DRAM attached to the host CPU and in dynamic random access memory (DRAM) attached via a CXL interface.

[0086] As used in this disclosure, the term "combination" referring to multiple elements can include any combination of all elements or any combination of various different sub-combinations of certain elements. For example, the phrase "A, B, C, D or combinations thereof" can refer to any one of A, B, C, or D; a combination of each of A, B, C, and D; and any sub-combination of A, B, C, or D, such as A, B, and C; A, B, and D; A, C, and D; B, C, and D; A and B; A and C; A and D; B and C; B and D; or C and D.

[0087] The terms used in this disclosure, and especially in the appended claims (e.g., the body of the appended claims, etc.), are generally intended to be “open-ended” terms (e.g., the term “including” should be interpreted as “including but not limited to”, the term “having” should be interpreted as “at least having”, the term “includes” should be interpreted as “including but not limited to”, etc.). As used herein, the term “each” means some or all. As used herein, the term “every” means all.

[0088] Furthermore, if a specific number of introduced claim statements are anticipated, such an intent will be explicitly stated in the claims, and without such statements, such an intent does not exist. For example, as an aid to understanding, the appended claims may contain the use of the introductory phrases “at least one” and “one or more” to introduce claim statements. However, the use of such phrases should not be construed as implying that a claim statement introduced by the indefinite article “a” or “an” limits any particular claim containing such an introduced claim statement to an example containing only one such statement, even when the same claim includes the introductory phrases “one or more” or “at least one” and indefinite articles such as “a” or “an” (e.g., “a” and / or “an” can be interpreted as referring to “at least one” or “one or more”, but is not limited thereto); the same applies to the use of definite articles to introduce claim statements.

[0089] Furthermore, even when a specific number of the introduced claims are explicitly stated, those skilled in the art will recognize that such statements should be interpreted as being intended to include at least the number stated (e.g., the unmodified statement "two statements" is intended, without other modifying elements, to include at least two statements, or two or more statements, but not limited thereto). Moreover, in cases where conventions such as "at least one of A, B, and C" or "one or more of A, B, and C" are used, such constructions are generally intended to include only A, only B, only C, both A and B, both A and C, both B and C, or all three A, B, and C, etc.

[0090] Furthermore, any separate word or phrase presenting two or more alternative terms in the specification, claims, or drawings should be understood to include the possibility of including one term, any one term, or both terms. For example, the phrase "A or B" should be understood to include the possibility of including "A" or "B" or "A and B".

[0091] Additional non-limiting embodiments of this disclosure include:

[0092] Example 1: An apparatus comprising: a processor configured to: generate a receiver modified data block at least in part in response to adding an error detection code to a data block; generate a receiver authentication code at least in part in response to the receiver modified data block; and generate an indication of a difference between the receiver authentication code and a transmitter authentication code.

[0093] Example 2: The apparatus according to Example 1, wherein the processor is configured to: generate plaintext data in at least a partial response to applying the decryption portion of the authentication decryption algorithm to the ciphertext data included in the authentication encrypted data block; and generate an error detection code in at least a partial response to the plaintext data.

[0094] Example 3: The apparatus according to any one of Examples 1 and 2, wherein the processor is configured to execute an algorithm for generating error detection codes from plaintext data.

[0095] Example 4: The apparatus according to any one of Examples 1 to 3, wherein the authentication and decryption algorithm is AES-GCM.

[0096] Example 5: The apparatus according to any one of Examples 1 to 4, wherein the processor is provided at the communication system.

[0097] Example 6: The apparatus according to any one of Examples 1 to 5, wherein the communication system is used for high-speed computing link (CXL) interconnection.

[0098] Example 7: The apparatus according to any one of Examples 1 to 6, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

[0099] Example 8: The apparatus according to any one of Examples 1 to 7, wherein adding an error detection code to a data block includes adding the error detection code to a portion of the additional authentication data in the data block.

[0100] Example 9: An apparatus comprising: a processor configured to: generate an error detection code at least partially in response to plaintext data; generate ciphertext data at least partially in response to applying an encryption algorithm to the plaintext data; generate a transmitter-modified data block at least partially in response to adding the error detection code to a data block including the ciphertext data; generate an authentication code at least partially in response to the transmitter-modified data block; generate an authentication encrypted data block at least partially in response to the authentication code; and a transmitter configured to transmit the authentication encrypted data block.

[0101] Example 10: The apparatus according to Example 9, wherein the processor is configured to execute a derivation function to generate an error detection code from plaintext data.

[0102] Example 11: The apparatus according to any one of Examples 9 and 10, wherein the process is configured to generate an authenticated encrypted data block in response at least in part to the data block and the authentication code.

[0103] Example 12: The apparatus according to any one of Examples 9 to 11, wherein the transmitted data block includes the encrypted data.

[0104] Example 13: The apparatus according to any one of Examples 9 to 12, wherein the transmitted data block does not include error detection codes added to the data block to generate the transmitter modified data block.

[0105] Example 14: The apparatus according to any one of Examples 9 to 13, wherein the authentication encryption algorithm is AES-GCM.

[0106] Example 15: The apparatus according to any one of Examples 9 to 14, wherein the processor is provided at the communication system.

[0107] Example 16: The apparatus according to any one of Examples 9 to 15, wherein the communication system is used for high-speed computing link (CXL) interconnection.

[0108] Example 17: The apparatus according to any one of Examples 9 to 16, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

[0109] Example 18: A method comprising: generating a receiver modified data block in at least part response to adding a receiver error detection code to a data block; generating a receiver authentication code in at least part response to the receiver modified data block; and detecting the presence or absence of erroneous data in the data block in at least part response to a difference between the receiver authentication code and a transmitter authentication code.

[0110] Example 19: The method according to Example 18 includes: generating plaintext data in at least a partial response to applying the decryption portion of the authentication decryption algorithm to ciphertext data included in the authentication encrypted data block; and generating a receiver error detection code in at least a partial response to the plaintext data.

[0111] Example 20: The method according to any one of Examples 18 and 19, wherein the authentication and decryption algorithm is AES-GCM.

[0112] Example 21: The method according to any one of Examples 18 to 20 includes: generating a receiver error detection code by applying a derivation function to plaintext data.

[0113] Example 22: The method according to any one of Examples 18 to 21 includes: receiving an authenticated encrypted data block at a communication system.

[0114] Example 23: The method according to any one of Examples 18 to 22, wherein the communication system is used for high-speed computing link (CXL) interconnection.

[0115] Example 24: The method according to any one of Examples 18 to 23, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

[0116] Example 25: The method according to any one of Examples 18 to 24, wherein adding the receiver error detection code to the data block includes adding the receiver error detection code to a portion of the associated data of the data block.

[0117] Example 26: A method comprising: generating a transmitter error detection code in at least a portion of response to plaintext data; generating ciphertext data in at least a portion of response to applying an encryption algorithm to the plaintext data; generating a transmitter modified data block in at least a portion of response to adding the error detection code to a data block including the ciphertext data; generating a transmitter authentication code in at least a portion of response to the transmitter modified data block; generating an authentication encrypted data block in at least a portion of response to the transmitter authentication code and the data block; and transmitting the authentication encrypted data block.

[0118] Example 27: The method according to Example 26 includes: executing a derivation function to generate a transmitter error detection code from plaintext data.

[0119] Example 28: The method according to any one of Examples 26 and 27 includes: generating an authenticated encrypted data block in at least part of response to the data block and the sender authentication code.

[0120] Example 29: The method according to any one of Examples 26 to 28, wherein the data block of the authentication encrypted data block does not include the error detection code added to the data block to generate the transmitter modified data block.

[0121] Example 30: The method according to any one of Examples 26 to 29, wherein the authentication encryption algorithm is AES-GCM.

[0122] Example 31: The method according to any one of Examples 26 to 30 includes: sending an authentication encrypted data block at a communication system.

[0123] Example 32: The method according to any one of Examples 26 to 31, wherein the communication system is used for high-speed computing link (CXL) interconnection.

[0124] Example 33: The method according to any one of Examples 26 to 32, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

[0125] While this disclosure describes the invention with respect to certain illustrated examples, those skilled in the art will recognize and understand that the invention is not limited thereto. Rather, many additions, deletions, and modifications may be made to the illustrated examples and the examples themselves without departing from the scope of the invention as claimed below and its legal equivalents. Furthermore, features from one example may be combined with features from another example while still being included within the scope of the invention as contemplated by the inventors.

Claims

1. An apparatus comprising: Processor, the processor being configured to: Plaintext data is generated, at least in part, in response to applying the decryption portion of the authentication decryption algorithm to the ciphertext data included in the authentication encrypted data block; An error detection code is generated, at least in part, in response to the plaintext data; Generate a modified receiver data block including the error detection code and the ciphertext data; At least in part, in response to the receiver including the error detection code and the ciphertext data, the receiver generates a receiver authentication code by modifying the data block; as well as Generate an indication of the difference between the receiver authentication code and the transmitter authentication code.

2. The apparatus of claim 1, wherein the processor is configured to execute an algorithm for generating the error detection code from the plaintext data.

3. The apparatus according to claim 1, wherein the authentication and decryption algorithm is AES-GCM.

4. The apparatus of claim 1, wherein the processor is provided at the communication system.

5. The apparatus of claim 4, wherein the communication system is used for high-speed computing link (CXL) interconnection.

6. The apparatus of claim 4, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

7. The apparatus of claim 1, wherein the processor is configured to generate the modified receiver data block at least in part in response to a portion of additional authentication data for adding the error detection code to the receiver data block.

8. An apparatus for performing authentication encryption, comprising: Processor, the processor being configured to: At least partially responding to plaintext data to generate error detection codes; Ciphertext data is generated, at least in part, in response to the application of an authentication encryption algorithm to the plaintext data; At least in part, a transmitter modified data block is generated in response to adding the error detection code to a transmitter data block including the ciphertext data; and At least in part, the transmitter generates an authentication code by modifying a data block; At least in part, an authenticated encrypted data block is generated in response to the authentication code; as well as A transmitter configured to send the authenticated encrypted data block.

9. The apparatus of claim 8, wherein the processor is configured to execute a derivation function to generate the error detection code from the plaintext data.

10. The apparatus of claim 8, wherein the processor is configured to generate an authentication encrypted data block in at least a portion of response to the transmitter data block and the authentication code.

11. The apparatus of claim 8, wherein the transmitted authentication encrypted data block includes the ciphertext data.

12. The apparatus of claim 8, wherein the transmitted authentication encryption data block does not include the error detection code added to the transmitter data block to generate the transmitter modified data block.

13. The apparatus of claim 8, wherein the authentication encryption algorithm is AES-GCM.

14. The apparatus of claim 8, wherein the processor is provided at the communication system.

15. The apparatus of claim 14, wherein the communication system is used for high-speed computing link (CXL) interconnection.

16. The apparatus of claim 14, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

17. A method for performing authentication encryption, comprising: Plaintext data is generated, at least in part, in response to applying the decryption portion of the authentication decryption algorithm to the ciphertext data included in the authentication encrypted data block; At least in part, a receiver error detection code is generated in response to the plaintext data; Generate a modified receiver data block that includes the receiver error detection code and the ciphertext data; as well as At least in part, in response to the receiver modifying the data block to generate a receiver authentication code, the receiver includes the receiver error detection code and the ciphertext data. as well as The presence or absence of erroneous data in the modified data block of the receiver is detected at least in part in response to the difference between the receiver authentication code and the transmitter authentication code.

18. The method according to claim 17, wherein the authentication and decryption algorithm is AES-GCM.

19. The method of claim 17, comprising: The receiver error detection code is generated by applying a derivation function to the plaintext data.

20. The method of claim 17, comprising: Receive authenticated encrypted data blocks at the communication system.

21. The method of claim 20, wherein the communication system is used for high-speed computing link (CXL) interconnection.

22. The method of claim 20, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

23. The method of claim 17, comprising: The modified receiver data block is generated at least in part in response to adding the receiver error detection code to a portion of the associated data in the receiver data block.

24. A method for performing authentication encryption, comprising: At least partially in response to plaintext data, a transmitter error detection code is generated; Ciphertext data is generated, at least in part, in response to the application of an authentication encryption algorithm to the plaintext data; A transmitter modified data block is generated, at least in part, in response to adding an error detection code to a transmitter data block that includes the ciphertext data; At least in part, the transmitter generates a transmitter authentication code in response to the transmitter modifying the data block; At least in part, an authenticated encrypted data block is generated in response to the sender authentication code; as well as Send the authenticated encrypted data block.

25. The method of claim 24, comprising: Execute the derivation function to generate the transmitter error detection code from the plaintext data.

26. The method of claim 24, comprising: An authentication encrypted data block is generated, at least in part, in response to the sender data block and the sender authentication code.

27. The method of claim 24, wherein the transmitted authentication encryption data block does not include the error detection code added to the transmitter data block to generate the transmitter modified data block.

28. The method according to claim 24, wherein the authentication encryption algorithm is AES-GCM.

29. The method of claim 24, comprising: The authentication and encryption data block is sent at the communication system.

30. The method of claim 29, wherein the communication system is used for high-speed computing link (CXL) interconnection.

31. The method of claim 30, wherein the communication system is used for high-speed peripheral component interconnect (PCIe) interconnect.

Citation Information

Patent Citations

  • Method and apparatus for facilitating efficient authenticated encryption

    US20060285684A1