Skip to main content

seal_blob

Function seal_blob 

Source
pub fn seal_blob(blob_key: &[u8; 32], plaintext: &[u8]) -> Vec<u8> ⓘ
Expand description

Seal plaintext (canonical CBOR) into the metadata-blob wire format under blob_key, tagging it with the current crypto_suite_id. A fresh nonce is drawn per call.

This is the nonce-agnostic AEAD primitive (also used for the KEM-DEM drop wrap and the share-scope wrap, whose keys are not blob-id-derived). Metadata-blob writers that fold the nonce into a derived key go through super::rekey::seal_metadata_blob.