LIST OBJECTS

List Objects in device.

Description

Get a filtered list of Objects from the device.

Shell Example

Get a list of all Asymmetric Keys for Session 0:

yubihsm> list objects 0 0 asymmetric-key
Found 4 object(s)
id: 0x3479, type: asymmetric-key, sequence: 0
id: 0x7df6, type: asymmetric-key, sequence: 0
id: 0x9602, type: asymmetric-key, sequence: 0
id: 0xd6cd, type: asymmetric-key, sequence: 0

Protocol Details

Command

Tc = 0x48

Lc = LF

Vc = F

F := List of Tag-Value pairs describing a filter to apply. Possible tags to use for filtering are described in the table below.

Name Identifier Length

ID

0x01

2 bytes

TYPE

0x02

1 byte

DOMAINS

0x03

2 bytes

CAPABILITIES

0x04

8 bytes

ALGORITHM

0x05

1 byte

LABEL

0x06

40 bytes

Response

Tr = 0xc8

Lr = 4 * N

Vr = R1 || R2 || … || RN

Ri := Object ID (2 bytes), Type (1 byte) and Sequence (1 byte).