# US 2004/0001595 A1 · Method and system for secure storage, transmission and control of cryptographic keys

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

- Number: US 2004/0001595 A1
- Document ID: US20040001595A1
- Status: Published application
- Kind: A1
- Application number: 10/187,404
- Filed: 2002-06-28
- Published: 2004-01-01
- Earliest claimed: 2002-06-28
- Assignees: Compaq Information Technologies Group, L.P.
- Inventors: Dale W. Hopkins; Susan Langford; Larry Hines; Ching-Hsuan Chen
- Web page: https://patentgrep.com/patent/US20040001595A1

## CPC

- H04L 9/088: {Usage controlling of secret information, e.g. techniques for restricting cryptographic keys to pre-authorized uses, different access levels, validity of crypto-period, different key- or password length, or different strong and weak cryptographic algorithms (network architectures or network communication protocols for using time-dependent keys in a packet data network H04L63/068)}
- H04L 9/083: {involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP]}
- H04L 2209/20: Manipulating the length of blocks of bits, e.g. padding or block truncation
- H04L 2209/56: Financial cryptography, e.g. electronic payment or e-cash
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system and method are described supporting secure implementations of 3DES and other strong cryptographic algorithms. A secure key block having control, key, and hash fields safely stores or transmits keys in insecure or hostile environments. The control field provides attribute information such as the manner of using a key, the algorithm to be implemented, the mode of use, and the exportability of the key. A hash algorithm is applied across the key and control for generating a hash field that cryptographically ties the control and key fields together. Improved security is provided because tampering with any portion of the key block results in an invalid key block. The work factor associated with any manner of attack is sufficient to maintain a high level of security consistent with the large keys and strong cryptographic algorithms supported.

## Claims

### Claim 1

A method for validating a received secure key block, comprising:
decrypting an encrypted key field using a first key to reveal at least one clear key, wherein the encrypted key field is contained within the received secure key block;
applying a hash algorithm across a control field, the at least one clear key, and a first variant of the first key to create a computed hash field, wherein the control field is contained within the received secure key block; and
validating the secure key block if a received hash field is equal to the computed hash field, wherein the received hash field is contained within the received secure key block.

### Claim 2 (depends on 1)

The method of claim 1, wherein the hash algorithm is further applied across the encrypted key field.

### Claim 3 (depends on 1)

The method of claim 1, wherein decrypting the encrypted key field includes the steps of obtaining the first key,
generating a second variant of the first key through application of a variant offset value, and
using the second variant of the first key as a decryption key to decrypt the encrypted key field.

### Claim 4 (depends on 1)

The method of claim 1, wherein decrypting the encrypted key field uses a triple DES algorithm.

### Claim 5 (depends on 1)

The method of claim 1, wherein the decryption algorithm is an AES algorithm.

### Claim 6 (depends on 1)

The method of claim 1, wherein the encrypted key field includes an encrypted form of the at least one clear key.

### Claim 7 (depends on 6)

The method of claim 6, wherein the encrypted key field includes an encrypted pad.

### Claim 8 (depends on 1)

The method of claim 1, wherein the control field includes attributes of the at least one clear key contained within the encrypted key field.

### Claim 9 (depends on 1)

The method of claim 1, wherein tampering with the secure key block renders the received hash field unequal to the computed hash field.

### Claim 10 (depends on 1)

The method of claim 1, wherein use of the at least one clear keys in a manner inconsistent with attributes identified in the control field is disallowed.

### Claim 11

A cryptographic system, comprising:
a host system communicatively coupled to at least one source;
a security module within a security boundary that is communicatively coupled to the host system, wherein the security module is configured to receive a secure key block, the secure key block containing
an encrypted key field containing an encrypted form of at least one clear key,
a control field identifying attributes of the at least one clear key, and
a hash field that ties the control field and the at least one clear key,
wherein the security module is configured to
decrypt the encrypted key field to reveal the at least one clear key using a first key,
apply a hash algorithm across the control field, the at least one clear key, and a first variant of the first key to create a computed hash field, and
validate the secure key block if the received hash field is equal to the computed hash field.

### Claim 12 (depends on 11)

The cryptographic system of claim 11, wherein the encrypted key field is decrypted using a second variant of the first key.

### Claim 13 (depends on 11)

The cryptographic system of claim 11, wherein the encrypted key field is decrypted using a triple DES algorithm.

### Claim 14 (depends on 11)

The cryptographic system of claim 11, wherein the encrypted key field is decrypted using an AES algorithm.

### Claim 15 (depends on 11)

The cryptographic system of claim 11, wherein the encrypted key field further includes an encrypted pad.

### Claim 16 (depends on 11)

The cryptographic system of claim 11, wherein the control field includes attributes of the at least one clear key.

### Claim 17

A cryptographic system, comprising:
means for receiving a secure key block that includes a control field with associated control attributes, an encrypted key field and a hash field;
means for decrypting the encrypted key field using a first key to reveal at least one clear key;
means for applying a hash algorithm across a control field, the at least one clear key, and a first variant of the first key to create a computed hash field, wherein the control field is contained within the received secure key block; and
means for validating the secure key block if the received hash field is equal to the computed hash field.

### Claim 18 (depends on 17)

The cryptographic system of claim 17, wherein the means for decrypting the encrypted key field includes
means for obtaining the first key,
means for generating a second variant of the first key through application of a variant offset value, and
means for using the second variant of the first key as a decryption key to decrypt the encrypted key field.

### Claim 19 (depends on 17)

The cryptographic system of claim 17, further comprising means for applying the hash algorithm across the encrypted key field.

### Claim 20 (depends on 17)

The cryptographic system of claim 17, further comprising means for receiving the secure key block from a storage medium.

### Claim 21

A method for encapsulating and controlling at least one clear key in a secure key block, comprising:
generating an encrypted key field by applying an encryption algorithm to at least one clear key;
appending a control field to the encrypted key field, wherein the control field contains attributes of the at least one clear key;
applying a hash algorithm to the across the control field, the at least one clear key, and a first variant of a first key to create a hash field that ties the control field to the at least one clear key; and
appending the hash field to the control field and the encrypted key field.

### Claim 22 (depends on 21)

The method of claim 21, wherein generating the encrypted key field includes the steps of obtaining the first key,
generating a second variant of the first key through application of a variant offset value, and
using the second variant of the first key as an encryption key for encrypting the key.

### Claim 23 (depends on 21)

The method of claim 21, wherein the encryption algorithm is a triple DES algorithm.

### Claim 24 (depends on 21)

The method of claim 21, wherein the encryption algorithm is an AES algorithm.

### Claim 25 (depends on 21)

The method of claim 21, wherein the encrypted key field includes an encrypted form of the at least one clear key.

### Claim 26 (depends on 25)

The method of claim 25, wherein the encrypted key field includes an encrypted pad.

### Claim 27 (depends on 21)

The method of claim 21, wherein the control field includes attributes of the at least one clear key.

### Claim 28 (depends on 21)

The method of claim 21, wherein tampering with the secure key block renders the received hash field unequal to the computed hash field.

### Claim 29

A cryptographic system, comprising:
a host system communicatively coupled to at least one source;
a security module within a security boundary that is communicatively coupled to the host system, wherein the security module is configured to provide a key in a secure key block when the key is passed outside of the security boundary, the secure key block containing
an encrypted key field containing an encrypted from at least one clear key,
a control field identifying attributes of the at least one clear key, and
a hash field that ties the control field, the at least one clear key, and a first variant of a first key; and
an unsecure storage medium configured to store the at least one secure key block.

### Claim 30 (depends on 29)

The cryptographic system of claim 29, wherein the encrypted key field is created through encryption using a second variant of the first key.

### Claim 31 (depends on 29)

The cryptographic system of claim 29, wherein the encrypted key field is created using a triple DES algorithm.

### Claim 32 (depends on 29)

The cryptographic system of claim 29, wherein the encrypted key field is created using an AES algorithm.

### Claim 33 (depends on 29)

The cryptographic system of claim 29, wherein the encrypted key field further includes an encrypted pad.

### Claim 34 (depends on 29)

The cryptographic system of claim 29, wherein tampering with the secure key block renders the received hash field unequal to the computed hash field.

### Claim 35

A cryptographic system, comprising:
means for generating an encrypted key field by applying an encryption algorithm to at least one clear key;
means for appending a control field to the encrypted key field, wherein the control field contains attributes of the at least one clear key; and
means for applying a hash algorithm to the across the control field, the at least one clear key, and a first variant of a first key to create a hash field that ties the control field to the at least one clear key; and
means for appending the hash field to the control field and the encrypted key field.

### Claim 36 (depends on 35)

The cryptographic system of claim 35, wherein the means for generating the encrypted key field includes
means for obtaining the first key,
means for generating a second variant of the first key through application of a variant offset value, and
means for using the second variant of the first key as an encryption key for encrypting the key.

### Claim 37 (depends on 35)

The cryptographic system of claim 35, further comprising means for applying the hash algorithm across the encrypted key field.

### Claim 38 (depends on 35)

The cryptographic system of claim 35, further comprising means for receiving the secure key block from a storage medium.

### Claim 39

A method for validating a received secure key block, comprising:
decrypting an encrypted field to reveal at least one clear key and a received hash field, wherein the encrypted key field and the received hash field are contained within the received secure key block;
applying a hash algorithm across a control field and the at least one clear key to create a computed hash field, wherein the control field is contained within the received secure key block; and
validating the secure key block if the received hash field is equal to the computed hash field.

### Claim 40 (depends on 39)

The method of claim 39, wherein decrypting the encrypted field includes the steps of
obtaining a first key,
generating a variant of the first key through application of a variant offset value, and
using the variant of the first key as a decryption key to decrypt the encrypted field.

### Claim 41 (depends on 39)

The method of claim 39, wherein decrypting the encrypted field uses a triple DES algorithm.

### Claim 42 (depends on 39)

The method of claim 39, wherein decrypting the encrypted field uses an AES algorithm.

### Claim 43 (depends on 39)

The method of claim 39, wherein the encrypted field includes an encrypted form of the at least one clear key.

### Claim 44 (depends on 43)

The method of claim 43, wherein the encrypted field includes an encrypted pad.

### Claim 45 (depends on 39)

The method of claim 39, wherein the control field includes attributes of the at least one clear key contained within the encrypted field.

### Claim 46 (depends on 39)

The method of claim 39, wherein tampering with the secure key block renders the received hash field unequal to the computed hash field.

### Claim 47 (depends on 39)

The method of claim 39, wherein use of the at least one clear keys in a manner inconsistent with attributes identified in the control field is disallowed.

### Claim 48

A cryptographic system, comprising:
a host system communicatively coupled to at least one source;
a security module within a security boundary that is communicatively coupled to the host system, wherein the security module is configured to receive a secure key block, the secure key block containing
a control field identifying attributes of at least one clear key, and
an encrypted field containing an encrypted form of at least one clear key and an encrypted form of a received hash field that ties the control field and the at least one clear key,
wherein the security module is configured to
decrypt the encrypted field to reveal the at least one clear key and the received hash field,
apply a hash algorithm across the control field and the at least one clear key to create a computed hash field, and
validate the secure key block if the received hash field is equal to the computed hash field.

### Claim 49 (depends on 48)

The cryptographic system of claim 48, wherein the encrypted field is decrypted using a variant of a first key.

### Claim 50 (depends on 48)

The cryptographic system of claim 48, wherein the encrypted field is decrypted using a triple DES algorithm.

### Claim 51 (depends on 48)

The cryptographic system of claim 48, wherein the encrypted field is decrypted using an AES algorithm.

### Claim 52 (depends on 48)

The cryptographic system of claim 48, wherein the encrypted field further includes an encrypted pad.

### Claim 53 (depends on 48)

The cryptographic system of claim 48, wherein the control field includes attributes of the at least one clear key.

### Claim 54

A cryptographic system, comprising:
means for receiving a secure key block that includes a control field with associated control attributes, and an encrypted field;
means for decrypting the encrypted field to reveal at least one clear key and a received hash field;
means for applying a hash algorithm across the control field and the at least one clear key to create a computed hash field;
means for validating the secure key block if the received hash field is equal to the computed hash field.

### Claim 55 (depends on 54)

The cryptographic system of claim 54, wherein the means for decrypting the encrypted field includes
means for obtaining a first key,
means for generating a variant of the first key through application of a variant offset value, and
means for using the variant of the first key as a decryption key to decrypt the encrypted field.

### Claim 56 (depends on 54)

The cryptographic system of claim 54, further comprising means for receiving the secure key block from a storage medium.

### Claim 57

A method for encapsulating and controlling at least one clear key in a secure key block, comprising:
applying a hash algorithm to across the control field and the at least one clear key to create a hash field that ties the control field to the at least one clear key;
generating an encrypted field by applying an encryption algorithm to the at least one clear key and the hash field; and
appending a control field to the encrypted field, wherein the control field contains attributes of the at least one clear key.

### Claim 58 (depends on 57)

The method of claim 57, wherein generating the encrypted field includes the steps of obtaining a first key,
generating a variant of the first key through application of a variant offset value, and
using the variant of the first key as an encryption key for generating the encrypted field.

### Claim 59 (depends on 57)

The method of claim 57, wherein the encryption algorithm is a triple DES algorithm.

### Claim 60 (depends on 57)

The method of claim 57, wherein the encryption algorithm is an AES algorithm.

### Claim 61 (depends on 57)

The method of claim 57, wherein the encrypted field includes an encrypted pad.

### Claim 62 (depends on 57)

The method of claim 57, wherein the control field includes attributes of the at least one clear key.

### Claim 63 (depends on 57)

The method of claim 57, wherein tampering with the secure key block renders the received hash field unequal to the computed hash field.

### Claim 64

A cryptographic system, comprising:
a host system communicatively coupled to at least one source;
a security module within a security boundary that is communicatively coupled to the host system, wherein the security module is configured to provide a key in a secure key block when the key is passed outside of the security boundary, the secure key block containing
a control field identifying attributes of at least one clear key, and
an encrypted field containing an encrypted form of at least one clear key and an encrypted form of a received hash field, wherein the hash field ties the control field and the at least one clear key,
an unsecure storage medium configured to store the at least one secure key block.

### Claim 65 (depends on 64)

The cryptographic system of claim 64, wherein the encrypted field is decrypted using a variant of a first key.

### Claim 66 (depends on 64)

The cryptographic system of claim 64, wherein the encrypted field is created through application of a triple DES algorithm.

### Claim 67 (depends on 64)

The cryptographic system of claim 64, wherein the encrypted field is decrypted using an AES algorithm.

### Claim 68 (depends on 64)

The cryptographic system of claim 64, wherein the encrypted field further includes an encrypted pad.

### Claim 69 (depends on 64)

The cryptographic system of claim 64, wherein the control field includes attributes of the at least one clear key.

### Claim 70 (depends on 64)

The cryptographic system of claim 64, wherein tampering with the secure key block renders the received hash field unequal to the computed hash field.

### Claim 71

A cryptographic system, comprising:
means for applying a hash algorithm to a concatenated control field and at least one clear key to create a hash field that ties the control field to the at least one clear key;
means for generating an encrypted field by applying an encryption algorithm to the at least one clear key and the hash field; and
means for appending a control field to the encrypted field, wherein the control field contains attributes of the at least one clear key.

### Claim 72 (depends on 71)

The cryptographic system of claim 71, wherein the means for generating the encrypted field includes
means for obtaining a first key,
means for generating a variant of the first key through application of a variant offset value, and
means for using the variant of the first key as an encryption key for generating the encrypted field.

### Claim 73 (depends on 71)

The cryptographic system of claim 71, further comprising means for receiving the secure key block from a storage medium.
