IP Library Granted Patent US 7,043,017
Granted Patent B2
US 7,043,017 · App. 09/953,665 · Granted May 9, 2006

Key stream cipher device

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,043,017
App. No.
09/953,665
Granted
May 9, 2006
Kind
B2
Abstract

A symmetric key stream processor 60 that encrypts and decrypts text in accordance with the RC4 algorithm has a main processing block 62 and a host interface 64 . The main processing block 62 includes an Sbox memory 78 implemented with a synchronous dual-port RAM and an encryption logic block 80 with a finite state machine. The dual port memory architecture is used for efficiency during permutation and message processing.

Claims (32)

1. A key stream cipher device, comprising:

a key register for storing an encryption key;

a counter for generating a key select pointer, the key select pointer specifying a portion of the encryption key stored in the key register;

an Sbox memory for storing a predetermined number of bytes of state data;

a plurality of Sbox registers for storing a plurality of Sbox pointers that point to predetermined bytes of the state data stored in the Sbox memory;

an encryption logic block, connected to the Sbox memory and the key register, for initializing the Sbox memory in an initialization mode, for generating permutations using the encryption key in a permutation mode, and controlling message processing in a message processing mode;

a message block, connected to the Sbox memory and the encryption logic block, for processing a message when the encryption logic block is in the message processing mode by combining selected bytes of state data read from the Sbox memory with one of the message and ciphertext, wherein in an encryption mode, the message block encrypts the message to generate ciphertext, and in a decryption mode, the message block decrypts ciphertext to recreate a message, the message block including a message register for holding a first predetermined portion of the message, a working register for holding a second predetermined portion of the message previously stored in the message register, and a cipher register for storing one of a portion of the ciphertext and the recreated plaintext; and

a status register that stores a plurality of flags indicating a status of the modes of the cipher device, the modes including the initialization mode, the permutation mode, and the message processing mode, and wherein the status register is updated after each time the status register is read.

2. The key stream cipher device of claim 1 , wherein the Sbox memory comprises a synchronous dual-port random access memory (RAM) having separate address and data lines.

3. The key stream cipher device of claim 1 , further comprising a host interface for passing all data, address and control signals between a host processor and the cipher device.

4. The Key stream cipher device of claim 1 , wherein the register is a read only register.

5. The key steam cipher device of claim 4 , wherein the plurality of mode flags of the status register include an initialization complete flag, a permute complete flag, and a message complete flag.

6. The key stream cipher device of claim 1 , further comprising a control register for masking interrupts to the cipher device and for triggering a reset of the cipher device.

7. The key stream cipher device of claim 1 , wherein the encryption key comprises a plurality of bytes, said plurality of bytes being stored in the key register, and wherein said plurality of bytes can be defined as a plurality of sets of bytes, wherein each of said set of bytes is independently addressable.

8. The key stream cipher device or claim 1 , wherein the encryption key has a variable length and the key register includes a programmable field for indicating the length of the encryption key.

9. The key stream cipher device of claim 1 , wherein the message block includes:

an XOR block for exclusive ORing the data stored in the working register with the data from the Sbox to generate one of the ciphertext and the recreated message text.

10. The key stream cipher device of claim 9 , wherein the message register is a write-only register and the cipher register is a read-only register.

11. The key stream cipher device of claim 1 , wherein the plurality of Sbox registers includes first and second index registers and first and second variable registers, wherein the variable registers are used for swapping bytes of the state data stored in the sbox memory.

12. An improved method of encrypting a message using a stream cipher in a processor, the stream cipher including an initialization step, a permutation step a message processing step and a key, and the processor coupled to a substitution box memory, the improvement comprising a modification to the permutation step, the modified permutation step comprising the steps of:

initializing first and second index values i and j in the substitution box memory;

initializing a first variable K in the substitution box memory;

performing a permutation calculation using the processor as:

i=(j+K+key[i]) mod n, where n is a length of the key;

reading a next value from the substitution box memory, the next value being pointed to by the index i plus one;

setting a value at the substitution box memory location pointed to by the index i with a value at the substitution box memory location pointed to by the index j;

setting a value at the substitution box memory location pointed to by the index j with the variable K;

comparing the values of the indexes i and j; setting the variable K equal to the next value read from the substitution box memory in the reading step;

incrementing the index i; and

repeating the above steps starting with the performing step a predetermined number of times, and after the predetermined number of times setting a bit of a status register to indicate the permutation step is complete.

13. The improved encryption method of claim 12 , wherein in the variable K is set equal to the next value read from the substitution box memory when the values of the indexes i and j are not equal.

14. The improved encryption method of claim 12 , wherein the predetermined number of repeating times depends on the length of the key.

Assignments (17)
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040925 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Feb 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V. F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 052917/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 040928 FRAME 0001. ASSIGNOR(S) HEREBY CONFIRMS THE RELEASE OF SECURITY INTEREST. Recorded Jan 17, 2020
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 052915/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE APPLICATION 11759915 AND REPLACE IT WITH APPLICATION 11759935 PREVIOUSLY RECORDED ON REEL 037486 FRAME 0517. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Dec 10, 2019
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 053547/0421 →
RELEASE OF SECURITY INTEREST Recorded Sep 10, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 050744/0097 →
CORRECTIVE ASSIGNMENT TO CORRECT THE TO CORRECT THE APPLICATION NO. FROM 13,883,290 TO 13,833,290 PREVIOUSLY RECORDED ON REEL 041703 FRAME 0536. ASSIGNOR(S) HEREBY CONFIRMS THE THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS.. Recorded Feb 20, 2019
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: SHENZHEN XINGUODU TECHNOLOGY CO., LTD.
Reel/Frame 048734/0001 →
CORRECTIVE ASSIGNMENT TO CORRECT THE REMOVE PATENTS 8108266 AND 8062324 AND REPLACE THEM WITH 6108266 AND 8060324 PREVIOUSLY RECORDED ON REEL 037518 FRAME 0292. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS. Recorded Feb 1, 2017
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 041703/0536 →
CORRECTIVE ASSIGNMENT TO CORRECT THE NATURE OF CONVEYANCE LISTED CHANGE OF NAME SHOULD BE MERGER AND CHANGE PREVIOUSLY RECORDED AT REEL: 040652 FRAME: 0180. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER AND CHANGE OF NAME. Recorded Jan 12, 2017
From: FREESCALE SEMICONDUCTOR INC.
To: NXP USA, INC.
Reel/Frame 041354/0148 →
CHANGE OF NAME Recorded Nov 8, 2016
From: FREESCALE SEMICONDUCTOR INC.
To: NXP USA, INC.
Reel/Frame 040652/0180 →
RELEASE OF SECURITY INTEREST Recorded Nov 7, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP B.V.
Reel/Frame 040928/0001 →
RELEASE OF SECURITY INTEREST Recorded Sep 21, 2016
From: MORGAN STANLEY SENIOR FUNDING, INC.
To: NXP, B.V., F/K/A FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 040925/0001 →
SUPPLEMENT TO THE SECURITY AGREEMENT Recorded Jun 16, 2016
From: FREESCALE SEMICONDUCTOR, INC.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 039138/0001 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 13, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037518/0292 →
ASSIGNMENT AND ASSUMPTION OF SECURITY INTEREST IN PATENTS Recorded Jan 12, 2016
From: CITIBANK, N.A.
To: MORGAN STANLEY SENIOR FUNDING, INC.
Reel/Frame 037486/0517 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0553 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037354/0225 →
PATENT RELEASE Recorded Dec 21, 2015
From: CITIBANK, N.A., AS COLLATERAL AGENT
To: FREESCALE SEMICONDUCTOR, INC.
Reel/Frame 037356/0143 →
SECURITY AGREEMENT Recorded Nov 6, 2013
From: FREESCALE SEMICONDUCTOR, INC.
To: CITIBANK, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 031591/0266 →