Skip to main content

Module keychain

Module keychain 

Source
Expand description

Key store keyed by kid, scheme dispatch, and keyset topological decrypt.

Structsยง

Keychain ๐Ÿ”’
A store of AES and RSA keys keyed by their kid.

Constantsยง

AES_SCHEME ๐Ÿ”’
MASTER_KEY_ID ๐Ÿ”’
RSA_SCHEMES ๐Ÿ”’

Functionsยง

decryption_order ๐Ÿ”’
Orders keysets so each one comes after the key that encrypts it, starting from root_id. Keysets the root cannot reach are left out.
derive_master_key ๐Ÿ”’
Derives the key of the newest master keyset, the only one carrying KDF parameters.
encrypted_by ๐Ÿ”’
The key id that encrypts a keyset: its explicit encryptedBy, or the symmetric keyโ€™s kid when that is empty.