Skip to main content

seal_prederived

Function seal_prederived 

Source
pub fn seal_prederived(
    base_key: &[u8; 32],
    suite: SuiteId,
    context: &SealContext,
    plaintext: &[u8],
    external_aad: &[u8],
    nonce_ledger: &mut OutboundNonceLedger,
) -> Result<Vec<u8>>
Expand description

Seal with a pre-derived base key and explicit lifecycle-owned nonce state.

The base key must be independently bound to the same pinned suite. This is the narrow seam intended for #554/#555 after their handshake/epoch commit.