GET OBJECT INFO Command

Get Object metadata.

Description

Fetch all metadata about an Object

Shell Example

Get Object info for Asymmetric Key with ID 0x1e15:

yubihsm> get objectinfo 0 0x1e15 asymmetric-key
id: 0x1e15, type: asymmetric-key, algorithm: rsa2048, label: "rsakey",
  length: 896, domains: 1, sequence: 0, origin: imported, capabilities:
  sign-pkcs

Protocol Details

Command

Tc = 0x4e
Lc = 2 + 1
Vc = I || T

Parameters:

I := Object ID (2 bytes)

T := Type (1 byte)

Response

Tr = 0xce
Lr = 8 + 2 + 2 + 2 + 1 + 1 + 1 + 1 + 40 + 8
Vr = C || I || N || D || T || A || S || O || L || DC

Parameters:

C := Capabilities (8 bytes)

I := Object ID (2 bytes)

N := Object Length (2 bytes)

D := Domains (2 bytes)

T := Type (1 byte)

A := Algorithm (1 byte)

S := Sequence (1 byte)

O := Origin (1 byte)

L := Label (40 bytes)

DC := Delegated Capabilities (8 bytes)