GENERATE ASYMMETRIC KEY

Generate an Asymmetric Key.

Description

Generate an Asymmetric Key in the device.

Shell Example

Generate a new key using secp256r1 in the device:

yubihsm> generate asymmetric 0 0 eckey 1 sign-ecdsa ecp256
Generated Asymmetric key 0x2846

Protocol Details

Command

Tc = 0x46

Lc = 2 + 40 + 2 + 4 + 1

Vc = I || L || D || C || A

Generate an Asymmetric key-pair with a given ID. Each parameter has a fixed length and the order is compulsory.

I := Object ID of the Asymmetric Key (2 bytes)

L := Label (40 bytes)

D := Domains (2 bytes)

C := Capabilities (8 bytes)

A := Algorithm (1 byte)

Response

Tr = 0xc6

Lr = 2

Vr = I

I := Object ID of the created Asymmetric Key (2 bytes)