Скачиваний:
31
Добавлен:
02.05.2014
Размер:
3.51 Mб
Скачать

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

7.4.5 Security-Related Descriptors

This section describes the descriptors that are used by USB Security.

7.4.5.1Security Descriptor

The Security Descriptor describes the Security capabilities of the device. The capabilities of the host are never advertised to the device. The host will select the appropriate device mode.

The Security Descriptor functions similarly to a Configuration Descriptor. It serves as a general container for the other descriptors that describe the device security properties in detail. It is done as a container so that new descriptors may be added as new encryption methods are employed or breaches are repaired.

The Security Descriptor and its contained payload is directly addressable using the Get Descriptor request, specifying the descriptor type as SECURITY. This is done so that the Security Descriptor information can be enumerated by a host in plain text without revealing any other descriptor information.

Key descriptors are not returned as part of the Security descriptor. Keys referenced in the Encryption Type descriptors can be read via the Get Key request.

Table 7-33: Security Descriptor

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bLength

1

Number

Number of bytes in this descriptor, including this

 

 

 

 

byte

1

bDescriptorType

1

Constant

Descriptor Type: SECURITY Descriptor

 

 

 

 

 

2

wTotalLength

2

Number

Length of this descriptor and all sub-descriptors

 

 

 

 

returned

4

bNumEncryptionTypes

1

Number

Number of supported encryption types

7.4.5.1.1Encryption Type Descriptor

The Security Descriptor payload can contain multiple Encryption Type descriptors. It should contain one for each mode supported, except for UNSECURE.

The field bEncryptionType selects one of the encryption types defined in Table 7-35. The field bEncryptionValue specifies the value that should be used with Set Encryption in order to enable this type of encryption.

The device indicates that it can use this encryption type for New Connection authentication by supplying a valid Key Index in the bAuthKeyIndex field. This Key Index must reference a valid device key, i.e. Originator=Device, Type=Authentication.

The host enumerates the device’s encryption type descriptors to determine what encryption suites the device supports. It does this by examining the bEncryptionType field of the descriptor to identify the type of security. When the desired descriptor is located, the host uses the bEncryptionValue field from the descriptor as the parameter to the Set Encryption request.

173

Chapter 7

 

Wireless USB Framework

Wireless Universal Serial Bus Specification, Revision 1.0

Table 7-34: Encryption Type Descriptor

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bLength

1

Number

Number of bytes in this descriptor, including this

 

 

 

 

byte

1

bDescriptorType

1

Constant

Descriptor Type: ENCRYPTION TYPE

 

 

 

 

Descriptor

2

bEncryptionType

1

Number

Type of encryption (See Table 7-35)

3

bEncryptionValue

1

Number

Value to use with Set Encryption

4

bAuthKeyIndex

1

Key Index

Non-zero if this encryption type can be used for

 

 

 

 

New connection authentication. In this case the

 

 

 

 

value specifies the Key Index to use for

 

 

 

 

authentication.

Table 7-35: USB Encryption Types

Encryption Types

Value

Description

 

 

 

UNSECURE

0

No encryption enabled

WIRED

1

Virtual encryption provided by the wire

CCM_1

2

AES-128 in CCM mode

 

 

 

RSA_1

3

RSA-3072 encryption with SHA-256 hashing

Reserved

4-255

Reserved for future use

7.4.5.2Key Descriptor

Key Descriptors are used to contain keys during key distribution.

Table 7-36: Key Descriptor

Offset

Field

Size

Value

Description

 

 

 

 

 

0

bLength

1

Number

Number of bytes in this descriptor, including this

 

 

 

 

byte

1

bDescriptorType

1

Constant

Descriptor Type: KEY Descriptor

2

tTKID

3

Number

The TKID value associated with this key, if any.

 

 

 

 

 

5

bReserved

1

Byte

Reserved, must be zero

6

Key data

Var

Bytes

The actual key data

174

Соседние файлы в папке Wireless USB Specification Revision 1.0 May 12, 2005