Skip to main content

Module v2_upgrade_token

Module v2_upgrade_token 

Source
Expand description

V2 Upgrade Token is created during V1→V2 key rotation and holds both user keys wrapped by each other. This allows V1 devices to retrieve the V2 key (to complete the upgrade), and V2 devices to retrieve the V1 key (e.g. to rotate local device unlock methods still encrypted with V1).

On unwrapping, both directions are validated - an attacker can’t modify one wrapped key without breaking the other direction’s validation.

Structs§

V2UpgradeToken
Holds both V1 and V2 user keys, each wrapped by the other.

Enums§

V2UpgradeTokenError
Errors that can occur when working with V2UpgradeToken

Constants§

UNIFFI_META_CONST_BITWARDEN_CORE_RECORD_V2UPGRADETOKEN 🔒