US8229110B1 - Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol - Google Patents

Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol Download PDF

Info

Publication number
US8229110B1
US8229110B1 US12/217,928 US21792808A US8229110B1 US 8229110 B1 US8229110 B1 US 8229110B1 US 21792808 A US21792808 A US 21792808A US 8229110 B1 US8229110 B1 US 8229110B1
Authority
US
United States
Prior art keywords
encrypted packets
packet number
groups
decryption
packets
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.)
Expired - Fee Related, expires
Application number
US12/217,928
Inventor
Peter Loc
Rahul Kopikare
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.)
Marvell Asia Pte Ltd
Original Assignee
Marvell International Ltd
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
Application filed by Marvell International Ltd filed Critical Marvell International Ltd
Priority to US12/217,928 priority Critical patent/US8229110B1/en
Priority to US13/555,825 priority patent/US8631233B1/en
Application granted granted Critical
Publication of US8229110B1 publication Critical patent/US8229110B1/en
Assigned to CAVIUM INTERNATIONAL reassignment CAVIUM INTERNATIONAL ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: MARVELL INTERNATIONAL LTD.
Assigned to MARVELL ASIA PTE, LTD. reassignment MARVELL ASIA PTE, LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CAVIUM INTERNATIONAL
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • 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/0618Block ciphers, i.e. encrypting groups of characters of a plain text message using fixed encryption transformation
    • H04L9/0637Modes of operation, e.g. cipher block chaining [CBC], electronic codebook [ECB] or Galois/counter mode [GCM]
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • 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/12Details relating to cryptographic hardware or logic circuitry
    • H04L2209/125Parallelization or pipelining, e.g. for accelerating processing of cryptographic operations
    • 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
    • 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/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/10Integrity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/69Identity-dependent
    • H04W12/71Hardware identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates generally to encryption and decryption of data communications packets. More particularly, the present invention relates to pipelining such encryption and decryption to achieve faster data throughput.
  • the sender encrypts packets of data to be sent using a temporal key negotiated with the receiver.
  • the receiver upon receiving the packets, decrypts the packets using the temporal key. This scheme works well as long as the transmitted packets are separated by inter-packet gaps that are large enough to allow the receiver to complete the decryption of one packet before the next packet arrives.
  • the invention features an apparatus and corresponding method and computer program for transmitting N Media Access Control (MAC) Payload Data Units (MPDUs), wherein N ⁇ 1. It comprises a key mixing circuit to generate N groups of Advanced Encryption Standard (AES) Output Blocks, wherein each AES Output Block is generated based upon a predetermined key, a transmitter MAC address, and a predetermined start value for a packet number; an input circuit to receive the N MPDUs; a packet number circuit to insert a different one of N values for the packet number into each of the N MPDUs, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; an encryption circuit to encrypt each of the N MPDUs using the one of the N groups of AES Output Blocks that was generated based on the value for the packet number in the respective one of the N MPDUs; and an output circuit to send the N encrypted packets of data; wherein the encryption circuit generates each of the N groups of AES Output Blocks
  • a network device comprises the apparatus.
  • the wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20.
  • the wireless network device is compliant with IEEE standard 802.11i.
  • the invention features an apparatus and corresponding method and computer program for transmitting N packets of data, wherein N ⁇ 1. It comprises a key mixing circuit to generate N groups of encryption seeds, wherein each encryption seed is generated based upon a predetermined key, a transmitter address, and a predetermined start value for a packet number; an input circuit to receive the N packets of data; a packet number circuit to insert a different one of N values for the packet number into each of the N packets of data, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; an encryption circuit to encrypt each of the N packets of data using the one of the N groups of encryption seeds that was generated based on the value for the packet number in the respective one of the N packets of data; and an output circuit to send the N packets of data; wherein the encryption circuit generates each of the N groups of encryption seeds before the input circuit receives the respective one of the N packets of data.
  • a network device comprises the apparatus.
  • the wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20.
  • the wireless network device is compliant with IEEE standard 802.11i.
  • the invention features an apparatus and corresponding method and computer program for transmitting N Media Access Control (MAC) Payload Data Units (MPDUs), wherein N ⁇ 1. It comprises an output circuit to send a message comprising a transmitter MAC address and a predetermined start value for a packet number; a packet number circuit to insert a different one of N values for the packet number into each of the N MPDUs, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; a key mixing circuit to generate N groups of Advanced Encryption Standard (AES) Output Blocks, wherein each AES Output Block is generated based upon a predetermined key, the transmitter address, and the predetermined start value for the packet number; and an encryption circuit to encrypt each of the N MPDUs using the one of the N groups of AES Output Blocks that was generated based on the value for the packet number in the respective one of the N MPDUs; wherein the output circuit sends the N encrypted MPDUs
  • AES Advanced En
  • Particular implementations can include one or more of the following features.
  • Particular implementations can include an integrity circuit to generate a Message Integrity Code (MIC) for each of the N MPDUs using a MIC key and insert each MIC into a respective one of the N MPDUs before the encryption circuit encrypts the respective one of the N MPDUs.
  • the message further comprises the value of N.
  • the encryption circuit selects one of the N MPDUs and encrypts M different portions of the one of the N MPDUs using the M respective ones of the AES Output Blocks that were generated based on the value for the packet number in the one of the N MPDUs.
  • a network device comprises the apparatus.
  • the wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20.
  • the wireless network device is compliant with IEEE standard 802.11i.
  • the invention features an apparatus and corresponding method and computer program for transmitting N packets of data, wherein N ⁇ 1. It comprises an output circuit to send a message comprising a transmitter address and a predetermined start value for a packet number; a packet number circuit to insert a different one of N values for the packet number into each of the N packets of data, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; a key mixing circuit to generate N groups of encryption seeds, wherein each encryption seed is generated based upon a predetermined key, the transmitter address, and the predetermined start value for the packet number; an encryption circuit to encrypt each of the N packets of data using the one of the N groups of encryption seeds that was generated based on the value for the packet number in the respective one of the N packets of data; wherein the output circuit sends the N encrypted packets of data after sending the message.
  • Particular implementations can include one or more of the following features.
  • Particular implementations can include an integrity circuit to generate an integrity code for each of the N packets of data using an integrity code key and insert each integrity code into a respective one of the N packets of data before the encryption circuit encrypts the respective one of the N packets of data.
  • the message further comprises the value of N.
  • the encryption circuit selects one of the N encrypted packets of data and decrypts M different portions of the one of the N encrypted packets of data using M respective ones of the encryption seeds that were generated based on the value for the packet number in the one of the N encrypted packets of data.
  • a network device comprises the apparatus.
  • the wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20.
  • the wireless network device is compliant with IEEE standard 802.11i.
  • the invention features a packet comprising packet number information representing a number N of Media Access Control (MAC) Payload Data Units (MPDUs) encrypted according to Counter Mode With Cipher-Block Chaining Message Authentication Code Protocol (CCMP) to be transmitted following the packet, wherein N ⁇ 1; a transmitter MAC address for a transmitter of the N encrypted MPDUs; a receiver MAC address for a receiver of the N encrypted MPDUs; and length information representing a length of each of the N encrypted MPDUs.
  • MAC Media Access Control
  • MPDUs Payload Data Units
  • CCMP Cipher-Block Chaining Message Authentication Code Protocol
  • the packet number information comprises a predetermined start value for a packet number, wherein each of the N encrypted MPDUs comprises a value for the packet number that is greater than, or equal to, the predetermined start value for the packet number; and a predetermined range value representing a range of values of the packet numbers in the N encrypted MPDUs.
  • the invention features a packet comprising packet number information representing a number N of encrypted packets to be transmitted following the packet, wherein N ⁇ 1; a transmitter address for a transmitter of the N encrypted packets; a receiver address for a receiver of the N encrypted packets; and length information representing a length of each of the N encrypted packets.
  • the packet number information comprises a predetermined start value for a packet number, wherein each of the N encrypted packets comprises a value for the packet number that is greater than, or equal to, the predetermined start value for the packet number; and a predetermined range value representing a range of values of the packet numbers in the N encrypted packets.
  • FIG. 1 shows a network device in communication with a network such as a wireless local-area network (WLAN) according to a preferred embodiment.
  • WLAN wireless local-area network
  • FIG. 2 shows a pipelined two-stage encryption and transmission process for network device of FIG. 1 according to a preferred embodiment.
  • FIG. 3 shows the format of a pipelining setup message according to a preferred embodiment.
  • FIG. 4 shows a network device in communication with a network such as a WLAN according to a preferred embodiment.
  • FIG. 5 shows a pipelined two-stage reception and decryption process for network device of FIG. 4 according to a preferred embodiment.
  • Embodiments of the present invention employ pipelining strategies that allow encryption and decryption of packets in two stages, one of which is implemented for each packet before the packet is received. These pipelining approaches significantly reduce the time required to encrypt and decrypt a series of packets.
  • the two stages are encryption seed generation and encryption or decryption.
  • the encryption seeds for the packets can be generated before receiving the packets. Therefore the packets can be encrypted or decrypted immediately upon arrival, rather than after the time-consuming encryption seed generation process.
  • Embodiments of the present invention are described with respect to the Counter Mode With Cipher-Block Chaining Message Authentication Code Protocol (CCMP) specified by the IEEE 802.11i standard (April 2004).
  • CCMP Cipher-Block Chaining Message Authentication Code Protocol
  • the techniques disclosed herein are equally applicable to other sorts of encryption and encapsulation protocols, and to wired networks as well as wireless networks.
  • FIG. 1 shows a network device 102 in communication with a network 104 such as a wireless local-area network (WLAN) according to a preferred embodiment.
  • Network device 102 comprises an input circuit 106 , a controller 108 , a key mixing circuit 110 , a memory 112 , a Message Integrity Code (MIC) circuit 114 , a packet number (PN) circuit 116 , a CCMP encryption circuit 118 , and an output circuit 120 .
  • network device 102 is compliant with IEEE standards 802.11i, and is otherwise compliant with one or more of IEEE standards 802.11 (1999 Edition), 802.11a (1999 Edition, Amended 2000), 802.11b (16 Sep.
  • 802.11g (April 2003), 802.11n (e.g., IEEE P802.11-04/0889r6), 802.16 (Apr. 8, 2002), and 802.20-PD-06 (Jul. 16, 2004), the disclosures thereof incorporated herein by reference in their entirety.
  • FIG. 2 shows a pipelined two-stage encryption and transmission process 200 for network device 102 of FIG. 1 according to a preferred embodiment.
  • each of N Media Access Control (MAC) Payload Data Units (MPDUs) are encrypted using one of N groups of Advanced Encryption Standard (AES) Output Blocks (also referred to herein as “AES blocks”).
  • AES Advanced Encryption Standard
  • the first stage of the process generates the N groups of AES blocks ahead of time so they are ready when the second stage begins.
  • controller 108 provides a transmitter MAC address TA, a temporal key TK, and at least a start value for a packet number (PN) and counter (CTR) to key mixing circuit 110 (step 202 ).
  • the transmitter MAC address TA is a MAC address for network device 102 .
  • the temporal key TK is a key that is negotiated in advance by network device 102 and an intended receiver, as is well-known in the relevant arts.
  • the PN is a counter for the MPDUs to ensure sequential reception at the intended receiver, as described in detail below.
  • the CTR is a counter to count the number of 16-octet blocks in the payload of each MPDU.
  • Key mixing circuit 110 generates each of the N groups of AES blocks based upon temporal key TK, transmitter MAC address TA, and the start value for PN, and stores the N groups of AES blocks in memory 112 (step 204 ). Preferably key mixing circuit 110 generates a group of AES blocks for each of N sequential values of PN beginning with the start value provided by controller 108 , although other methods could be used.
  • Each group of AES blocks comprises multiple AES block ciphers, each having a length of 16 octets.
  • key mixing circuit 110 generates a AES block for each of M sequential values of CTR beginning with the start value provided by controller 108 , although other methods could be used.
  • CTR preferably initialized to one
  • Input circuit 106 subsequently receives one or more MPDUs (step 206 ), for example from a host unit or processor within network device 102 .
  • PN circuit 116 inserts a value for PN into each MPDU so the MPDUs are numbered sequentially (step 208 ).
  • Each of the N values for the PN is greater than, or equal to, the start value for the PN.
  • MIC circuit 114 computes a MIC value for each MPDU based upon a MIC key, and inserts the MIC value into the respective MPDU (step 210 ) according to methods well-known in the relevant arts.
  • CCMP encryption circuit 118 encrypts each of the N MPDUs using the one of the N groups of AES blocks that was generated based on the value for the PN in the respective one of the N MPDUs (step 212 ). For example, CCMP encryption circuit 118 receives a MPDU from PN circuit 116 and the corresponding group of AES blocks from memory 112 , and performs the encryption according to methods well-known in the relevant arts to produce an encrypted MPDU (EMPDU).
  • EMPDU encrypted MPDU
  • Output circuit 120 sends the N EMPDUs (step 214 ).
  • output circuit 120 can comprise a wireless physical-layer device (PHY) and antenna.
  • output circuit 120 can be a MAC output circuit that provides the EMPDUs to a separate PHY and antenna for transmission to network 104 .
  • key mixing circuit 110 generates each of the N groups of AES blocks before input circuit 106 receives the respective MPDUs. Therefore each group of AES blocks is available when the corresponding MPDU arrives at CCMP encryption circuit 118 . This pipelining process ensures that no time is wasted in waiting for a group of AES blocks to be generated after receiving the corresponding MPDU.
  • network device 102 generates and sends a pipelining setup message containing information describing the N MPDUs before sending the MPDUs.
  • the pipelining setup message can be used by the intended recipient to pipeline the decryption process, as described in detail below.
  • Network device 102 can generate and send the pipelining setup message either with or without performing the pipelining process 200 described above.
  • FIG. 3 shows the format of a pipelining setup message 300 according to a preferred embodiment.
  • Pipelining setup message 300 preferably comprises a transmitter address 302 , a receiver address 304 , a PN start value 308 , an optional PN range value 310 , and the lengths 312 A- 312 N of each of the N MPDUs represented by pipelining setup message 300 .
  • Transmitter address 302 is preferably the 6-byte MAC address of network device 102 .
  • Receiver address 304 is preferably the 6-byte MAC address of a wireless receiver, such as a wireless access point, in network 104 .
  • PN start value 308 is the 6-byte value of PN for the first of the N MPDUs to be sent.
  • PN range value 310 is a 1-byte value representing the number N of MPDUs to be sent.
  • the PN information can be represented in other ways in pipelining setup message 300 .
  • the PN information could comprise the end value and range, the start and end values, or any other parameters that can be used to calculate the start and range values of PN.
  • Each length value 312 is a 1-byte value representing the length in bytes of the respective MPDU.
  • FIG. 4 shows a network device 402 in communication with a network 404 such as a wireless local-area network (WLAN) according to a preferred embodiment.
  • Network device 402 comprises an input circuit 406 , a controller 408 , a key mixing circuit 410 , a memory 412 , a Message Integrity Code (MIC) circuit 414 , a CCMP decryption circuit 418 , an output circuit 420 , optional comparators 422 and 424 , and an optional countermeasures circuit 426 .
  • MIC Message Integrity Code
  • network device 402 is compliant with IEEE standards 802.11i, and is otherwise compliant with one or more of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20, the disclosures thereof incorporated herein by reference in their entirety.
  • FIG. 5 shows a pipelined two-stage reception and decryption process 500 for network device 402 of FIG. 4 according to a preferred embodiment.
  • each of N encrypted MPDUs (EMPDUs) are decrypted using one of N groups of AES blocks.
  • the first stage of the process generates the N groups of AES blocks ahead of time so they are ready when the second stage begins.
  • controller 408 provides a transmitter MAC address TA, a temporal key TK, and at least a start value for a packet number (PN) and counter (CTR) to key mixing circuit 410 (step 502 ).
  • the transmitter MAC address TA is a MAC address for the network device transmitting the MPDUs.
  • the temporal key TK is a key that is negotiated in advance by network device 402 and the network device transmitting the MPDUs, as is well-known in the relevant arts.
  • the PN is a counter for the MPDUs to ensure sequential reception at the intended receiver, as described in detail below.
  • the CTR is a counter to count the number of 16-octet blocks in the payload of each MPDU.
  • the network device transmitting the MPDUs first transmits a pipelining setup message such as the pipelining setup message described above with reference to FIG. 3 before transmitting the MPDUs.
  • Network device 402 then extracts TA and generates the PN and CTR values for each MPDU based on the pipelining setup message.
  • network device 402 generates TA and the values for PN and CTR without the use of a pipelining setup message.
  • network device 402 can generate a set of AES blocks for one or more of the known transmitters in network 404 using PN values that are assumed or tracked by monitoring network traffic and CTR values limited by a maximum expected MPDU size.
  • each network device maintains a separate PN counter for each of the other network devices.
  • Key mixing circuit 410 generates each of the N groups of AES blocks based upon temporal key TK, transmitter MAC address TA, and the start value for PN, and stores the N groups of AES blocks in memory 412 (step 504 ).
  • key mixing circuit 410 generates a group of AES blocks for each of N sequential values of PN beginning with the start value provided by controller 408 , although other methods could be used.
  • Input circuit 406 subsequently receives N EMPDUs (step 506 ).
  • input circuit 406 can comprise a wireless physical-layer device (PHY) and antenna.
  • input circuit 406 can be a MAC input circuit that receives the EMPDUs from a separate PHY and antenna in communication with network 404 .
  • Optional comparator 322 checks the value of PN in each EMPDU against the expected value. Out-of-sequence EMPDUs are discarded. In-sequence EMPDUs are provided to CCMP decryption circuit 418 .
  • CCMP decryption circuit 418 decrypts each of the N EMPDUs using the one of the N groups of AES blocks that was generated based on the value for the PN in the respective one of the N EMPDUs (step 508 ). For example, CCMP decryption circuit 418 receives an EMPDU and receives the corresponding group of AES blocks from memory 412 , and performs the decryption according to methods well-known in the relevant arts to produce a decrypted MPDU.
  • MIC circuit 414 computes a MIC value for each MPDU based upon a MIC key (step 510 ).
  • Optional comparator 324 checks the value of PN in each MPDU against the computed value. If the MIC values are equal, output circuit 420 sends the MPDU (step 512 ), for example to a host unit or processor within network device 402 . Otherwise, optional countermeasures circuit 326 employs one or more countermeasures (step 514 ) such as those described in IEEE standard 802.11i.
  • key mixing circuit 410 generates each of the N groups of AES blocks before input circuit 406 receives the respective MPDU. Therefore each group of AES blocks is available when the corresponding MPDU arrives at CCMP decryption circuit 418 . This pipelining process ensures that no time is wasted in waiting for a group of AES blocks to be generated after receiving the corresponding MPDU.
  • the invention can be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them.
  • Apparatus of the invention can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps of the invention can be performed by a programmable processor executing a program of instructions to perform functions of the invention by operating on input data and generating output.
  • the invention can be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device.
  • Each computer program can be implemented in a high-level procedural or object-oriented programming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language.
  • Suitable processors include, by way of example, both general and special purpose microprocessors.
  • a processor will receive instructions and data from a read-only memory and/or a random access memory.
  • a computer will include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks.
  • Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks. Any of the foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits).
  • semiconductor memory devices such as EPROM, EEPROM, and flash memory devices
  • magnetic disks such as internal hard disks and removable disks
  • magneto-optical disks magneto-optical disks
  • CD-ROM disks CD-ROM disks

Abstract

An apparatus includes a key mixing circuit to generate N groups of decryption seeds, each generated based upon a predetermined key, a transmitter address, and a predetermined start value for a packet number. An input circuit receives N encrypted packets, each including the transmitter address and one of N values for the packet number. A decryption circuit decrypts each of the N encrypted packets using one of the N groups of decryption seeds that was generated based on the one of the N values in a respective one of the N encrypted packets. The key mixing circuit generates each of the N groups of decryption seeds before the input circuit receives the respective one of the N encrypted packets of the data. The predetermined start value is initialized when the apparatus is initialized and incremented when each of the N groups of decryption seeds is generated.

Description

CROSS-REFERENCE TO RELATED APPLICATIONS
This application is a divisional of U.S. patent application Ser. No. 10/974,458, filed Oct. 27, 2004, now U.S. Pat. No. 7,742,594, issued Jun. 22, 2010, which is related to U.S. Non-Provisional patent application Ser. No. 10/974,388, filed Oct. 27, 2004, now U.S. Pat. No. 7,697,688, issued Apr. 18, 2010. The disclosures of the above applications are incorporated by reference herein in their entirety.
BACKGROUND
The present invention relates generally to encryption and decryption of data communications packets. More particularly, the present invention relates to pipelining such encryption and decryption to achieve faster data throughput.
Network devices operating in a wireless local-area network (WLAN) must employ the Counter Mode With Cipher-Block Chaining Message Authentication Code Protocol (CCMP) to comply with the IEEE 802.11i standard to protect the confidentiality and integrity of transmitted data from malicious attacks.
According to CCMP, the sender encrypts packets of data to be sent using a temporal key negotiated with the receiver. The receiver, upon receiving the packets, decrypts the packets using the temporal key. This scheme works well as long as the transmitted packets are separated by inter-packet gaps that are large enough to allow the receiver to complete the decryption of one packet before the next packet arrives.
However, in WLAN applications that require very high throughput, data packets are transmitted in succession with no inter-packet gaps. In addition, in IEEE 802.11n Multiple Input Multiple Output (MIMO) systems, data packets are transmitted at even higher data rates, leaving even less time for decryption.
SUMMARY
In general, in one aspect, the invention features an apparatus and corresponding method and computer program for processing N encrypted Media Access Control (MAC) Payload Data Units (MPDUs), wherein N≧1. It comprises a key mixing circuit to generate N groups of Advanced Encryption Standard (AES) Output Blocks, wherein each of the AES Output Blocks is generated based upon a predetermined key, a transmitter MAC address, and a predetermined start value for a packet number; an input circuit to receive the N encrypted MPDUs, wherein each of the N encrypted MPDUs comprises the transmitter address and one of N values for the packet number, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; and a decryption circuit to decrypt each of the N encrypted MPDUs using the one of the N groups of AES Output Blocks that was generated based on the value for the packet number in the respective one of the N MPDUs; wherein the key mixing circuit generates each of the N groups of AES Output Blocks before the input circuit receives the respective one of the N encrypted MPDUs.
Particular implementations can include one or more of the following features. The input circuit receives a message comprising the transmitter address and the predetermined start value for the packet number before generating the N groups of AES Output Blocks. The message further comprises the value of N. Particular implementations can include a verification circuit to verify each of the N decrypted MPDUs using a Message Integrity Code (MIC) key. Particular implementations can include a countermeasures circuit to employ one or more countermeasures when any of the N decrypted packets cannot be verified. The decryption circuit selects one of the N encrypted MPDUs and decrypts M different portions of the one of the N encrypted MPDUs using the M respective ones of the AES Output Blocks that were generated based on the value for the packet number in the one of the N encrypted MPDUs. The message further comprises the value of M for each of the N encrypted MPDUs. A network device comprises the apparatus. The wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20. The wireless network device is compliant with IEEE standard 802.11i.
In general, in one aspect, the invention features an apparatus and corresponding method and computer program for processing N encrypted packets of data, wherein N≧1. It comprises a key mixing circuit to generate N groups of decryption seeds, wherein each of the decryption seeds is generated based upon a predetermined key, a transmitter address, and a predetermined start value for a packet number; an input circuit to receive the N encrypted packets, wherein each of the N encrypted packets comprises the transmitter address, and one of N values for the packet number, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; and a decryption circuit to decrypt each of the N encrypted packets of data using the one of the N groups of decryption seeds that was generated based on the value for the packet number in the respective one of the N encrypted packets of data; wherein the key mixing circuit generates each of the N groups of decryption seeds before the input circuit receives the respective one of the N encrypted packets of the data.
Particular implementations can include one or more of the following features. The input circuit receives a message comprising the transmitter address and the predetermined start value for the packet number before generating the N groups of decryption seeds. The message further comprises the value of N. Particular implementations can include a verification circuit to verify each of the N decrypted packets using an integrity code key. Particular implementations can include a countermeasures circuit to employ one or more countermeasures when any of the N decrypted packets cannot be verified. The decryption circuit selects one of the N encrypted packets of data and decrypts M different portions of the one of the N encrypted packets of data using the M respective ones of the decryption seeds that were generated based on the value for the packet number in the one of the N encrypted packets of data. The message further comprises the value of M for each of the N encrypted packets of data. A network device comprises the apparatus. The wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20. The wireless network device is compliant with IEEE standard 802.11i.
In general, in one aspect, the invention features an apparatus and corresponding method and computer program for transmitting N Media Access Control (MAC) Payload Data Units (MPDUs), wherein N≧1. It comprises a key mixing circuit to generate N groups of Advanced Encryption Standard (AES) Output Blocks, wherein each AES Output Block is generated based upon a predetermined key, a transmitter MAC address, and a predetermined start value for a packet number; an input circuit to receive the N MPDUs; a packet number circuit to insert a different one of N values for the packet number into each of the N MPDUs, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; an encryption circuit to encrypt each of the N MPDUs using the one of the N groups of AES Output Blocks that was generated based on the value for the packet number in the respective one of the N MPDUs; and an output circuit to send the N encrypted packets of data; wherein the encryption circuit generates each of the N groups of AES Output Blocks before the input circuit receives the respective one of the N MPDUs.
Particular implementations can include one or more of the following features. The output circuit sends a message comprising the transmitter address and the predetermined start value for the packet number before sending the N encrypted packets of data. The message further comprises the value of N. Particular implementations can include an integrity circuit to generate a Message Integrity Code (MIC) for each of the N MPDUs using a MIC key and insert each MIC into a respective one of the N MPDUs before the encryption circuit encrypts the respective one of the N MPDUs. To encrypt each of the N MPDUs, the encryption circuit selects one of the N MPDUs and encrypts M different portions of the one of the N MPDUs using M respective ones of the AES Output Blocks that were generated based on the value for the packet number in the one of the N MPDUs. A network device comprises the apparatus. The wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20. The wireless network device is compliant with IEEE standard 802.11i.
In general, in one aspect, the invention features an apparatus and corresponding method and computer program for transmitting N packets of data, wherein N≧1. It comprises a key mixing circuit to generate N groups of encryption seeds, wherein each encryption seed is generated based upon a predetermined key, a transmitter address, and a predetermined start value for a packet number; an input circuit to receive the N packets of data; a packet number circuit to insert a different one of N values for the packet number into each of the N packets of data, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; an encryption circuit to encrypt each of the N packets of data using the one of the N groups of encryption seeds that was generated based on the value for the packet number in the respective one of the N packets of data; and an output circuit to send the N packets of data; wherein the encryption circuit generates each of the N groups of encryption seeds before the input circuit receives the respective one of the N packets of data.
Particular implementations can include one or more of the following features. The output circuit sends a message comprising the transmitter address, and the predetermined start value for the packet number before sending the N packets of data. The message further comprises the value of N. Particular implementations can include an integrity circuit to generate an integrity code for each of the N packets of data using an integrity code key and insert each an integrity code into a respective one of the N packets of data before encrypting the respective one of the N packets of data. To encrypt each of the N packets of data, the encryption circuit selects one of the N packets of data and encrypts M different portions of the one of the N packets of data using M respective ones of the encryption seeds that were generated based on the value for the packet number in the one of the N packets of data. A network device comprises the apparatus. The wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20. The wireless network device is compliant with IEEE standard 802.11i.
In general, in one aspect, the invention features an apparatus and corresponding method and computer program for transmitting N Media Access Control (MAC) Payload Data Units (MPDUs), wherein N≧1. It comprises an output circuit to send a message comprising a transmitter MAC address and a predetermined start value for a packet number; a packet number circuit to insert a different one of N values for the packet number into each of the N MPDUs, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; a key mixing circuit to generate N groups of Advanced Encryption Standard (AES) Output Blocks, wherein each AES Output Block is generated based upon a predetermined key, the transmitter address, and the predetermined start value for the packet number; and an encryption circuit to encrypt each of the N MPDUs using the one of the N groups of AES Output Blocks that was generated based on the value for the packet number in the respective one of the N MPDUs; wherein the output circuit sends the N encrypted MPDUs after sending the message.
Particular implementations can include one or more of the following features. Particular implementations can include an integrity circuit to generate a Message Integrity Code (MIC) for each of the N MPDUs using a MIC key and insert each MIC into a respective one of the N MPDUs before the encryption circuit encrypts the respective one of the N MPDUs. The message further comprises the value of N. To encrypt each of the N MPDUs, the encryption circuit selects one of the N MPDUs and encrypts M different portions of the one of the N MPDUs using the M respective ones of the AES Output Blocks that were generated based on the value for the packet number in the one of the N MPDUs. A network device comprises the apparatus. The wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20. The wireless network device is compliant with IEEE standard 802.11i.
In general, in one aspect, the invention features an apparatus and corresponding method and computer program for transmitting N packets of data, wherein N≧1. It comprises an output circuit to send a message comprising a transmitter address and a predetermined start value for a packet number; a packet number circuit to insert a different one of N values for the packet number into each of the N packets of data, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; a key mixing circuit to generate N groups of encryption seeds, wherein each encryption seed is generated based upon a predetermined key, the transmitter address, and the predetermined start value for the packet number; an encryption circuit to encrypt each of the N packets of data using the one of the N groups of encryption seeds that was generated based on the value for the packet number in the respective one of the N packets of data; wherein the output circuit sends the N encrypted packets of data after sending the message.
Particular implementations can include one or more of the following features. Particular implementations can include an integrity circuit to generate an integrity code for each of the N packets of data using an integrity code key and insert each integrity code into a respective one of the N packets of data before the encryption circuit encrypts the respective one of the N packets of data. The message further comprises the value of N. To encrypt each of the N packets of data, the encryption circuit selects one of the N encrypted packets of data and decrypts M different portions of the one of the N encrypted packets of data using M respective ones of the encryption seeds that were generated based on the value for the packet number in the one of the N encrypted packets of data. A network device comprises the apparatus. The wireless network device is otherwise compliant with at least one standard selected from the group consisting of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20. The wireless network device is compliant with IEEE standard 802.11i.
In general, in one aspect, the invention features a packet comprising packet number information representing a number N of Media Access Control (MAC) Payload Data Units (MPDUs) encrypted according to Counter Mode With Cipher-Block Chaining Message Authentication Code Protocol (CCMP) to be transmitted following the packet, wherein N≧1; a transmitter MAC address for a transmitter of the N encrypted MPDUs; a receiver MAC address for a receiver of the N encrypted MPDUs; and length information representing a length of each of the N encrypted MPDUs.
Particular implementations can include one or more of the following features. The packet number information comprises a predetermined start value for a packet number, wherein each of the N encrypted MPDUs comprises a value for the packet number that is greater than, or equal to, the predetermined start value for the packet number; and a predetermined range value representing a range of values of the packet numbers in the N encrypted MPDUs.
In general, in one aspect, the invention features a packet comprising packet number information representing a number N of encrypted packets to be transmitted following the packet, wherein N≧1; a transmitter address for a transmitter of the N encrypted packets; a receiver address for a receiver of the N encrypted packets; and length information representing a length of each of the N encrypted packets.
Particular implementations can include one or more of the following features. The packet number information comprises a predetermined start value for a packet number, wherein each of the N encrypted packets comprises a value for the packet number that is greater than, or equal to, the predetermined start value for the packet number; and a predetermined range value representing a range of values of the packet numbers in the N encrypted packets.
The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features will be apparent from the description and drawings, and from the claims.
DESCRIPTION OF DRAWINGS
FIG. 1 shows a network device in communication with a network such as a wireless local-area network (WLAN) according to a preferred embodiment.
FIG. 2 shows a pipelined two-stage encryption and transmission process for network device of FIG. 1 according to a preferred embodiment.
FIG. 3 shows the format of a pipelining setup message according to a preferred embodiment.
FIG. 4 shows a network device in communication with a network such as a WLAN according to a preferred embodiment.
FIG. 5 shows a pipelined two-stage reception and decryption process for network device of FIG. 4 according to a preferred embodiment.
The leading digit(s) of each reference numeral used in this specification indicates the number of the drawing in which the reference numeral first appears.
DETAILED DESCRIPTION
Embodiments of the present invention employ pipelining strategies that allow encryption and decryption of packets in two stages, one of which is implemented for each packet before the packet is received. These pipelining approaches significantly reduce the time required to encrypt and decrypt a series of packets.
The two stages are encryption seed generation and encryption or decryption. When certain parameters for the packets to be received are known or assumed in advance, the encryption seeds for the packets can be generated before receiving the packets. Therefore the packets can be encrypted or decrypted immediately upon arrival, rather than after the time-consuming encryption seed generation process.
Embodiments of the present invention are described with respect to the Counter Mode With Cipher-Block Chaining Message Authentication Code Protocol (CCMP) specified by the IEEE 802.11i standard (April 2004). However, as will be apparent to one skilled in the relevant arts after reading this description, the techniques disclosed herein are equally applicable to other sorts of encryption and encapsulation protocols, and to wired networks as well as wireless networks.
FIG. 1 shows a network device 102 in communication with a network 104 such as a wireless local-area network (WLAN) according to a preferred embodiment. Network device 102 comprises an input circuit 106, a controller 108, a key mixing circuit 110, a memory 112, a Message Integrity Code (MIC) circuit 114, a packet number (PN) circuit 116, a CCMP encryption circuit 118, and an output circuit 120. According to some embodiments, network device 102 is compliant with IEEE standards 802.11i, and is otherwise compliant with one or more of IEEE standards 802.11 (1999 Edition), 802.11a (1999 Edition, Amended 2000), 802.11b (16 Sep. 1999 Edition), 802.11g (April 2003), 802.11n (e.g., IEEE P802.11-04/0889r6), 802.16 (Apr. 8, 2002), and 802.20-PD-06 (Jul. 16, 2004), the disclosures thereof incorporated herein by reference in their entirety.
FIG. 2 shows a pipelined two-stage encryption and transmission process 200 for network device 102 of FIG. 1 according to a preferred embodiment. In the second of the two stages, each of N Media Access Control (MAC) Payload Data Units (MPDUs) are encrypted using one of N groups of Advanced Encryption Standard (AES) Output Blocks (also referred to herein as “AES blocks”). The first stage of the process generates the N groups of AES blocks ahead of time so they are ready when the second stage begins.
Referring to FIG. 2, controller 108 provides a transmitter MAC address TA, a temporal key TK, and at least a start value for a packet number (PN) and counter (CTR) to key mixing circuit 110 (step 202). The transmitter MAC address TA is a MAC address for network device 102. The temporal key TK is a key that is negotiated in advance by network device 102 and an intended receiver, as is well-known in the relevant arts. The PN is a counter for the MPDUs to ensure sequential reception at the intended receiver, as described in detail below. The CTR is a counter to count the number of 16-octet blocks in the payload of each MPDU.
Key mixing circuit 110 generates each of the N groups of AES blocks based upon temporal key TK, transmitter MAC address TA, and the start value for PN, and stores the N groups of AES blocks in memory 112 (step 204). Preferably key mixing circuit 110 generates a group of AES blocks for each of N sequential values of PN beginning with the start value provided by controller 108, although other methods could be used. The start value for PN is preferably initialized to one (PN=1) during initialization of network device 102, and is incremented for each group of AES blocks generated.
Each group of AES blocks comprises multiple AES block ciphers, each having a length of 16 octets. Preferably key mixing circuit 110 generates a AES block for each of M sequential values of CTR beginning with the start value provided by controller 108, although other methods could be used. The start value for CTR is preferably initialized to one (CTR=1) for each MPDU, and is incremented for each AES block cipher generated. A full description of this operation is given in IEEE standard 802.11i.
Input circuit 106 subsequently receives one or more MPDUs (step 206), for example from a host unit or processor within network device 102. PN circuit 116 inserts a value for PN into each MPDU so the MPDUs are numbered sequentially (step 208). Each of the N values for the PN is greater than, or equal to, the start value for the PN.
MIC circuit 114 computes a MIC value for each MPDU based upon a MIC key, and inserts the MIC value into the respective MPDU (step 210) according to methods well-known in the relevant arts.
CCMP encryption circuit 118 encrypts each of the N MPDUs using the one of the N groups of AES blocks that was generated based on the value for the PN in the respective one of the N MPDUs (step 212). For example, CCMP encryption circuit 118 receives a MPDU from PN circuit 116 and the corresponding group of AES blocks from memory 112, and performs the encryption according to methods well-known in the relevant arts to produce an encrypted MPDU (EMPDU).
Output circuit 120 sends the N EMPDUs (step 214). For example, output circuit 120 can comprise a wireless physical-layer device (PHY) and antenna. As another example, output circuit 120 can be a MAC output circuit that provides the EMPDUs to a separate PHY and antenna for transmission to network 104.
According to process 200, key mixing circuit 110 generates each of the N groups of AES blocks before input circuit 106 receives the respective MPDUs. Therefore each group of AES blocks is available when the corresponding MPDU arrives at CCMP encryption circuit 118. This pipelining process ensures that no time is wasted in waiting for a group of AES blocks to be generated after receiving the corresponding MPDU.
In some embodiments, network device 102 generates and sends a pipelining setup message containing information describing the N MPDUs before sending the MPDUs. The pipelining setup message can be used by the intended recipient to pipeline the decryption process, as described in detail below. Network device 102 can generate and send the pipelining setup message either with or without performing the pipelining process 200 described above. FIG. 3 shows the format of a pipelining setup message 300 according to a preferred embodiment.
Pipelining setup message 300 preferably comprises a transmitter address 302, a receiver address 304, a PN start value 308, an optional PN range value 310, and the lengths 312A-312N of each of the N MPDUs represented by pipelining setup message 300. Transmitter address 302 is preferably the 6-byte MAC address of network device 102. Receiver address 304 is preferably the 6-byte MAC address of a wireless receiver, such as a wireless access point, in network 104.
PN start value 308 is the 6-byte value of PN for the first of the N MPDUs to be sent. PN range value 310 is a 1-byte value representing the number N of MPDUs to be sent. Of course, the PN information can be represented in other ways in pipelining setup message 300. For example, instead of including the start value and range for PN, the PN information could comprise the end value and range, the start and end values, or any other parameters that can be used to calculate the start and range values of PN. Each length value 312 is a 1-byte value representing the length in bytes of the respective MPDU.
FIG. 4 shows a network device 402 in communication with a network 404 such as a wireless local-area network (WLAN) according to a preferred embodiment. Network device 402 comprises an input circuit 406, a controller 408, a key mixing circuit 410, a memory 412, a Message Integrity Code (MIC) circuit 414, a CCMP decryption circuit 418, an output circuit 420, optional comparators 422 and 424, and an optional countermeasures circuit 426. According to some embodiments, network device 402 is compliant with IEEE standards 802.11i, and is otherwise compliant with one or more of IEEE standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20, the disclosures thereof incorporated herein by reference in their entirety.
FIG. 5 shows a pipelined two-stage reception and decryption process 500 for network device 402 of FIG. 4 according to a preferred embodiment. In the second of the two stages, each of N encrypted MPDUs (EMPDUs) are decrypted using one of N groups of AES blocks. The first stage of the process generates the N groups of AES blocks ahead of time so they are ready when the second stage begins.
Referring to FIG. 5, controller 408 provides a transmitter MAC address TA, a temporal key TK, and at least a start value for a packet number (PN) and counter (CTR) to key mixing circuit 410 (step 502). The transmitter MAC address TA is a MAC address for the network device transmitting the MPDUs. The temporal key TK is a key that is negotiated in advance by network device 402 and the network device transmitting the MPDUs, as is well-known in the relevant arts. The PN is a counter for the MPDUs to ensure sequential reception at the intended receiver, as described in detail below. The CTR is a counter to count the number of 16-octet blocks in the payload of each MPDU.
In some embodiments, the network device transmitting the MPDUs first transmits a pipelining setup message such as the pipelining setup message described above with reference to FIG. 3 before transmitting the MPDUs. Network device 402 then extracts TA and generates the PN and CTR values for each MPDU based on the pipelining setup message.
In other embodiments, network device 402 generates TA and the values for PN and CTR without the use of a pipelining setup message. For example, network device 402 can generate a set of AES blocks for one or more of the known transmitters in network 404 using PN values that are assumed or tracked by monitoring network traffic and CTR values limited by a maximum expected MPDU size. In some embodiments, each network device maintains a separate PN counter for each of the other network devices. The network devices can set PN=1 on network initialization, association with the corresponding network device, and the like, to ensure that their PN counters remain synchronized. In such embodiments, no pipelining setup message is needed.
Key mixing circuit 410 generates each of the N groups of AES blocks based upon temporal key TK, transmitter MAC address TA, and the start value for PN, and stores the N groups of AES blocks in memory 412 (step 504). Preferably key mixing circuit 410 generates a group of AES blocks for each of N sequential values of PN beginning with the start value provided by controller 408, although other methods could be used. The start value for PN is preferably initialized to one (PN=1) during initialization of network device 402, and is incremented for each group of AES blocks generated.
Input circuit 406 subsequently receives N EMPDUs (step 506). For example, input circuit 406 can comprise a wireless physical-layer device (PHY) and antenna. As another example, input circuit 406 can be a MAC input circuit that receives the EMPDUs from a separate PHY and antenna in communication with network 404.
Optional comparator 322 checks the value of PN in each EMPDU against the expected value. Out-of-sequence EMPDUs are discarded. In-sequence EMPDUs are provided to CCMP decryption circuit 418.
CCMP decryption circuit 418 decrypts each of the N EMPDUs using the one of the N groups of AES blocks that was generated based on the value for the PN in the respective one of the N EMPDUs (step 508). For example, CCMP decryption circuit 418 receives an EMPDU and receives the corresponding group of AES blocks from memory 412, and performs the decryption according to methods well-known in the relevant arts to produce a decrypted MPDU.
MIC circuit 414 computes a MIC value for each MPDU based upon a MIC key (step 510). Optional comparator 324 checks the value of PN in each MPDU against the computed value. If the MIC values are equal, output circuit 420 sends the MPDU (step 512), for example to a host unit or processor within network device 402. Otherwise, optional countermeasures circuit 326 employs one or more countermeasures (step 514) such as those described in IEEE standard 802.11i.
According to process 500, key mixing circuit 410 generates each of the N groups of AES blocks before input circuit 406 receives the respective MPDU. Therefore each group of AES blocks is available when the corresponding MPDU arrives at CCMP decryption circuit 418. This pipelining process ensures that no time is wasted in waiting for a group of AES blocks to be generated after receiving the corresponding MPDU.
The invention can be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. Apparatus of the invention can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps of the invention can be performed by a programmable processor executing a program of instructions to perform functions of the invention by operating on input data and generating output. The invention can be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. Each computer program can be implemented in a high-level procedural or object-oriented programming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language. Suitable processors include, by way of example, both general and special purpose microprocessors. Generally, a processor will receive instructions and data from a read-only memory and/or a random access memory. Generally, a computer will include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks. Any of the foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits).
A number of implementations of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. Accordingly, other implementations are within the scope of the following claims.

Claims (17)

1. An apparatus for processing N encrypted packets, wherein N is an integer and N≧1, the apparatus comprising:
a key mixing circuit to generate N groups of decryption seeds, wherein each of the N groups of decryption seeds is generated based upon a predetermined key, a transmitter address, and a predetermined start value for a packet number;
an input circuit to receive the N encrypted packets, wherein each of the N encrypted packets comprises the transmitter address, and one of N values for the packet number, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; and
a decryption circuit to decrypt each of the N encrypted packets using one of the N groups of decryption seeds that was generated based on the one of the N values for the packet number in a respective one of the N encrypted packets,
wherein the key mixing circuit generates each of the N groups of decryption seeds before the input circuit receives the respective one of the N encrypted packets of the data, and
wherein the predetermined start value is (i) initialized when the apparatus is initialized and (ii) incremented when each of the N groups of decryption seeds is generated.
2. The apparatus of claim 1:
wherein the input circuit receives a message comprising the transmitter address and the predetermined start value for the packet number before generating the N groups of decryption seeds.
3. The apparatus of claim 2:
wherein the message further comprises information describing the N encrypted packets.
4. The apparatus of claim 1, further comprising:
a verification circuit to verify each of the N decrypted packets using an integrity code key.
5. The apparatus of claim 1, further comprising:
a countermeasures circuit to employ one or more countermeasures when any of the N decrypted packets cannot be verified.
6. The apparatus of claim 1:
wherein the decryption circuit selects one of the N encrypted packets and decrypts M different portions of the one of the N encrypted packets using M respective ones of the decryption seeds from the one of the N groups of decryption seeds that were generated based on the one of the N values for the packet number in the one of the N encrypted packets, where M is an integer greater than 1.
7. The apparatus of claim 6:
wherein the input circuit receives a message comprising a value of M for each of the N encrypted packets.
8. A network device comprising the apparatus of claim 1.
9. The network device of claim 8, wherein the network device comprises a wireless network device which is otherwise compliant with at least one standard selected from a group consisting of standards 802.11, 802.11a, 802.11b, 802.11g, 802.11n, 802.16, and 802.20 defined by Institute of Electrical and Electronics Engineers.
10. The network device of claim 8, wherein the network device comprises a wireless network device which is compliant with a standard 802.11i defined by Institute of Electrical and Electronics Engineers.
11. A method for processing N encrypted packets in an apparatus, wherein N is an integer and N≧1, the method comprising:
generating N groups of decryption seeds, wherein each of the N groups of decryption seeds is generated based upon a predetermined key, a transmitter address, and a predetermined start value for a packet number;
receiving the N encrypted packets, wherein each of the N encrypted packets comprises the transmitter address, and one of N values for the packet number, wherein each of the N values for the packet number is greater than, or equal to, the predetermined start value for the packet number; and
decrypting each of the N encrypted packets using the one of the N groups of decryption seeds that was generated based on the one of the N values for the packet number in a respective one of the N encrypted packets,
wherein each of the N groups of decryption seeds is generated before receiving the respective one of the N encrypted packets of the data, and
wherein the predetermined start value is (i) initialized when the apparatus is initialized and (ii) incremented when each of the N groups of decryption seeds is generated.
12. The method of claim 11, further comprising:
receiving a message comprising the transmitter address and the predetermined start value for the packet number before generating the N groups of decryption seeds.
13. The method of claim 12:
wherein the message further comprises information describing the N encrypted packets.
14. The method of claim 11, further comprising:
verifying each of the N decrypted packets using an integrity code key.
15. The method of claim 11, further comprising:
employing one or more countermeasures when verifying any of the N decrypted packets fails.
16. The method of claim 11, wherein decrypting each of the N encrypted packets comprises:
selecting one of the N encrypted packets; and
decrypting M different portions of the one of the N encrypted packets using M respective ones of the decryption seeds from the one of the N groups of decryption seeds that were generated based on the one of the N values for the packet number in the one of the N encrypted packets, where M is an integer greater than 1.
17. The method of claim 16, further comprising:
receiving a message comprising a value of M for each of the N encrypted packets.
US12/217,928 2004-10-27 2008-07-10 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol Expired - Fee Related US8229110B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US12/217,928 US8229110B1 (en) 2004-10-27 2008-07-10 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US13/555,825 US8631233B1 (en) 2004-10-27 2012-07-23 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US10/974,458 US7742594B1 (en) 2004-10-27 2004-10-27 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US12/217,928 US8229110B1 (en) 2004-10-27 2008-07-10 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US10/974,458 Division US7742594B1 (en) 2004-10-27 2004-10-27 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/555,825 Division US8631233B1 (en) 2004-10-27 2012-07-23 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol

Publications (1)

Publication Number Publication Date
US8229110B1 true US8229110B1 (en) 2012-07-24

Family

ID=42260704

Family Applications (4)

Application Number Title Priority Date Filing Date
US10/974,458 Active 2028-11-11 US7742594B1 (en) 2004-10-27 2004-10-27 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US12/217,928 Expired - Fee Related US8229110B1 (en) 2004-10-27 2008-07-10 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US13/555,825 Active US8631233B1 (en) 2004-10-27 2012-07-23 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US14/154,464 Active US9055039B1 (en) 2004-10-27 2014-01-14 System and method for pipelined encryption in wireless network devices

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US10/974,458 Active 2028-11-11 US7742594B1 (en) 2004-10-27 2004-10-27 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol

Family Applications After (2)

Application Number Title Priority Date Filing Date
US13/555,825 Active US8631233B1 (en) 2004-10-27 2012-07-23 Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US14/154,464 Active US9055039B1 (en) 2004-10-27 2014-01-14 System and method for pipelined encryption in wireless network devices

Country Status (1)

Country Link
US (4) US7742594B1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120201196A1 (en) * 2010-08-11 2012-08-09 Qualcomm Incorporated Signaling for extended mpdu, a-mpdu and a-msdu frame formats
US8577037B1 (en) * 2004-10-27 2013-11-05 Marvell International Ltd. Pipelined packet encapsulation and decapsulation for temporal key integrity protocol employing arcfour algorithm
US8631233B1 (en) 2004-10-27 2014-01-14 Marvell International Ltd. Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2531411C (en) * 2005-12-23 2017-02-14 Bce Inc System and method for encrypting traffic on a network
US8423789B1 (en) 2007-05-22 2013-04-16 Marvell International Ltd. Key generation techniques
BR112016012359A2 (en) * 2013-12-02 2017-08-08 Mastercard International Inc METHOD AND SYSTEM FOR SECURE TRANSMISSION OF REMOTE NOTIFICATION SERVICE MESSAGES TO MOBILE DEVICES WITHOUT SECURE ELEMENTS

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040083362A1 (en) 2002-10-23 2004-04-29 Ndosa Technologies Inc. Cryptographic method and computer program product for use in wireless local area networks
US20040142710A1 (en) 2003-01-16 2004-07-22 Texas Instruments Incorporated Simplified CCMP mode for a wireless local area network
US20040202317A1 (en) 2002-12-20 2004-10-14 Victor Demjanenko Advanced encryption standard (AES) implementation as an instruction set extension
US20050172119A1 (en) 2004-01-30 2005-08-04 Advanced Micro Devices, Inc. Hardware/software partitioning for encrypted WLAN communications
US6965674B2 (en) 2002-05-21 2005-11-15 Wavelink Corporation System and method for providing WLAN security through synchronized update and rotation of WEP keys
US20050278548A1 (en) 2004-06-09 2005-12-15 Chu-Ming Lin System and method for performing secure communications in a wireless local area network
US7245724B1 (en) 2002-03-08 2007-07-17 Atheros Communications, Inc. Rekey operation with multiplexing capability
US7350077B2 (en) 2002-11-26 2008-03-25 Cisco Technology, Inc. 802.11 using a compressed reassociation exchange to facilitate fast handoff

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5999629A (en) 1995-10-31 1999-12-07 Lucent Technologies Inc. Data encryption security module
US6438235B2 (en) 1998-08-05 2002-08-20 Hewlett-Packard Company Media content protection utilizing public key cryptography
US6683954B1 (en) 1999-10-23 2004-01-27 Lockstream Corporation Key encryption using a client-unique additional key for fraud prevention
US20040034785A1 (en) 2002-08-15 2004-02-19 Horng-Ming Tai Hardware and firmware encryption mechanism using unique chip die identification
JP4077689B2 (en) 2002-08-28 2008-04-16 日本放送協会 Content transmission method, content transmission device, content transmission program and content reception method, content reception device, and content reception program
US7742594B1 (en) 2004-10-27 2010-06-22 Marvell International Ltd. Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US7697688B1 (en) 2004-10-27 2010-04-13 Marvell International Ltd. Pipelined packet encapsulation and decapsulation for temporal key integrity protocol employing arcfour algorithm

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7245724B1 (en) 2002-03-08 2007-07-17 Atheros Communications, Inc. Rekey operation with multiplexing capability
US6965674B2 (en) 2002-05-21 2005-11-15 Wavelink Corporation System and method for providing WLAN security through synchronized update and rotation of WEP keys
US20040083362A1 (en) 2002-10-23 2004-04-29 Ndosa Technologies Inc. Cryptographic method and computer program product for use in wireless local area networks
US7350077B2 (en) 2002-11-26 2008-03-25 Cisco Technology, Inc. 802.11 using a compressed reassociation exchange to facilitate fast handoff
US20040202317A1 (en) 2002-12-20 2004-10-14 Victor Demjanenko Advanced encryption standard (AES) implementation as an instruction set extension
US20040142710A1 (en) 2003-01-16 2004-07-22 Texas Instruments Incorporated Simplified CCMP mode for a wireless local area network
US20050172119A1 (en) 2004-01-30 2005-08-04 Advanced Micro Devices, Inc. Hardware/software partitioning for encrypted WLAN communications
US20050278548A1 (en) 2004-06-09 2005-12-15 Chu-Ming Lin System and method for performing secure communications in a wireless local area network

Non-Patent Citations (13)

* Cited by examiner, † Cited by third party
Title
IEEE 802.20-PD-06 (Jul. 16, 2004) 24 pages); Draft 802.20 Permanent Document; System Requirements for IEEE 802.20 Mobile Broadband Wireless Access Systems-Version 14.
IEEE 802.20-PD-06 (Jul. 16, 2004) 24 pages); Draft 802.20 Permanent Document; System Requirements for IEEE 802.20 Mobile Broadband Wireless Access Systems—Version 14.
IEEE P802.11i, IEEE Standard for Information technology-Telecommunications and information exchange between systems-Local and metropolitan area networks-Specific requirements; Part 11: Wireless Medium Access Control (MAC) and Physical Layer (PHY) specifications: Amendment 6: Medium Access Control (MAC) Security Enhancements, Apr. 2004, pp. 1-171.
IEEE P802.11i, IEEE Standard for Information technology—Telecommunications and information exchange between systems—Local and metropolitan area networks—Specific requirements; Part 11: Wireless Medium Access Control (MAC) and Physical Layer (PHY) specifications: Amendment 6: Medium Access Control (MAC) Security Enhancements, Apr. 2004, pp. 1-171.
IEEE Standard 802.11 (1999 Edition; 542 pages); IEEE Standard for Information Technology; Telecommunications and Information Exchange Between Systems; Local and Metropolitan Area Networks; Specific Requirements; Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications.
IEEE Standard 802.11a (1999 Edition; Amdended 2000; 92 pages); Supplement to IEEE Standard for Information Technology; Telecommunications and Information Exchange Between Systems; Local and Metropolitan Area Networks; Specific Requirements; Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications; High-Speed Physical Layer in the 5 GHz Band.
IEEE Standard 802.11b (Sep. 16, 1999 Edition) 96 pages); Supplement to IEEE Standard for Information Technology; Telecommunications and Information Exchange Between Systems; Local and Metropolitan Area Networks; Specific Requirements; Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications; Higher-Speed Physical Layer Extension ni the 2.4 GHz Band.
IEEE Standard 802.11i (Apr. 2004) 177 pages); IEEE Standard for Information Technology; Telecommunications and Information Exchange Between Systems; Local and Metropolitan Area Networks; Specific Requirements; Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications; Amendment 6: Medium Access Control (MAC) Security Enhancements.
IEEE Standard P802.11G, Draft Supplement to Standard for Information technology-Telecommuncations and information exchange beween systems-Local and metropolitan area networks-Specific requirements, Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications: Further Higher Data Rate Extension in the 2.4 GHz Band, Apr. 2003, pp. 1-69.
IEEE Standard P802.11G, Draft Supplement to Standard for Information technology—Telecommuncations and information exchange beween systems—Local and metropolitan area networks—Specific requirements, Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) specifications: Further Higher Data Rate Extension in the 2.4 GHz Band, Apr. 2003, pp. 1-69.
IEEE Std. 802.16; IEEE Standard for Local and metropolitan area networks; Part 16: Air Interface for Fixed Broadband Wireless Access Systems; Apr. 8, 2002; pp. 1-322.
IEEE Std. 802.16; IEEE Standard for Local and metropolitan area networks; Part 16: Air Interface for Fixed Broadband Wireless Access Systems; Oct. 1, 2004; pp. i-xxxiv and 1-857; IEEE Std 802.16-2004, IEEE, United States.
U.S. Appl. No. 10/974,388, filed Oct. 27, 2004, Loc et al.

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8577037B1 (en) * 2004-10-27 2013-11-05 Marvell International Ltd. Pipelined packet encapsulation and decapsulation for temporal key integrity protocol employing arcfour algorithm
US8631233B1 (en) 2004-10-27 2014-01-14 Marvell International Ltd. Pipelined packet encryption and decryption using counter mode with cipher-block chaining message authentication code protocol
US9055039B1 (en) 2004-10-27 2015-06-09 Marvell International Ltd. System and method for pipelined encryption in wireless network devices
US9088553B1 (en) 2004-10-27 2015-07-21 Marvell International Ltd. Transmitting message prior to transmitting encapsulated packets to assist link partner in decapsulating packets
US20120201196A1 (en) * 2010-08-11 2012-08-09 Qualcomm Incorporated Signaling for extended mpdu, a-mpdu and a-msdu frame formats
US9071992B2 (en) * 2010-08-11 2015-06-30 Qualcomm Incorporated Signaling for extended MPDU, A-MPDU and A-MSDU frame formats

Also Published As

Publication number Publication date
US8631233B1 (en) 2014-01-14
US7742594B1 (en) 2010-06-22
US9055039B1 (en) 2015-06-09

Similar Documents

Publication Publication Date Title
US9055039B1 (en) System and method for pipelined encryption in wireless network devices
US10560269B2 (en) Methods and systems for improved authenticated encryption in counter-based cipher systems
US8447968B2 (en) Air-interface application layer security for wireless networks
US8320567B2 (en) Efficient data path encapsulation between access point and access switch
WO2007059558A1 (en) Wireless protocol for privacy and authentication
JP2007140566A (en) Efficient packet encryption method
US7627747B2 (en) Hardware/software partitioning for encrypted WLAN communications
US8204216B2 (en) Processing method for message integrity with tolerance for non-sequential arrival of message data
US9088553B1 (en) Transmitting message prior to transmitting encapsulated packets to assist link partner in decapsulating packets
KR101088549B1 (en) Processing method for message integrity with tolerance for non-sequential arrival of message data
US8122247B2 (en) Processing method for message integrity with tolerance for non-sequential arrival of message data
US7406595B1 (en) Method of packet encryption that allows for pipelining
US7457409B2 (en) System and method for performing secure communications in a wireless local area network
EP3661243A1 (en) Secure beacons
KR20060091018A (en) Apparatus for encapsulation and decapsulation using ccmp in wireless lan
Vu et al. FPGA implementation AES for CCM mode encryption using Xilinx Spartan-II
JP5355408B2 (en) A processing method for message integrity with tolerance for non-sequential arrival of message data
CN113723581A (en) Method for synchronizing receiver initialization vector and sender initialization vector
Hosseini-Khayat et al. PERFORMANCE OF COUNTER SYNCHRONIZATION IN ENCRYPTION OF IEEE 802.11

Legal Events

Date Code Title Description
STCF Information on status: patent grant

Free format text: PATENTED CASE

FPAY Fee payment

Year of fee payment: 4

AS Assignment

Owner name: CAVIUM INTERNATIONAL, CAYMAN ISLANDS

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:MARVELL INTERNATIONAL LTD.;REEL/FRAME:052918/0001

Effective date: 20191231

FEPP Fee payment procedure

Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

AS Assignment

Owner name: MARVELL ASIA PTE, LTD., SINGAPORE

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:CAVIUM INTERNATIONAL;REEL/FRAME:053475/0001

Effective date: 20191231

LAPS Lapse for failure to pay maintenance fees

Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20200724