Skip to main content

seal_blob_content

Function seal_blob_content 

Source
fn seal_blob_content(
    blob: CipherBlobV1,
    cipher_key: SymmetricKeySlotId,
    ctx: &mut KeyStoreContext<'_, KeySlotIds>,
) -> Result<String, BlobEncryptionError>
Expand description

Seals a constructed CipherBlobLatest under cipher_key, returning the opaque string form. Shared by all CipherBlobLatest producers so they don’t each re-implement the versioned-enum wrap + COSE seal + base64 chain.