EP2087635A2 - Processing method for message integrity with tolerance for non-sequential arrival of message data - Google Patents

Processing method for message integrity with tolerance for non-sequential arrival of message data

Info

Publication number
EP2087635A2
EP2087635A2 EP07864586A EP07864586A EP2087635A2 EP 2087635 A2 EP2087635 A2 EP 2087635A2 EP 07864586 A EP07864586 A EP 07864586A EP 07864586 A EP07864586 A EP 07864586A EP 2087635 A2 EP2087635 A2 EP 2087635A2
Authority
EP
European Patent Office
Prior art keywords
segments
tag
superblock
partial
byte stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
EP07864586A
Other languages
German (de)
French (fr)
Other versions
EP2087635A4 (en
Inventor
Sarvar Patel
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nokia of America Corp
Original Assignee
Lucent Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US11/976,126 external-priority patent/US8122247B2/en
Priority claimed from US11/984,400 external-priority patent/US8204216B2/en
Application filed by Lucent Technologies Inc filed Critical Lucent Technologies Inc
Publication of EP2087635A2 publication Critical patent/EP2087635A2/en
Publication of EP2087635A4 publication Critical patent/EP2087635A4/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/14Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using a plurality of keys or algorithms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0631Substitution permutation network [SPN], i.e. cipher composed of a number of stages or rounds each involving linear and nonlinear transformations, e.g. AES algorithms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/065Encryption by serially and continuously modifying data stream elements, e.g. stream cipher systems, RC4, SEAL or A5/3
    • H04L9/0656Pseudorandom key sequence combined element-for-element with data sequence, e.g. one-time-pad [OTP] or Vernam's cipher
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/80Wireless

Definitions

  • a sender using a secret key and a message authentication algorithm calculates a short tag, which is appended to a message.
  • a receiver also calculates the tag for the received message based on knowledge of the secret key, and compares the calculated tag with the received tag. If the tags are the same, then the receiver accepts the message; otherwise, the message is discarded.
  • Existing message authentication algorithms for example, keyed-Hash Message Authentication Code-Secure Hash Algorithm (HMAC-SHA) and Advanced Encryption Standard-Cipher Algorithm in Cipher Block Chaining (AES-CBC), do not allow out-of-order packet processing because they are serial operations and require that bits be processed in the order they were sent.
  • the conventional approaches to message authentication must send data to a RAM, let a central processor (CP) reorder data packets and reassemble an application packet (message), and send the application packet to hardware to do message authentication.
  • CP central processor
  • a method for processing an application packet for transmission includes receiving a plurality of segments of the application packet in a byte stream, the byte stream Including a plurality of blocks, creating a plurality of superblocks within the byte stream by grouping a number of the plurality of blocks within the byte stream, creating first pseudorandom bits for the plurality of superblocks, and determining a block number and a superblock number for a beginning of each of the plurality of segments.
  • the method also includes determining a block number and a superblock number for an ending of each of the plurality of segments in the byte stream, and generating a partial tag for each of the plurality of segments in the byte stream based on the first pseudorandom bits associated with the block numbers and superblock numbers between the determined beginning and ending of each of the plurality of segments in the byte stream.
  • the method further includes combining the partial tags including a last partial tag associated with a last segment of the application packet to create an accumulated tag, generating an authentication tag based on the accumulated tag and second pseudorandom bits, storing the authentication tag, and transmitting the plurality of segments including the authentication tag.
  • a method of processing received application packet segments includes receiving a plurality of segments of the application packet in a byte stream, the byte stream including a plurality of blocks, creating a plurality of superblocks within the byte stream by grouping a number of the plurality of blocks within the byte stream, creating first pseudorandom bits for the plurality of superblocks, and determining a block number and a superblock number for a beginning of each of the plurality of segments.
  • the method also includes determining a block number and a superblock number for an ending of each of the plurality of segments in the byte stream, and generating a partial tag for each of the plurality of segments in the byte stream based on the first pseudorandom bits associated with the block numbers and superblock numbers between the determined beginning and ending of each of the plurality of segments in the byte stream.
  • the method further includes storing the partial tags, the received plurality of segments and the received authentication tag in a memory, combining the received plurality of segments to create the application packet, combining the partial tags to create a calculated tag, and verifying authenticity of the application packet based on the calculated tag and the received authentication tag.
  • Figure 1 is a flow chart of a logical encryption method according to an example embodiment of the present invention
  • Figure 2 illustrates a graphic example of the embodiment in FIG. 1
  • Figure 3 illustrates a flow chart of creating an integrity tag according to an example embodiment of the present invention
  • Figure 4A illustrates a graphic example of the integrity tag creation method shown in FIG. 3;
  • Figure 4B illustrates an accumulation operation according to the method of FIG. 3
  • Figure 5 illustrates a flow chart for a retransmission of an RLP segment according to an example embodiment of the present invention
  • Figure 6 illustrates a flow chart of decryption and inline integrity check according to an example embodiment of the present invention
  • Figure 7 illustrates partial tag calculation for a variable length application packet accordingly to an example embodiment of the present invention.
  • first, second, third etc. may be used herein to describe various elements, components, regions and/or sections, these elements, components, regions and/or sections should not be limited by these terms. These terms may only be used to distinguish one element, component, region, or section from another region or section. Thus, a first element, component, region or section discussed below could be termed a second element, component, region or section without departing from the teachings of the present invention.
  • Example embodiments may be described herein with reference to cross-section illustrations that may be schematic illustrations of idealized embodiments (and intermediate structures). Thus, the example embodiments should not be construed as limited to the particular location and arrangements illustrated herein but are to include deviations thereof. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
  • the present invention relates to message authentication between a sender and a receiver.
  • the sender may be any communication device in any well-known wireless communication system capable of sending packet communication.
  • the sender may be a mobile station, a base station, etc.
  • a mobile station may be a mobile phone, PDA, portable computer, etc.
  • the receiver may be any receiving counterpart of the sender such as a mobile station, base station, etc.
  • the present invention may be applied to wireless and/or network communication.
  • message encryption will first be described. And, in order to understand encryption, the radio link protocol will first be described.
  • Radio link protocol is a segmentation and reassembly protocol that operates over a wireless air interface between an access terminal (AT) (also known as a mobile station) and an access node (AN) (also known as a base station).
  • AT access terminal
  • AN access node
  • the RLP is responsible for fragmenting (segmenting) an application packet into RLP segments or packets such that they can efficiently be sent over an RF link.
  • the RLP is also responsible for reassembly of the RLP segments at the receiver, re-ordering out of sequence packets and retransmission in case a segment is lost during transmission.
  • Encryption and/or authentication/Integrity may be performed on the RLP segment.
  • the well known counter mode (CTR) encryption may be used to encrypt the RLP segments.
  • RLP segments for example, a message, data, voice, etc., to be encrypted are usually referred to as plaintext, and the result of the encryption process is referred to as ciphertext.
  • the encrypting process involves performing an encryption algorithm on the plaintext to obtain the ciphertext.
  • Many encryption algorithms such as data encryption standard (DES), advanced encryption standard (AES), etc. involve the use of a key in the encryption process.
  • the encryption key is a bit sequence used in the encryption algorithm to generate the ciphertext.
  • the encryption key is known at both the sending and receiving sides of the communication, and at the receiving side the encryption key is used to decrypt the ciphertext into the plaintext.
  • the encryption algorithm is applied to the ciyptosync as if the cryptosync were plaintexts.
  • the resulting output is referred to as a mask.
  • the mask then undergoes an exclusive-OR operation with the information (e.g., RLP segments) for encryption to generate the ciphertext.
  • the ciyptosync is known at both the sending and receiving sides, and at the receiving side the cryptosync is used to decrypt the ciphertext into the plaintext.
  • FIG. 1 is flow chart of the logical encryption method according to an example embodiment of the present invention
  • FIG. 2 shows a graphic example of this process.
  • an application packet's radio link protocol (RLP) segments are sent for encryption without interleaving with another application packet's RLP segments.
  • RLP radio link protocol
  • the RLP segments are a multiple of 8 bytes.
  • the RLP segment is a multiple of a block size.
  • the application packet size, the RLP byte stream, and the size of the RLP segments may all be varied.
  • a sender logically breaks an application packet or a data packet having a length of 64,000 bytes into a multiple of a block size (in step SlOO), for example, 8 bytes plaintext blocks M 1 - M ⁇ ooo.
  • FIG. 2 illustrates blocks M 1 to Me.
  • first pseudorandom blocks AESk (0, 9001) - AESk (0, 9049) may be created in step SI lO.
  • the designation, i.e., TYPE, "0" is used to distinguish the first pseudorandom bits with other pseudorandom bits. See below.
  • the first pseudorandom bits AESk (0, 9001) - AESk (0, 9049) may be written as:
  • First Pseudorandom Bits AES (k, INPUT)
  • the cryptosync value (INPUT) to the AES may be broken into two parts, TYPE (e.g., 8 bits) and COUNTER (e.g., 64 bits), the rest of the INPUT bits may be set to zero.
  • TYPE e.g. 8 bits
  • COUNTER e.g. 64 bits
  • the COUNTER value should never be repeated for a particular TYPE value in order to guarantee that the entire INPUT value is never repeated to the AES.
  • "TYPE" is used to distinguish the use of the AES to create the various pseudorandom bits.
  • the byte number in the RLP stream may be used as the COUNTER value, because the BYTE_NUMBER is never repeated for a particular stream. Accordingly, the key k and the cryptosync value may be used to create a 128 bit output.
  • the size of the cryptosync value may be varied, and the cryptosync value may contain other inputs, e.g., flowID, reset counter, etc. Addition details will be provided below.
  • Step S 120 the sender performs an exclusive-OR operation (XORed) on the plaintext blocks M 1 to Me with the first pseudorandom bits AESk (0, 9001) - AESk (0, 9049) to create encrypted (ciphertext) blocks C 1 - Ce as shown in FIG. 2.
  • CTR counter mode
  • OFB output feedback
  • CFB cipher feedback
  • an integrity process may be performed on the RLP segments to create an authentication tag for the application packet.
  • second pseudorandom bits Ai may be created.
  • Each of the second pseudorandom bits Ai is 64 bits (8 bytes).
  • An Ai is used for a certain number of data blocks known as a "superblock,” for example, the number of data blocks may be 512, and the each data block may be 8 bytes.
  • the number of data blocks making up the superblock may be varied.
  • AES advanced encryption standard
  • TYPE TYPE
  • the designation, i.e., TYPE, "1" is used to distinguish the second pseudorandom bits with other pseudorandom bits, for example, the first pseudorandom bits.
  • a random hash key Ai is generated, and the application packet is treated as some degree of polynomial.
  • the key Ai Is only valid for a specific superblock.
  • a power of key Ai is used for a specific block within a superblock.
  • an RLP segment begins at a certain RLP byte number and RLP block number B, where B is ceiling(RLPbytenumber/8).
  • TAG C 1 (AsP- I + C 1 (AsP + ... C 5 I 2 WA 3 ) 512
  • an RLP segment begins at RLP byte number 9000 and ends at RLP segment byte number 9239.
  • a bit stream starts at 1 and continues forward.
  • superblock 1 will begin at bit stream 1 and end at bit stream 4096 (512 blocks in a superblock);
  • superblock 2 will begin at bit stream 4097 and end at bit stream 8192;
  • superblock 3 will begin at bit stream 8193 and end at bit stream 12,288; and so on.
  • Partial tag C 1 (A 3 ) 102 + C 2 (A 3 ) 103 + ... + C 3 O(A 3 ) 131
  • a partial tag is calculated for each RLP segment in an application packet. After each partial tag is calculated, the partial tag is sent to an accumulator. After a last partial tag for a last RLP segment is calculated, all the partial tags are accumulated and further encrypted by XORing the accumulated tag with least significant bits (lsb) of third pseudorandom bits AES (2, LastByteNumber)64bits.
  • FIG. 3 illustrates a flow chart of creating an integrity (authentication) tag according to an example embodiment of the present Invention.
  • FIG. 4A Illustrates a graphic example of the process.
  • a sender creates second pseudrandom bits Ai as described above. Then in step S220, the sender determines whether an RLP segment is the last RLP segment. A flag in a header of the RLP segment may be set to indicate a beginning segment, middle segment, or last RLP segment. If the RLP segment is not the last RLP segment, the partial tag, e.g., a 64 bit partial tag, is sent to an accumulator (not shown) in the sender at step S230. The sender also sends the RLP segment to a receiver at step S240.
  • a flag in a header of the RLP segment may be set to indicate a beginning segment, middle segment, or last RLP segment. If the RLP segment is not the last RLP segment, the partial tag, e.g., a 64 bit partial tag, is sent to an accumulator (not shown) in the sender at step S230.
  • the sender also sends the RLP segment to a receiver at step S240.
  • the last partial tag is also sent to the accumulator at step S235.
  • the process of sending the last partial tag to the accumulator is the same as the process of sending the non-last partial tags to the accumulator.
  • an accumulated tag is formed by adding the partial tags to create a 64 bit accumulated tag in step S245.
  • the partial tags may instead be added to a partially accumulated tag after each partial tag is generated.
  • step S250 the sender encrypts the accumulated tag by XORing the accumulated tag with least significant bits (lsb) of third pseudorandom bits AESk (2, LastByteNumber) to create an authentication tag. Because formation of the third pseudorandom bits is readily apparent from the above description, for brevity, a description of creating the third the pseudorandom bits is omitted.
  • the authentication tag is also sent to a memory in case of RLP segment retransmission.
  • the authentication tag is appended to the last RLP segment and transmitted to a receiver for decoding at step S270.
  • the memory may be a RAM or any other storage device controlled by a central processor (CP), or the memory device may be part of or controlled by an application specific integrated circuit (ASIC). Only for the last RLP packet of the application packet is the authentication tag stored.
  • steps S210 and S220 may be performed in reverse order, or may be performed in parallel.
  • steps S260 and S270 may be performed in parallel and/ or series.
  • a receiver may not receive all the transmitted RLP segments from the sender or transmitter. There are many reasons why the receiver may not receive all the sent RLP segments. For brevity, the details why RLP segments are lost will be omitted. If the receiver does not receive all the RLP segments, then the non-received RLP segment may be retransmitted by the sender.
  • the central processor in the sender When the central processor in the sender sends an RLP segment to hardware for transmission and retranmission, the central processor also sends a bit to indicate whether the RLP segment is a retransmission.
  • the process of requesting retransmission is well known in the art, accordingly an explanation thereof will also be omitted for brevity.
  • the sender or transmitter receives a request for retransmission of an RLP segment in step S300.
  • the sender determines if the retransmission request is for the last RLP segment of the application packet or for a non-last RLP segment. If the request is for a non-last RLP segment, then in step S320 the RLP segment is encrypted and retransmitted. If in step S310 the request is for the last RLP segment of the application packet, then at step S330 the accumulated authentication tag, which was stored in the CP/RAM, is encrypted and appended to the last RLP segment. The encrypted last RLP segment along with the encrypted authentication tag is retransmitted to the receiver at step S340.
  • the last RLP segment may be further refragmented.
  • a transmitter may determine based on transmitting conditions that the entire last RLP segment should be further broken Into smaller fragments to reduce the load.
  • Each of the smaller segments is sent on a different time slot.
  • only the last of the smaller fragments is appended with the encrypted authentication tag prior to retransmission.
  • FIG. 6 illustrates a flow chart illustrating a method of decryption and inline integrity check according to an example embodiment of the present invention.
  • inline means that the integrity calculation is made as the RLP segments are received by the receiver as opposed to waiting to receive the entire RLP segments.
  • the steps of creating partial tags for the RLP segments are the same as described above in the message integrity section.
  • Ai is used at a superblock level. Knowing the beginning RLP byte number and the ending RLP byte number of an RLP segment, the superblock and the blocks within the superblock can be determined to calculate the partial tags.
  • fourth pseudorandom bits are created at step S400.
  • an AES may be used to create the fourth pseudorandom bits.
  • partial tags are created for the received RLP segments.
  • the partial tags may be 64 bit partial tags.
  • the receiver determines whether the RLP segment is the last RLP segment. If the RLP segment is not the last RLP segment, the RLP segment is decrypted, and together with the partial tag, sent to a memory in the receiver at step S430. Similar to the transmitter, the receiver's memory may be a RAM or any other storage device controlled by a central processor (CP), or the memory device may be part of or controlled by an application specific integrated circuit (ASIC) . Also similar to steps described above with respect to FIGS. 3 and 4, the partial tag creation step and the step of determining whether the RLP segment is the last RLP segment may be reversed.
  • CP central processor
  • ASIC application specific integrated circuit
  • the receiver determines that the RLP segment is the last RLP segment at step S420, the last RLP packet is decrypted in step S440. Also, the last RLP segment's partial tag is XORed with lsb of fifth pseudorandom bits AESk (2, LastByteNumber), and along with the authentication tag from step S270 sent to the memory at step S440.
  • AESk LastByteNumber
  • An explanation of the creation of the fifth pseudorandom bits will be omitted for brevity.
  • the method of creating the fourth and fifth pseudorandom bits are the same as the method of creating the second and third pseudorandom bits, respectively, as described above.
  • a second hash can be done on the calculated tag to reduce it to a 32 bit value.
  • a central processor CP assembles all the RLP segments to form the application packet.
  • the CP also adds all the partial tags received in steps S430 and S440. If the summation of the calculated partial tags equals the received authentication tag, then the application packet is verified at step S450.
  • the RLP segments were of a standard block size of 64 bits.
  • RLP packets that are not of a standard block size, for example, not a multiple of 64 bits will be described. Only those aspects (steps) that are different between the standard RLP segment block size and the non-standard
  • RLP segment block size will be described for brevity.
  • RLP segments of an application packet are not of a multiple of a block size, for example, not a multiple of 64 bits, and given a bit sequence number, it is possible to identify a beginning byte that is a multiple of 64 bits. Once the beginning byte that is a multiple of 64 bits is identified, a universal hash may be performed on the 64 bit value.
  • RLP segments that are not a multiple of 64 bits may be pre-pended with zeroes in the beginning of the RLP segment and/or zeroes may also be appended to the end of the RLP segment to complete a 64 bit ciphertext block Ci.
  • Addition and multiplication may be calculated based on the Galois Field (264), or other fields may be used for the modification, e.g., working over a modulator prime larger than 64 bits.
  • 264 Galois Field
  • An application packet may also have various byte lengths. Accordingly, a description of how example embodiments of the present invention may apply to these application packets will now be given.
  • Application packets may have variable byte lengths.
  • application packets with variable byte length may be dealt with by including length (number of blocks) parameters as part of a universal hash calculation or as an input to a tag encryption. For example, padding may be used to fill a last partially filled block.
  • this method cannot be used in example embodiments because the length is not known when RLP segments are received out of order.
  • Byte numbers of a beginning byte and a last byte may be used to substitute for the byte length value.
  • a CO value may be set to the number of the beginning byte, which may contribute to the term: CO x AO.
  • AO may be a pseudorandom, precalculated, and fixed value, or AO may be, for example, the 64 bit value preceding Al in a pseudorandom stream Ai, and CO is the beginning bit preceding the application packet.
  • AO is the 64 bit value preceding Al in a pseudorandom stream Ai for any CO (beginning byte number), which is not at a multiple of 64 bit boundary
  • AO is set to the 64 bit pseudorandom block that precedes the block that contains the beginning byte number. Additional steps are also required for the very beginning of an RLP flow, for example, bytes 0, 1, 2 and 3, because there is no preceding block.
  • AO for CO for the very beginning 8 bytes of an RLP flow is specifically created as described above.
  • Ai may be reused at the beginning bytes of an RLP segment and also at the beginning bytes of the next RLP segment.
  • an application packet that ends at a non-multiple of 64 bits and the next application packet starting at a non-multiple of 64 bits will be described.
  • RLP packets may be padded with zeroes to complete the 8 byte
  • Ci Ci.
  • the Ai may be reused for both application packets. In other words, the Ai will be used at the end of the first application packet and again used at the beginning of the second application packet.
  • the beginning bytes of the second application packet will continue to use the 8 byte Ai based on the current i, where i equals to (LastByteNumber/8).
  • i equals to (LastByteNumber/8).
  • the 64 bit Ai associated with the last bytes i.e., i equal to (LastByteNumber/8) is used.
  • Example embodiments of the present invention allow message authentication tag verification "on the fly” as data is being received, without having to wait to reassemble the entire application packet.
  • the example embodiments allow for byte level encryption and authentication processing, and out of order processing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed is a method for processing an application packet for transmission, compπsmg receiving a plurality of segments of the application packet in a byte stream, creating a plurality of superblocks within the byte stream by grouping a number of the plurality of blocks within the byte stream, creating first pseudorandom bits for the plurality of superblocks, determining a block number and a superblock number for a beginning and ending of each of the plurality of segments, generating a partial tag for each of the segments based on the first pseudorandom bits associated with the block numbers and superblock numbers between the determined beginning and ending of the of the plurality of segments in the byte stream, combining the partial tags to create an accumulated tag, generating an authentication tag based on the accumulated tag and second pseudorandom bits, storing the authentication tag, and transmitting the segments including the authentication tag.

Description

PROCESSING METHOD FOR MESSAGE INTEGRITY WITH TOLERANCE FOR NON-SEQUENTIAL ARRIVAL OF MESSAGE
DATA
PRIORITY INFORMATION
The present non-provisional application claims priority under 35 U.S.C. 119(e)(l) to provisional application number 60/860,330 filed on November 21, 2006, the disclosure which is incorporated in its entirety. The present non-provisional application also claims priority under 35 U.S.C. 120 to non-provisional application number 11/976, 126 filed on October 22, 2007, the disclosure which is incorporated in its entirety.
BACKGROUND OF THE INVENTION Both encryption and message authentication/integrity are needed to provide security over a wireless air interface. Message encryption protects the privacy of a message whereas message authentication protects the message from tampering.
In a message authentication process, a sender using a secret key and a message authentication algorithm calculates a short tag, which is appended to a message. A receiver also calculates the tag for the received message based on knowledge of the secret key, and compares the calculated tag with the received tag. If the tags are the same, then the receiver accepts the message; otherwise, the message is discarded. Existing message authentication algorithms, for example, keyed-Hash Message Authentication Code-Secure Hash Algorithm (HMAC-SHA) and Advanced Encryption Standard-Cipher Algorithm in Cipher Block Chaining (AES-CBC), do not allow out-of-order packet processing because they are serial operations and require that bits be processed in the order they were sent. Hence, the conventional approaches to message authentication must send data to a RAM, let a central processor (CP) reorder data packets and reassemble an application packet (message), and send the application packet to hardware to do message authentication. This significantly increases traffic on the bus and can significantly add latencies in the packet processing.
In addition, existing message authentication algorithms operate on blocks at a time. As a consequence, a block level algorithm cannot operate on a message segment that ends in a non-block boundary. It would be necessary to reassemble the entire application packet from all message segments before beginning to perform the message authentication tag verification.
SUMMARY OF THE INVENTION
In an example embodiment of the present invention, a method for processing an application packet for transmission includes receiving a plurality of segments of the application packet in a byte stream, the byte stream Including a plurality of blocks, creating a plurality of superblocks within the byte stream by grouping a number of the plurality of blocks within the byte stream, creating first pseudorandom bits for the plurality of superblocks, and determining a block number and a superblock number for a beginning of each of the plurality of segments. The method also includes determining a block number and a superblock number for an ending of each of the plurality of segments in the byte stream, and generating a partial tag for each of the plurality of segments in the byte stream based on the first pseudorandom bits associated with the block numbers and superblock numbers between the determined beginning and ending of each of the plurality of segments in the byte stream. The method further includes combining the partial tags including a last partial tag associated with a last segment of the application packet to create an accumulated tag, generating an authentication tag based on the accumulated tag and second pseudorandom bits, storing the authentication tag, and transmitting the plurality of segments including the authentication tag.
In another example embodiment, a method of processing received application packet segments includes receiving a plurality of segments of the application packet in a byte stream, the byte stream including a plurality of blocks, creating a plurality of superblocks within the byte stream by grouping a number of the plurality of blocks within the byte stream, creating first pseudorandom bits for the plurality of superblocks, and determining a block number and a superblock number for a beginning of each of the plurality of segments. The method also includes determining a block number and a superblock number for an ending of each of the plurality of segments in the byte stream, and generating a partial tag for each of the plurality of segments in the byte stream based on the first pseudorandom bits associated with the block numbers and superblock numbers between the determined beginning and ending of each of the plurality of segments in the byte stream. The method further includes storing the partial tags, the received plurality of segments and the received authentication tag in a memory, combining the received plurality of segments to create the application packet, combining the partial tags to create a calculated tag, and verifying authenticity of the application packet based on the calculated tag and the received authentication tag.
BRIEF DESCRIPTION OF THE DRAWINGS
Example embodiments of the present invention will become more fully understood from the detailed description given herein below and the accompanying drawings, which are given by way of illustration only and thus are not limiting of the example embodiments of the present invention. Figure 1 is a flow chart of a logical encryption method according to an example embodiment of the present invention;
Figure 2 illustrates a graphic example of the embodiment in FIG. 1; Figure 3 illustrates a flow chart of creating an integrity tag according to an example embodiment of the present invention;
Figure 4A illustrates a graphic example of the integrity tag creation method shown in FIG. 3;
Figure 4B illustrates an accumulation operation according to the method of FIG. 3;
Figure 5 illustrates a flow chart for a retransmission of an RLP segment according to an example embodiment of the present invention;
Figure 6 illustrates a flow chart of decryption and inline integrity check according to an example embodiment of the present invention;
Figure 7 illustrates partial tag calculation for a variable length application packet accordingly to an example embodiment of the present invention. DETAILED DESCRIPTION OF THE EXAMPLE EMBODIMENTS
It will be understood that, although the terms first, second, third etc. may be used herein to describe various elements, components, regions and/or sections, these elements, components, regions and/or sections should not be limited by these terms. These terms may only be used to distinguish one element, component, region, or section from another region or section. Thus, a first element, component, region or section discussed below could be termed a second element, component, region or section without departing from the teachings of the present invention.
The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" may be intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/ or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
Example embodiments may be described herein with reference to cross-section illustrations that may be schematic illustrations of idealized embodiments (and intermediate structures). Thus, the example embodiments should not be construed as limited to the particular location and arrangements illustrated herein but are to include deviations thereof. Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The present invention relates to message authentication between a sender and a receiver. The sender may be any communication device in any well-known wireless communication system capable of sending packet communication. For example, the sender may be a mobile station, a base station, etc. As will be appreciated, a mobile station may be a mobile phone, PDA, portable computer, etc. The receiver may be any receiving counterpart of the sender such as a mobile station, base station, etc. Furthermore, it will be understood that the present invention may be applied to wireless and/or network communication. To best understand message authentication, according to the embodiments of the present invention, message encryption will first be described. And, in order to understand encryption, the radio link protocol will first be described.
RADIO LINK PROTOCOL
Radio link protocol (RLP) is a segmentation and reassembly protocol that operates over a wireless air interface between an access terminal (AT) (also known as a mobile station) and an access node (AN) (also known as a base station). The RLP is responsible for fragmenting (segmenting) an application packet into RLP segments or packets such that they can efficiently be sent over an RF link.
Furthermore, the RLP is also responsible for reassembly of the RLP segments at the receiver, re-ordering out of sequence packets and retransmission in case a segment is lost during transmission.
MESSAGE ENCRYPTION
Encryption and/or authentication/Integrity may be performed on the RLP segment. For example, the well known counter mode (CTR) encryption may be used to encrypt the RLP segments. RLP segments, for example, a message, data, voice, etc., to be encrypted are usually referred to as plaintext, and the result of the encryption process is referred to as ciphertext. Often, the encrypting process involves performing an encryption algorithm on the plaintext to obtain the ciphertext. Many encryption algorithms such as data encryption standard (DES), advanced encryption standard (AES), etc. involve the use of a key in the encryption process. The encryption key is a bit sequence used in the encryption algorithm to generate the ciphertext. The encryption key is known at both the sending and receiving sides of the communication, and at the receiving side the encryption key is used to decrypt the ciphertext into the plaintext.
In the case of encryption in the wireless communication environment, involving encryption of frames of information sent between an AN and an AT, a problem arises if the same information (i.e., the same plaintext) is sent during two different frames. In that circumstance the same ciphertext is produced for each of the two frames. As such, information on the ciphertext is said to have leaked. To prevent replay attacks that could occur with such leaked ciphertext, an encryption technique using a cryptosync has been developed. The ciyptosync, for example, Includes a count value incremented after each use of the ciyptosync for encryption. In this manner, the cryptosync changes over time. In a typical use of the ciyptosync, the encryption algorithm is applied to the ciyptosync as if the cryptosync were plaintexts. The resulting output is referred to as a mask. The mask then undergoes an exclusive-OR operation with the information (e.g., RLP segments) for encryption to generate the ciphertext. As with encryption keys, the ciyptosync is known at both the sending and receiving sides, and at the receiving side the cryptosync is used to decrypt the ciphertext into the plaintext.
Application Packet Encryption
To better understand message integrity according to embodiments of the present invention, a brief description of a method of encrypting an application packet as it applies to message integrity will be given.
FIG. 1 is flow chart of the logical encryption method according to an example embodiment of the present invention, and FIG. 2 shows a graphic example of this process. In the example embodiment, there is an assumption that an application packet's radio link protocol (RLP) segments are sent for encryption without interleaving with another application packet's RLP segments. For illustration purposes only, it is also being assumed that a 64,000 byte application packet is being sent on the 9001th byte of a RLP stream, and, the RLP segments are a multiple of 8 bytes. In other words, the RLP segment is a multiple of a block size. As it will appreciated by a person of ordinary skill, the application packet size, the RLP byte stream, and the size of the RLP segments may all be varied.
Referring to FIGS. 1 and 2, a sender logically breaks an application packet or a data packet having a length of 64,000 bytes into a multiple of a block size (in step SlOO), for example, 8 bytes plaintext blocks M1 - Mβooo. In FIG. 2 illustrates blocks M1 to Me.
Using the advanced encryption standard (AES) with two (2) arguments (inputs), for example, a key k and cryptosync value based on the byte number, first pseudorandom blocks (bits) AESk (0, 9001) - AESk (0, 9049) may be created in step SI lO. In FIG. 2, the designation, i.e., TYPE, "0" is used to distinguish the first pseudorandom bits with other pseudorandom bits. See below.
In further detail, the first pseudorandom bits AESk (0, 9001) - AESk (0, 9049) may be written as:
First Pseudorandom Bits (OUTPUT) = AES (k, INPUT) The cryptosync value (INPUT) to the AES may be broken into two parts, TYPE (e.g., 8 bits) and COUNTER (e.g., 64 bits), the rest of the INPUT bits may be set to zero. As it is generally known, the COUNTER value should never be repeated for a particular TYPE value in order to guarantee that the entire INPUT value is never repeated to the AES. Again, "TYPE" is used to distinguish the use of the AES to create the various pseudorandom bits. To create the first pseudorandom bits, the byte number in the RLP stream may be used as the COUNTER value, because the BYTE_NUMBER is never repeated for a particular stream. Accordingly, the key k and the cryptosync value may be used to create a 128 bit output. The size of the cryptosync value may be varied, and the cryptosync value may contain other inputs, e.g., flowID, reset counter, etc. Addition details will be provided below.
Next, in Step S 120, the sender performs an exclusive-OR operation (XORed) on the plaintext blocks M1 to Me with the first pseudorandom bits AESk (0, 9001) - AESk (0, 9049) to create encrypted (ciphertext) blocks C1 - Ce as shown in FIG. 2. Although a counter mode (CTR) encryption was described to encrypt the RLP segments above, other well known encryption methods, for example, output feedback (OFB) mode, cipher feedback (CFB) mode, etc. may be used.
MESSAGE INTEGRITY
Once an application packet, more specifically, RLP segments are encrypted, an integrity process according to an example embodiment of the present invention may be performed on the RLP segments to create an authentication tag for the application packet.
Again using the advanced encryption standard (AES) with two (2) arguments (inputs), for example, a key k and cryptosync value, second pseudorandom bits Ai may be created. Each of the second pseudorandom bits Ai is 64 bits (8 bytes).
An Ai is used for a certain number of data blocks known as a "superblock," for example, the number of data blocks may be 512, and the each data block may be 8 bytes. The number of data blocks making up the superblock may be varied. In detail, using the advanced encryption standard (AES), for example, a polynomial evaluation universal hash based integrity, a key k and cryptosync value based on SuperBlockNumber i, second pseudorandom bits AESk (1, SuperBlockNumber i) may be created. The designation, i.e., TYPE, "1" is used to distinguish the second pseudorandom bits with other pseudorandom bits, for example, the first pseudorandom bits.
For each superblock a random hash key Ai is generated, and the application packet is treated as some degree of polynomial. The key Ai Is only valid for a specific superblock. A power of key Ai is used for a specific block within a superblock.
Ai = AES(I, superblocknumber i), where i = floor(RLPbytenumber/512x64) For example, an application packet will begin in encrypted block
Cl and end in encrypted block Cn. Stated a little differently, an RLP segment begins at a certain RLP byte number and RLP block number B, where B is ceiling(RLPbytenumber/8). The RLP block number is deterministically mapped into a superblock S and a block number b within that superblock S, i.e., B < — > (S, b) where S = ceiling(B/512) and b = B - (S-l)5l2.
Assume that an application packet begins in superblock S, block number b and ends in superblock S2 and block number b2. Therefore, following expression is used to calculate an integrity tag: TAG = C1(AsP-I + C1(AsP + ... C5I2WA3)512
+ C512-b+2(As+1) + C512-b+3(As+1)2 + ... C1024-b+l(As+1)512 + C(S2-Sl)512-b(As2) + • ■ • C(S2-Sl)512-b+b2(As2)b2
+ AES(2,LastByteNumber)64bits
In an example embodiment of the present invention, assume that an RLP segment begins at RLP byte number 9000 and ends at RLP segment byte number 9239. Also assume that a bit stream starts at 1 and continues forward. Accordingly, superblock 1 will begin at bit stream 1 and end at bit stream 4096 (512 blocks in a superblock); superblock 2 will begin at bit stream 4097 and end at bit stream 8192; superblock 3 will begin at bit stream 8193 and end at bit stream 12,288; and so on. The first block begins at RLP byte number 9001 or RLP block number B = 9001/8 = 1126, and the ending block ends at RLP byte number 9240 or RLP block number B = 9240/8 = 1155. Knowing the beginning and ending RLP byte numbers, it can be determined that the RLP segment begins and ends within superblock 3. The beginning and ending block numbers can be determined by mapping the beginning B into (S, b) = (3, 102), and mapping the ending B into (S, b) = (3, 131).
Accordingly, the following expression is used to calculate a partial tag: Partial tag = C1(A3)102 + C2(A3)103 + ... + C3O(A3)131
A partial tag is calculated for each RLP segment in an application packet. After each partial tag is calculated, the partial tag is sent to an accumulator. After a last partial tag for a last RLP segment is calculated, all the partial tags are accumulated and further encrypted by XORing the accumulated tag with least significant bits (lsb) of third pseudorandom bits AES (2, LastByteNumber)64bits.
FIG. 3 illustrates a flow chart of creating an integrity (authentication) tag according to an example embodiment of the present Invention. FIG. 4A Illustrates a graphic example of the process.
First, in step S200, a sender creates second pseudrandom bits Ai as described above. Then in step S220, the sender determines whether an RLP segment is the last RLP segment. A flag in a header of the RLP segment may be set to indicate a beginning segment, middle segment, or last RLP segment. If the RLP segment is not the last RLP segment, the partial tag, e.g., a 64 bit partial tag, is sent to an accumulator (not shown) in the sender at step S230. The sender also sends the RLP segment to a receiver at step S240.
If the RLP segment is the last RLP segment, then the last partial tag is also sent to the accumulator at step S235. The process of sending the last partial tag to the accumulator is the same as the process of sending the non-last partial tags to the accumulator. As illustrated in FIG. 4B, after the last partial tag is sent to the accumulator, an accumulated tag is formed by adding the partial tags to create a 64 bit accumulated tag in step S245. As will be understood, the partial tags may instead be added to a partially accumulated tag after each partial tag is generated. Then, in step S250, the sender encrypts the accumulated tag by XORing the accumulated tag with least significant bits (lsb) of third pseudorandom bits AESk (2, LastByteNumber) to create an authentication tag. Because formation of the third pseudorandom bits is readily apparent from the above description, for brevity, a description of creating the third the pseudorandom bits is omitted.
In step S260, the authentication tag is also sent to a memory in case of RLP segment retransmission. The authentication tag is appended to the last RLP segment and transmitted to a receiver for decoding at step S270. The memory may be a RAM or any other storage device controlled by a central processor (CP), or the memory device may be part of or controlled by an application specific integrated circuit (ASIC). Only for the last RLP packet of the application packet is the authentication tag stored.
It will be appreciated that numerous modifications to the embodiment of FIG. 4 are possible without departing from the overall teachings provided thereby. For example, steps S210 and S220 may be performed in reverse order, or may be performed in parallel. As another example, steps S260 and S270 may be performed in parallel and/ or series.
Retransmission
As is generally known, a receiver may not receive all the transmitted RLP segments from the sender or transmitter. There are many reasons why the receiver may not receive all the sent RLP segments. For brevity, the details why RLP segments are lost will be omitted. If the receiver does not receive all the RLP segments, then the non-received RLP segment may be retransmitted by the sender.
When the central processor in the sender sends an RLP segment to hardware for transmission and retranmission, the central processor also sends a bit to indicate whether the RLP segment is a retransmission. The process of requesting retransmission is well known in the art, accordingly an explanation thereof will also be omitted for brevity.
With reference to FIG. 5, the sender or transmitter receives a request for retransmission of an RLP segment in step S300. In step S310, the sender determines if the retransmission request is for the last RLP segment of the application packet or for a non-last RLP segment. If the request is for a non-last RLP segment, then in step S320 the RLP segment is encrypted and retransmitted. If in step S310 the request is for the last RLP segment of the application packet, then at step S330 the accumulated authentication tag, which was stored in the CP/RAM, is encrypted and appended to the last RLP segment. The encrypted last RLP segment along with the encrypted authentication tag is retransmitted to the receiver at step S340.
As an option, between steps S310 and S330, the last RLP segment may be further refragmented. For example, a transmitter may determine based on transmitting conditions that the entire last RLP segment should be further broken Into smaller fragments to reduce the load. Each of the smaller segments is sent on a different time slot. Here, only the last of the smaller fragments is appended with the encrypted authentication tag prior to retransmission.
Decryption And Inline Integrity Check
If the receiver properly receives all the RLP segments including the authentication tag, the receiver must decrypt the RLP segments, if they were encrypted, and perform an integrity check. FIG. 6 illustrates a flow chart illustrating a method of decryption and inline integrity check according to an example embodiment of the present invention. Here, "inline" means that the integrity calculation is made as the RLP segments are received by the receiver as opposed to waiting to receive the entire RLP segments. The steps of creating partial tags for the RLP segments are the same as described above in the message integrity section. Again, Ai is used at a superblock level. Knowing the beginning RLP byte number and the ending RLP byte number of an RLP segment, the superblock and the blocks within the superblock can be determined to calculate the partial tags.
After all RLP segments are received at the receiver, fourth pseudorandom bits are created at step S400. As with step S200 of FIG. 4, an AES may be used to create the fourth pseudorandom bits. In step S410, partial tags are created for the received RLP segments. The partial tags may be 64 bit partial tags. Then in step S420, the receiver determines whether the RLP segment is the last RLP segment. If the RLP segment is not the last RLP segment, the RLP segment is decrypted, and together with the partial tag, sent to a memory in the receiver at step S430. Similar to the transmitter, the receiver's memory may be a RAM or any other storage device controlled by a central processor (CP), or the memory device may be part of or controlled by an application specific integrated circuit (ASIC) . Also similar to steps described above with respect to FIGS. 3 and 4, the partial tag creation step and the step of determining whether the RLP segment is the last RLP segment may be reversed.
If the receiver determines that the RLP segment is the last RLP segment at step S420, the last RLP packet is decrypted in step S440. Also, the last RLP segment's partial tag is XORed with lsb of fifth pseudorandom bits AESk (2, LastByteNumber), and along with the authentication tag from step S270 sent to the memory at step S440. An explanation of the creation of the fifth pseudorandom bits will be omitted for brevity. In addition, it will be obvious to a person of ordinary skill that the method of creating the fourth and fifth pseudorandom bits are the same as the method of creating the second and third pseudorandom bits, respectively, as described above. Also, as an option, a second hash can be done on the calculated tag to reduce it to a 32 bit value.
A central processor (CP) assembles all the RLP segments to form the application packet. The CP also adds all the partial tags received in steps S430 and S440. If the summation of the calculated partial tags equals the received authentication tag, then the application packet is verified at step S450.
In the above described example embodiments, integrity, encryption, and decryption methods were described with respect to RLP segments that are a multiple of a block size, for example, 64 bits
(8 bytes). In other words, the RLP segments were of a standard block size of 64 bits. In the following example embodiment, RLP packets that are not of a standard block size, for example, not a multiple of 64 bits will be described. Only those aspects (steps) that are different between the standard RLP segment block size and the non-standard
RLP segment block size will be described for brevity.
Non-Multiple OfA Block Size
Assuming RLP segments of an application packet are not of a multiple of a block size, for example, not a multiple of 64 bits, and given a bit sequence number, it is possible to identify a beginning byte that is a multiple of 64 bits. Once the beginning byte that is a multiple of 64 bits is identified, a universal hash may be performed on the 64 bit value.
As will be appreciated, the bits prior to the "multiple of 64 bits" and the ending bits must be properly managed. RLP segments that are not a multiple of 64 bits, may be pre-pended with zeroes in the beginning of the RLP segment and/or zeroes may also be appended to the end of the RLP segment to complete a 64 bit ciphertext block Ci.
Addition and multiplication may be calculated based on the Galois Field (264), or other fields may be used for the modification, e.g., working over a modulator prime larger than 64 bits.
The rest of the encryption and partial tag creation processes are similar to the processes described with respect to FIGS. 1-4 above. In addition, the methods of authentication tag creation, decryption of the RLP packets, retransmission of RLP packets, and verification as disclosed above are the same. See FIGS. 5-6 and the description thereof.
Variable Length Application Packet
An application packet may also have various byte lengths. Accordingly, a description of how example embodiments of the present invention may apply to these application packets will now be given.
Only those aspects that are different from the example embodiments described above will be described for brevity. Application packets may have variable byte lengths. In the conventional art, application packets with variable byte length may be dealt with by including length (number of blocks) parameters as part of a universal hash calculation or as an input to a tag encryption. For example, padding may be used to fill a last partially filled block. However, this method cannot be used in example embodiments because the length is not known when RLP segments are received out of order.
Byte numbers of a beginning byte and a last byte may be used to substitute for the byte length value. A CO value may be set to the number of the beginning byte, which may contribute to the term: CO x AO. For example, AO may be a pseudorandom, precalculated, and fixed value, or AO may be, for example, the 64 bit value preceding Al in a pseudorandom stream Ai, and CO is the beginning bit preceding the application packet.
Assuming AO is the 64 bit value preceding Al in a pseudorandom stream Ai for any CO (beginning byte number), which is not at a multiple of 64 bit boundary, AO is set to the 64 bit pseudorandom block that precedes the block that contains the beginning byte number. Additional steps are also required for the very beginning of an RLP flow, for example, bytes 0, 1, 2 and 3, because there is no preceding block. Illustratively, AO may be set to be the last byte of a sixth pseudorandom bits AESk (3,0) or set as AO=AESk(1, 264- 1), which is the value that precedes 0 mod 264. It is noted that it is practically impossible for the RLP stream to reach 264 64 bit blocks. Therefore, it is assumed that the entire byte number input to AES is 64 bits. Therefore, to create a partial 64 bit tag, CO is the beginning byte number (64 bits); and AO is the 64 bit mask preceding Al in the pseudorandom stream Ai, for example, AO = last 64 bits of the preceding AESk (1,...) output bits. AO for CO for the very beginning 8 bytes of an RLP flow is specifically created as described above.
When creating an encrypted tag (authentication tag) using seventh pseudorandom bits AESk (2, LastByteNumber) , application packets ending at a different byte number will have different encryption tags. Again, the method of creating the seventh pseudorandom bits may be the same as the method of creating the third and fifth pseudorandom bits described above. To encrypt the tag, the 128 bit block number is not used, but the exact last byte number as the AES input may be used. Two different messages may create the same tag, for example, a multiple of 64 bit length message M and the message M followed by a byte of 0. However, each message will be encrypted differently, because a random string will be added for each message.
For RLP segments that begin and end at non-multiples of 64 bits, but that belong in the same application packet, Ai may be reused at the beginning bytes of an RLP segment and also at the beginning bytes of the next RLP segment. With reference to FIG. 8, an application packet that ends at a non-multiple of 64 bits and the next application packet starting at a non-multiple of 64 bits will be described. RLP packets may be padded with zeroes to complete the 8 byte
Ci. Here the Ai may be reused for both application packets. In other words, the Ai will be used at the end of the first application packet and again used at the beginning of the second application packet.
The beginning bytes of the second application packet will continue to use the 8 byte Ai based on the current i, where i equals to (LastByteNumber/8). For ending bytes of the first application packet, for example, 8X + 1, 8X + 2 or 8X + 3 byte, the 64 bit Ai associated with the last bytes, i.e., i equal to (LastByteNumber/8) is used.
Example embodiments of the present invention allow message authentication tag verification "on the fly" as data is being received, without having to wait to reassemble the entire application packet. The example embodiments allow for byte level encryption and authentication processing, and out of order processing.
Example embodiments of the present invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the invention, and all such modifications are intended to be included within the scope of the invention.

Claims

What is claimed is:
1. A method for processing an application packet for transmission, comprising: receiving a plurality of segments of the application packet in a byte stream, the byte stream including a plurality of blocks; creating a plurality of superblocks within the byte stream by grouping a number of the plurality of blocks within the byte stream; creating first pseudorandom bits for the plurality of superblocks; determining a block number and a superblock number for a beginning of each of the plurality of segments; determining a block number and a superblock number for an ending of each of the plurality of segments in the byte stream; generating a partial tag for each of the plurality of segments in the byte stream based on the first pseudorandom bits associated with the block numbers and superblock numbers between the determined beginning and ending of the of the plurality of segments in the byte stream; combining the partial tags including a last partial tag associated with a last segment of the application packet to create an accumulated tag; generating an authentication tag based on the accumulated tag and second pseudorandom bits; storing the authentication tag; and transmitting the plurality of segments including the authentication tag.
2. The method of claim 1, wherein generating the authentication tag comprises: performing an exclusive-OR operation on the accumulated tag and the second pseudorandom bits.
3. The method of claim 1, wherein generating the partial tags for each of the plurality of segments comprises: partial tag = Ci(As) + C2(AsP+1 + ... + Cn-b+i(As)n + C(S2-Sl)n-b+2(As2) + ... + C(S2-Sl)n-b+l+b2(As2p2, where S is the superblock number, b is the block number within the superblock, n is the number of blocks within the superblock, C is a block number within the segment, and As is the first pseudorandom bits.
4. The method of claim 1 , further comprising: encrypting the plurality of segments by performing an exclusive- OR operation on the plurality of segments with respective portions of third pseudorandom bits to create ciperhertext blocks.
5. The method of claim 1, wherein the generation of the partial tags comprises: multiplying a beginning byte number of the application packet with fourth pseudorandom bits, the fourth pseudorandom bits created using AES with a key k and a cryptosync value, and the cryptosync value being a byte number preceding the application packet.
6. The method of claim 1 , further comprising: receiving a request for retransmission of the last segment of the plurality of segments; appending the stored authentication tag to the last segment of the plurality of segments; and retransmitting the last segment and the authentication tag.
7. The method of claim 6, further comprising: refragmenting the last segment into a plurality of fragments; and wherein the retransmitting transmits the plurality of fragments and the authentication tag.
8. The method of claim 1 , wherein if the plurality of segments is not a multiple of a block size, the method further comprising: identifying a segment that is the multiple of a block size; and performing at least one of pre-pending a beginning of the multiple of the block size segment with zeros, and appending an end of the multiple of the block size segment with zeros.
9. A method of processing received application packet segments, comprising: receiving a plurality of segments of the application packet in a byte stream, the byte stream including a plurality of blocks; creating a plurality of superblocks within the byte stream by grouping a number of the plurality of blocks within the byte stream; creating first pseudorandom bits for the plurality of superblocks; determining a block number and a superblock number for a beginning of each of the plurality of segments; deterrnining a block number and a superblock number for an ending of each of the plurality of segments in the byte stream; generating a partial tag for each of the plurality of segments in the byte stream based on the first pseudorandom bits associated with the block numbers and superblock numbers between the determined beginning and ending of the of the plurality of segments in the byte stream; storing the partial tags, the received plurality of segments, and the received authentication tag in a memory; combining the received plurality of segments to create the application packet; combining the partial tags to create a calculated tag; and verifying authenticity of the application packet based on the calculated tag and the received authentication tag.
10. The method of claim 9, wherein generating the partial tags for each of the plurality of segments comprises: partial tag = C1(As) + C2(AsP+1 + ... + Cn-b+i(As)n
+ C(S2-Sl)n-b+2(As2) + ... + C(S2-Sl)n-b+l+b2(As2)b2, where S is the superblock number, b is the block number within the superblock, n is the number of blocks within the superblock, C is a block number within the segment, and As is the first pseudorandom bits.
11. The method of claim 9, further comprising: creating a last partial tag for a received last segment of the plurality of segments; and performing an exclusive-OR operation on the last partial tag with a least significant bits (lsb) of a second pseudorandom bits.
12. The method of claim 9, further comprising: receiving a retransmission of a last segment of the plurality of segments; creating a last partial tag for the received last segment of the plurality of segments; and performing an exclusive-OR operation on the last partial tag with a least significant bits (lsb) of a second pseudorandom bits.
EP07864586.8A 2006-11-21 2007-11-19 Processing method for message integrity with tolerance for non-sequential arrival of message data Withdrawn EP2087635A4 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US86033006P 2006-11-21 2006-11-21
US11/976,126 US8122247B2 (en) 2006-10-23 2007-10-22 Processing method for message integrity with tolerance for non-sequential arrival of message data
US11/984,400 US8204216B2 (en) 2006-10-23 2007-11-16 Processing method for message integrity with tolerance for non-sequential arrival of message data
PCT/US2007/085092 WO2008064153A2 (en) 2006-11-21 2007-11-19 Processing method for message integrity with tolerance for non-sequential arrival of message data

Publications (2)

Publication Number Publication Date
EP2087635A2 true EP2087635A2 (en) 2009-08-12
EP2087635A4 EP2087635A4 (en) 2017-07-05

Family

ID=39430534

Family Applications (1)

Application Number Title Priority Date Filing Date
EP07864586.8A Withdrawn EP2087635A4 (en) 2006-11-21 2007-11-19 Processing method for message integrity with tolerance for non-sequential arrival of message data

Country Status (5)

Country Link
EP (1) EP2087635A4 (en)
JP (1) JP2010510756A (en)
KR (1) KR101088549B1 (en)
CN (1) CN101542962B (en)
WO (1) WO2008064153A2 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729250B (en) * 2008-10-21 2014-03-26 日电(中国)有限公司 Verification method, equipment and system of increment provable data integrity (IPDI)
JP2010192944A (en) * 2009-02-13 2010-09-02 Sony Corp Content distribution apparatus, content use apparatus, content distribution system, content distribution method and program
US10203934B2 (en) 2012-07-11 2019-02-12 Intel Corporation Parallell processing of a single data buffer
CN104156326A (en) * 2014-08-04 2014-11-19 浪潮(北京)电子信息产业有限公司 Method for achieving data consistency
WO2016116999A1 (en) 2015-01-19 2016-07-28 三菱電機株式会社 Packet transmission device, packet-receiving device, packet transmission program, and packet-receiving program
WO2018138006A1 (en) * 2017-01-25 2018-08-02 Koninklijke Kpn N.V. Guaranteeing authenticity and integrity in signalling exchange between mobile networks
US11223946B2 (en) 2017-01-25 2022-01-11 Koninklijke Kpn N.V. Guaranteeing authenticity and integrity in signaling exchange between mobile networks

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5008935A (en) * 1989-06-30 1991-04-16 At&T Bell Laboratories Efficient method for encrypting superblocks of data
US5608801A (en) * 1995-11-16 1997-03-04 Bell Communications Research, Inc. Efficient cryptographic hash functions and methods for amplifying the security of hash functions and pseudo-random functions
US5809148A (en) * 1996-05-17 1998-09-15 Motorola, Inc. Decryption of retransmitted data in an encrypted communication system
WO1998047264A1 (en) * 1997-04-14 1998-10-22 Siemens Aktiengesellschaft Method and system for producing and checking a hash total for digital data grouped in several data segments
US7966372B1 (en) * 1999-07-28 2011-06-21 Rpost International Limited System and method for verifying delivery and integrity of electronic messages
US20020051537A1 (en) * 2000-09-13 2002-05-02 Rogaway Phillip W. Method and apparatus for realizing a parallelizable variable-input-length pseudorandom function
US7046802B2 (en) * 2000-10-12 2006-05-16 Rogaway Phillip W Method and apparatus for facilitating efficient authenticated encryption
US6963976B1 (en) * 2000-11-03 2005-11-08 International Business Machines Corporation Symmetric key authenticated encryption schemes
CN1349331A (en) * 2001-12-03 2002-05-15 上海交通大学 Hierarchical marked distortion-preventing system
US7321659B2 (en) * 2003-10-01 2008-01-22 International Business Machines Corporation Simple universal hash for plaintext aware encryption
EP1716663A1 (en) * 2004-02-10 2006-11-02 Cryptico A/S Methods for generating identification values for identifying electronic messages
CA2567250A1 (en) * 2004-05-18 2005-11-24 Silverbrook Research Pty Ltd Authentication of an object using a signature encoded in a number of data portions

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See references of WO2008064153A2 *

Also Published As

Publication number Publication date
WO2008064153A3 (en) 2008-09-04
EP2087635A4 (en) 2017-07-05
WO2008064153A2 (en) 2008-05-29
KR20090071656A (en) 2009-07-01
CN101542962B (en) 2013-11-06
CN101542962A (en) 2009-09-23
JP2010510756A (en) 2010-04-02
KR101088549B1 (en) 2011-12-05

Similar Documents

Publication Publication Date Title
US8204216B2 (en) Processing method for message integrity with tolerance for non-sequential arrival of message data
US9673976B2 (en) Method and system for encryption of blocks of data
US7649992B2 (en) Apparatuses for encoding, decoding, and authenticating data in cipher block chaining messaging authentication code
US9674204B2 (en) Compact and efficient communication security through combining anti-replay with encryption
CN107592968B (en) Generating a cryptographic checksum
JP2007140566A (en) Efficient packet encryption method
US8122247B2 (en) Processing method for message integrity with tolerance for non-sequential arrival of message data
KR101088549B1 (en) Processing method for message integrity with tolerance for non-sequential arrival of message data
Zhang et al. Energy efficiency of encryption schemes applied to wireless sensor networks
JP2004325677A (en) Encryption processing device, encryption processing method, and computer program
KR20200067265A (en) Apparatus and Method for Patterned Cipher Block for Real-Time Data Communication
CN114844728A (en) Serialized data secure communication method and big data platform
CN118337498A (en) Data transmission method based on symmetric key pool
KR100551992B1 (en) encryption/decryption method of application data
GB2459735A (en) Hybrid asymmetric / symmetric encryption scheme which obviates padding
EP1456997B1 (en) System and method for symmetrical cryptography
EP2087643B1 (en) Processing method for message integrity with tolerance for non-sequential arrival of message data
Nag et al. DSA security enhancement through efficient nonce generation
KR100571178B1 (en) How to encrypt and decrypt a message
Zhang et al. An RC4-based lightweight security protocol for resource-constrained communications
Adekunle et al. An efficient authenticated-encryption with associated-data block cipher mode for wireless sensor networks
Rose et al. Combining message authentication and encryption
CN118784317A (en) Encryption method of IP message
Oszywa et al. Combining message encryption and authentication

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 20090429

AK Designated contracting states

Kind code of ref document: A2

Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LI LT LU LV MC MT NL PL PT RO SE SI SK TR

RAP3 Party data changed (applicant data changed or rights of an application transferred)

Owner name: LUCENT TECHNOLOGIES INC.

DAX Request for extension of the european patent (deleted)
RAP1 Party data changed (applicant data changed or rights of an application transferred)

Owner name: ALCATEL-LUCENT USA INC.

111Z Information provided on other rights and legal means of execution

Free format text: AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LI LT LU LV MC MT NL PL PT RO SE SI SK TR

Effective date: 20130410

D11X Information provided on other rights and legal means of execution (deleted)
A4 Supplementary search report drawn up and despatched

Effective date: 20170608

RIC1 Information provided on ipc code assigned before grant

Ipc: H04L 9/00 20060101AFI20170601BHEP

Ipc: H04L 9/06 20060101ALI20170601BHEP

17Q First examination report despatched

Effective date: 20170703

GRAP Despatch of communication of intention to grant a patent

Free format text: ORIGINAL CODE: EPIDOSNIGR1

INTG Intention to grant announced

Effective date: 20190417

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN

18D Application deemed to be withdrawn

Effective date: 20190828