Skip to main content

encrypt_import

Function encrypt_import 

Source
pub fn encrypt_import(
    ctx: &mut KeyStoreContext<'_, KeySlotIds>,
    cipher: ImportingCipher,
    organization_id: Option<OrganizationId>,
) -> Result<Cipher, ExportError>
Expand description

Encrypts a parsed/imported cipher for the user’s vault, or for an organization when organization_id is set. Shared by the importers (import_kdbx) and by CXF import; lives here alongside the ImportingCipher interchange model and the From<ImportingCipher> for CipherView bridge.