Skip to main content

seal_cipher

Function seal_cipher 

Source
fn seal_cipher(
    view: &CipherView,
    ctx: &mut KeyStoreContext<'_, KeySlotIds>,
    cipher_key: SymmetricKeySlotId,
) -> Result<String, BlobEncryptionError>
Expand description

Seals a CipherView into an opaque blob string under the given cipher_key slot. The caller is responsible for loading the key slot before calling (e.g. via CipherView::load_cipher_key_slot); this avoids allocating a duplicate slot.