Skip to main content

Function: parseKekId()

parseKekId(kekId): KekId

Defined in: packages/key-wrap/src/kek-id.ts:75

Takes a key id apart, without touching any custody.

Parameters​

kekId​

string

soft:v<version>:<hex fingerprint> or hsm:v1:<token label>:<32 hex digits>.

Returns​

KekId

The parts.

Throws​

invalid_key_id for anything else.