Documentation
¶
Overview ¶
Package sealkey makes each of the store's keys from its master key: HKDF-SHA256 with no salt and one label per use. Every key comes from the master key alone, never from another key, so whoever holds one of them (the row key, say) can make none of the others.
The package holds no key and reads no file or environment.
Index ¶
Constants ¶
const Len = 32
Len is the size of the master key and of every key made from it.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Label ¶
type Label string
Label names one key made from the master key.
const ( // Rows seals the records and audit entries of store.db (format 2). Rows Label = "komando local store v2" // Runtime seals runtime.json. It is the derivation a format-1 store // sealed its rows with, so it also opens such a store to upgrade it. Runtime Label = "komando local store v1" // Values seals each secret value inside its record. Values Label = "komando vault entries v1" // Tickets signs the tickets of komando's background commands. Tickets Label = "komando spawn tickets v1" // Policy signs the store's safety rows (sealdb's policy MAC). Policy Label = "komando policy v1" )