# US 2004/0062390 A1 · Public key cryptography using matrices

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0062390 A1
- Document ID: US20040062390A1
- Status: Published application
- Kind: A1
- Application number: 10/260,818
- Filed: 2002-09-30
- Published: 2004-04-01
- Earliest claimed: 2002-09-30
- Assignees: Micron Technology, Inc.
- Inventors: Keith R. Slavin
- Web page: https://patentgrep.com/patent/US20040062390A1

## CPC

- H04L 9/302: {involving the integer factorization problem, e.g. RSA or quadratic sieve [QS] schemes}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The invention provides techniques for secure messages transmission using a public key system to exchange secret keys. A first entity creates public and private keys by generating a product n of two large, randomly chosen prime numbers, and then generating random matrices {A, C}, in the group GL(r,Zn) with a chosen matrix rank r such that AC is not equal to CA, and then generating a matrix B=CAC, and finding a matrix G that commutes with C. Matrices A, B, G and the integers n and r are then published as the public key and matrix C is then kept as the private key. A second entity then obtains the public key and calculates a secret matrix D that commutes with G, and further calculates the matrices K=DBD and E=DAD. The message to be sent is then encrypted using matrix K as the secret key and then sent to the first entity with matrix E. First entity then retrieves secret matrix K using K=CEC and then decrypts the received encrypted message using the retrieved secret matrix K.

## Claims

### Claim 1

A method of generating a public key for secure data transmission, comprising:
finding two unique randomly chosen secret prime numbers p and q;
generating a modulus n by using the product of p and q;
generating matrices A and C of rank r with each matrix element in the integers modulo n such that AC is not equal to CA;
generating a matrix B by using the generated matrices A and C such that B≡CAC;
generating a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C;
keeping the generated matrix C as a private key;
forming a public key using the generated matrices A, B, and G, the modulus n, and rank r; and
publishing the formed public key for encrypting messages to be transmitted.

### Claim 2 (depends on 1)

The method of claim 1, wherein the matrices A, B, C, and G are mathematically described as belonging to a general linear group:
GL(r, Zn)
wherein r is the matrix rank, and each matrix element is in the integers modulo n, and where an inverse matrix exists for each matrix in the group, and for which the group is closed under operations of matrix multiplication.

### Claim 3 (depends on 2)

The method of claim 2, wherein the matrix rank r is greater than or equal to 2.

### Claim 4 (depends on 1)

The method of claim 1, wherein generating the matrix G such that G is in the same multiplicatively commutative subgroup as C, comprises:
generating the matrix G using the equation:
G=Ck
wherein k is a non-zero, even integer.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the matrix G such that G is in the same multiplicatively commutative subgroup as C, comprises:
generating the matrix G using a linear combination of power of C up to r−1 using the equation:
6 G = ∑ i = 0 r - 1 ⁢ u i ⁢ C i
wherein each of the r values of u, are randomly generated and secret integers modulo n, and preferably with at least one ui≠for i>0 so that G does not commute with A.

### Claim 6

A method of generating a public key for cryptographic data transmission, comprising:
finding two unique randomly chosen secret prime numbers p and q;
generating a modulus n as a product of the found prime numbers p and q;
generating matrices A and C of a predetermined matrix rank r with each matrix element in the integers modulo n such that AC is not equal to CA;
generating a matrix B by using the generated matrices A and C such that B≡CAC;
generating a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C;
keeping the generated matrix C as a private key;
forming a public key using the generated matrices A, B, and G, and the modulus n; and
publishing the formed public key for encrypting messages to be transmitted.

### Claim 7 (depends on 6)

The method of claim 6, wherein the predetermined matrix rank r of the generated matrices A and C is assumed to be a known value of 2.

### Claim 8 (depends on 6)

The method of claim 6, wherein generating the matrix G such that G is in the same multiplicatively commutative subgroup as C, comprises:
generating the matrix G using the equation:
G=Ck
wherein k is a non-zero, even integer.

### Claim 9 (depends on 6)

The method of claim 6, wherein generating the matrix G such that G is in the same multiplicatively commutative subgroup as C, comprises:
generating the matrix G using a linear combination of power of C up to r−1 using the equation:
7 G = ∑ i = 0 r - 1 ⁢ u i ⁢ C i
wherein each of the r values of ui are randomly generated and secret integers modulo n, and preferably with at least one ui≠0 for i>0 so that G does not commute with A.

### Claim 10

A method of encrypting a message using a published public key, comprising:
obtaining the published public key including matrices A, B, G, and modulo n and matrix rank r for encrypting a message to be transmitted;
generating a first random secret matrix D that is multiplicatively commutative with the obtained matrix G;
generating a second secret matrix K such that K=DBD;
generating a message matrix E such that E=DAD;
obtaining a message to be sent securely;
encrypting the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key; and
transmitting the generated message matrix E along with the encrypted message.

### Claim 11 (depends on 10)

The method of claim 10, wherein encrypting the obtained message using a symmetric-key algorithm further comprises:
partitioning and packing the obtained message into a sequence of unencrypted matrices Ui; and
encrypting each of the unencrypted matrices to form a sequence of corresponding encrypted matrices such that Ui′=KUiK.

### Claim 12 (depends on 10)

The method of claim 10, wherein generating the first random secret matrix D that is multiplicatively commutative with the obtained matrix G, comprises:
generating the first random secret matrix D using the equation:
8 D = ∑ i = 0 r - 1 ⁢ v i ⁢ G i
wherein G0=I, the identity matrix with the same rank as G, and vi form a set of r secret and independently random integers modulo n, and at least one vi≡0 for i>0 so that D does not commute with A.

### Claim 13

A method of encrypting a message using a published public key, comprising:
obtaining the published public key including matrices A, B, G, and modulo n for encrypting a message to be transmitted, wherein each of the obtained matrices have a predetermined matrix rank of r;
generating a first random secret matrix D that is multiplicatively commutative with the obtained matrix G;
generating a second secret matrix K such that K=DBD;
generating a message matrix E such that E=DAD;
obtaining a message to be sent securely;
encrypting the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key; and
transmitting the generated message matrix E along with the encrypted matrices.

### Claim 14 (depends on 13)

The method of claim 13, wherein encrypting the obtained message using a symmetric-key algorithm further comprises:
partitioning and packing the obtained message into a sequence of unencrypted matrices Ui; and
encrypting each of the unencrypted matrices such that Ui′=KUiK.

### Claim 15 (depends on 14)

The method of claim 14, wherein the predetermined matrix rank r of the obtained matrices A and C is assumed to be a known value of 2.

### Claim 16 (depends on 14)

The method of claim 14, further comprising:
receiving the transmitted message matrix E along with the one or more encrypted matrices;
retrieving the second secret matrix K using the received message matrix E and the kept private key matrix C; and
decrypting the one or more encrypted matrices using the retrieved second secret matrix K to obtain the transmitted messages.

### Claim 17

A method of decrypting an encrypted message, comprising:
receiving a transmitted message matrix E along with the encrypted message;
retrieving the second secret matrix K=CEC using the received message matrix E and the kept private key matrix C; and
decrypting the encrypted message using the retrieved second secret matrix K with a symmetric-key decryption algorithm to obtain the transmitted message.

### Claim 18 (depends on 17)

The method of claim 17, wherein receiving the encrypted message, comprises:
obtaining a sequence of encrypted matrices Ui′, wherein the sequence of encrypted matrices Ui′ are obtained using a symmetric-key encryption algorithm.

### Claim 19 (depends on 18)

The method of claim 18, wherein decrypting the encrypted message using the retrieved second secret matrix K with a symmetric-key decryption algorithm, comprises:
obtaining a matrix Q=K−1 as the multiplicative inverse of the retrieved second secret matrix K;
decrypting each of the obtained encrypted matrices Ui′ to obtain corresponding decrypted matrices Ui=Q Ui′Q; and
unpacking and concatenating each of the decrypted matrices Ui to obtain the transmitted message.

### Claim 20

A cryptographic method of the type using matrices to encode and decode messages, comprising:
finding two unique randomly chosen secret prime numbers p and q;
generating a modulus n by multiplying p and q;
generating matrices A and C of rank r with each matrix element in the integers modulo n such that AC is not equal to CA;
generating a matrix B by using the generated matrices A and C such that B=CAC;
generating a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C;
keeping the generated matrix C as a private key;
forming a public key using the generated matrices A, B, and G, and the modulus n, and rank r;
publishing the formed public key for encrypting messages to be transmitted;
obtaining the published public key including matrices A, B, G, and modulo n and matrix rank r for encrypting a message to be transmitted;
generating a first random secret matrix D that is multiplicatively commutative with the obtained matrix G;
generating a second secret matrix K such that K=DBD;
generating a message matrix E such that E=DAD;
obtaining a message to be sent securely;
encrypting the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key;
transmitting the generated message matrix E along with the encrypted matrices;
receiving a transmitted message matrix E along with encrypted message;
retrieving the second secret matrix K using the received message matrix E and the kept private key matrix C; and
decrypting the encrypted message using the retrieved second secret matrix K with a symmetric-key decryption algorithm to decrypt the received encrypted message.

### Claim 21 (depends on 20)

The method of claim 20, wherein the matrices A, B, C, and G are mathematically described as belonging to a general linear group:
GL(r, Zn)
wherein r is the matrix rank, and each matrix element is in the integers modulo n, and where an inverse matrix exists for each matrix in the group, and for which the group is closed under operations of matrix multiplication.

### Claim 22 (depends on 20)

The method of claim 20, wherein generating the matrix G such that G is in the same multiplicatively commutative subgroup as C, comprises:
generating the matrix G using the equation:
G=Ck
wherein k is a non-zero, even integer.

### Claim 23 (depends on 20)

The method of claim 20, wherein generating the first random secret matrix D that is multiplicatively commutative with the obtained matrix G, comprises:
generating the first random secret matrix D using the equation:
9 D = ∑ i = 0 r - 1 ⁢ v i ⁢ G i
wherein G0=I, the identity matrix with the same rank as G, and vi form a set of r secret and independently random integers modulo n, and at least one vi≠0 for i>0 so that D does not commute with A.

### Claim 24

A method for secure message transmission, comprising:
finding two unique randomly chosen secret prime numbers p and q;
generating a modulus n by using the product of p and q;
generating matrices A and C of a predetermined matrix rank r and with each matrix element in the integers modulo n such that AC is not equal to CA;
generating a matrix B by using the generated matrices A and C such that B CAC;
generating a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C;
keeping the generated matrix C as a private key;
forming a public key using the generated matrices A, B, and G, and the modulus n;
publishing the formed public key for encrypting messages to be transmitted;
obtaining the published public key including matrices A, B, G, and modulo n for encrypting a message to be transmitted;
generating a first random secret matrix D that is multiplicatively commutative with the obtained matrix G;
generating a second secret matrix K such that K=DBD;
generating a message matrix E such that E=DAD;
obtaining a message to be sent securely;
encrypting the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key;
transmitting the generated message matrix E along with the encrypted matrices;
receiving a transmitted message matrix E along with the encrypted message;
retrieving the second secret matrix K=CEC using the received message matrix E and the kept private key matrix C; and
decrypting the encrypted message using the retrieved second secret matrix K with a symmetric-key decryption algorithm to decrypt the received encrypted message.

### Claim 25 (depends on 24)

The method of claim 24, wherein the predetermined matrix rank r of the generated matrices A and C is a known integer value of greater than or equal to 2.

### Claim 26 (depends on 24)

The method of claim 24, wherein generating the matrix G such that G is in the same multiplicatively commutative subgroup as C, comprises:
generating the matrix G using a linear combination of power of C up to r−1 using the equation:
10 G = ∑ i = 0 r - 1 ⁢ u i ⁢ C i
wherein each of the r values of ui are randomly generated and secret integers modulo n, and preferably with at least one ui≠0 for i>0 so that G does not commute with A.

### Claim 27

A computer-readable medium having computer-executable instructions for transmitting a message using a public key system, comprising:
finding two unique randomly chosen secret prime numbers p and q;
generating a modulus n by using the product of p and q;
generating matrices A and C of a predetermined matrix rank r with each matrix element in the integers modulo n such that AC is not equal to CA;
generating a matrix B by using the generated matrices A and C such that B CAC;
generating a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C;
keeping the generated matrix C as a private key;
forming a public key using the generated matrices A, B, and G, and the modulus n;
publishing the formed public key for encrypting messages to be transmitted;
obtaining the published public key including matrices A, B, G, and modulo n for encrypting a message to be transmitted;
generating a first random secret matrix D that is multiplicatively commutative with the obtained matrix G;
generating a second secret matrix K such that K=DBD;
generating a message matrix E such that E=DAD;
obtaining a message to be sent securely;
encrypting the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key;
transmitting the generated message matrix E along with the encrypted matrices;
receiving a transmitted message matrix E along with the encrypted message;
retrieving the second secret matrix K=CEC using the received message matrix E and the kept private key matrix C; and
decrypting the encrypted message using the retrieved second secret matrix K with a symmetric-key decryption algorithm to decrypt the received encrypted message.

### Claim 28 (depends on 27)

The computer-readable medium of claim 27, wherein the matrices A, B, C, and G are mathematically described as belonging to a general linear group:
GL(r, Zn)
wherein r is the matrix rank, and each matrix element is in the integers modulo n, and where an inverse matrix exists for each matrix in the group, and for which the group is closed under operations of matrix multiplication.

### Claim 29 (depends on 27)

The computer-readable medium of claim 27, wherein generating the matrix G such that G is in the same multiplicatively commutative subgroup as C, comprises:
generating the matrix G using the equation:
G=Ck
wherein k is a non-zero, even integer.

### Claim 30 (depends on 31)

The computer-readable medium of claim 31, wherein generating the first random secret matrix D that is multiplicatively commutative with the obtained matrix G, comprises:
generating the first random secret matrix D using the equation:
11 D = ∑ i = 0 r - 1 ⁢ v i ⁢ G i
wherein G0=I, the identity matrix with the same rank as G, and vi form a set of r secret and independently random integers modulo n, and at least one vi≠0 for i>0 so that D does not commute with A.

### Claim 31

A computer system for secure message transmission, comprising:
a processor;
an output device; and
a storage device to store instructions that are executable by the processor to perform secure message transmission, comprising:
finding two unique randomly chosen secret prime numbers p and q;
generating a modulus n by using the product of p and q;
generating matrices A and C of a predetermined matrix rank r with each matrix element in the integers modulo n such that AC is not equal to CA;
generating a matrix B by using the generated matrices A and C such that B=CAC;
generating a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C;
keeping the generated matrix C as a private key;
forming a public key using the generated matrices A, B, and G, and the modulus n;
publishing the formed public key for encrypting messages to be transmitted;
obtaining the published public key including matrices A, B, G, and modulo n for encrypting a message to be transmitted;
generating a first random secret matrix D that is multiplicatively commutative with the obtained matrix G;
generating a second secret matrix K such that K=DBD;
generating a message matrix E such that E=DAD;
obtaining a message to be sent securely;
encrypting the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key;
transmitting the generated message matrix E along with the encrypted matrices;
receiving a transmitted message matrix E along with the encrypted message;
retrieving the second secret matrix K=CEC using the received message matrix E and the kept private key matrix C; and
decrypting the encrypted message using the retrieved second secret matrix K with a symmetric-key decryption algorithm to decrypt the received encrypted message.

### Claim 32

A cryptographic communication system, comprising:
a receiver computing platform comprises:
a processor to generate two matrices A and C of rank r with each matrix element in the integers modulo n such that AC does not equal to CA, wherein modulo n is obtained by using two unique randomly chosen secret prime numbers p and q, wherein r is a matrix rank of the two matrices A and C, wherein the processor generates a matrix B by using the generated matrices A and C such that B≡CAC, wherein the processor further generates a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C, and wherein the processor publishes the generated matrices A, B, G, and modulo n and matrix rank r as the public key, and retains the generated matrix C as the private key;
a sender coupled to the receiver computing platform through a network comprises:
an encoder to obtain the published matrices A, B, G, and modulo n and matrix rank r for encrypting a message to be transmitted, wherein the encoder generates a first random secret matrix D that is multiplicatively commutative with the obtained matrix G, wherein the encoder generates a second secret matrix K=DBD using the generated matrices B and D, wherein the encoder generates a message matrix E=DAD using the generated matrices A and D, wherein the encoder obtains a message to be sent securely and encrypts the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key, and wherein the encoder transmits the generated message matrix E along with the encrypted message; and
a receiver coupled to the sender through the network and further coupled to the receiver computing platform comprises:
a decoder to receive the transmitted message matrix E and the encrypted message, wherein the decoder retrieves the second secret matrix K=CEC using the received message matrix E and the kept matrix C as the private key, and wherein the decoder decrypts the encrypted message uses the retrieved second secret matrix K with a symmetric-key decryption algorithm to obtain the transmitted message.

### Claim 33 (depends on 32)

The system of claim 32, wherein the matrices A, B, C, and G are mathematically described as belonging to a general linear group:
GL(r, Zn)
wherein r is the matrix rank, and each matrix element is in the integers modulo n, and where an inverse matrix exists for each matrix in the group, and for which the group is closed under operations of matrix multiplication.

### Claim 34 (depends on 32)

The system of claim 32, wherein the matrix rank r is greater than or equal to 2.

### Claim 35 (depends on 32)

The system of claim 32, wherein the processor generates the matrix G using the equation: G=Ck wherein k is a non-zero, even integer.

### Claim 36

A system for secure messages transmission, comprising:
a first entity computing platform comprises:
a processor to generate two matrices A and C of a predetermined matrix rank r and with each matrix element in the integers modulo n such that AC does not equal to CA, wherein modulo n is obtained by using two unique randomly chosen secret prime numbers p and q, wherein r is a matrix rank of the two matrices A and C, wherein the processor generates a matrix B by using the generated matrices A and C such that B=CAC, wherein the processor further generates a matrix G such that the generated matrix G is in the same multiplicatively commutative subgroup as C, and wherein the processor publishes the generated matrices A, B, G, and modulo n as the public key, and retains the generated matrix C as the private key;
a second entity desiring to send a secure message is coupled to the first entity computing platform through a network comprises:
an encoder to obtain the published matrices A, B, G, and modulo n for encrypting a message to be transmitted, wherein the encoder generates a first random secret matrix D that is multiplicatively commutative with the obtained matrix G, wherein the encoder generates a second secret matrix K using the generated matrices B and D, wherein the encoder generates a message matrix E=DAD using the generated matrices A and D, wherein the encoder obtains a message to be sent securely and encrypts the obtained message using a symmetric-key algorithm by using the generated second secret matrix K as the key, and wherein the encoder transmits the generated message matrix E along with the encrypted message; and
a first entity desiring to receive the encrypted message is coupled to the second entity through the network and further coupled to the first entity computing platform comprises:
a decoder to receive the transmitted message matrix E and the encrypted message, wherein the decoder retrieves the second secret matrix K=CEC using the received message matrix E and the kept matrix C as the private key, and wherein the decoder decrypts the encrypted message using the retrieved second secret matrix K with a symmetric-key decryption algorithm to obtain the transmitted message.

### Claim 37 (depends on 36)

The system of claim 36, wherein the network comprises a network selected from the group consisting of LAN and WAN.

### Claim 38 (depends on 36)

The system of claim 36, wherein the predetermined matrix rank r of the generated matrices A and C is assumed to be a known integer value greater than or equal to 2.

### Claim 39 (depends on 36)

The system of claim 36, wherein the matrices A, B, C, and G are mathematically described as belonging to a general linear group: GL(r, Zn) wherein r is the matrix rank, and each matrix element is in the integers modulo n, and where an inverse matrix exists for each matrix in the group, and for which the group is closed under operations of matrix multiplication.

### Claim 40 (depends on 36)

The system of claim 36, wherein the first entity computing platform generates the matrix G using the equation:
12 G = ∑ i = 0 r - 1 ⁢ u i ⁢ C i
wherein each of the r values of u, are randomly generated and secret integers modulo n, and preferably with at least one ui≠0 for i>0 so that G does not commute with A.

### Claim 41 (depends on 36)

The system of claim 36, wherein the second entity generates the first random secret matrix D using the equation:
13 D = ∑ i = 0 r - 1 ⁢ v i ⁢ G i
wherein G0=I, the identity matrix with the same rank as G, and v, form a set of r secret and independently random integers modulo n, and at least one vi≠0 for i>0 so that D does not commute with A.
