Skip to main content

Crate bitwarden_organization_crypto

Crate bitwarden_organization_crypto 

Source
Expand description

§Bitwarden Organization Crypto Crate

The bitwarden-organization-crypto crate surfaces APIs for safely manipulating organization-specific cryptography. Similar to the bitwarden-crypto crate, this is meant to be a basic dependency used by organization-related feature crates.

This is not a client crate and shall not depend on bitwarden-core as a result.

Modules§

invite_key_bundle 🔒
wasm
The wasm module holds serialization/encoding needed wasm bindings for any types related to InviteKeyEnvelope. This means base64url for the InviteKeyData type, and base64 for the InviteKey type. In order to minimize complexity, the actual B64/B64Url encoding/decoding are limited to the From<String> and FromStr implementations. All other serialization goes through String to simplify maintenance.

Structs§

InviteKeyBundle
A struct for holding the invitation key and the invitation key sealed by the organization key
InviteKeyData
Struct for holding the Invite Key’s raw byte data. Supports WASM bindings, automatically using base64Url encoding for both wasm-bindgen and tsify.
InviteKeyEnvelope
Struct for holding the wrapped invite key data. Currently supports encstring but the inner type must remain private as it may be extended in the future.

Enums§

InviteKeyBundleError
Errors that can occur when creating an invite key envelope