Documentation
¶
Overview ¶
Package securebody encrypts sensitive Fort record bodies before they enter the cloud ledger. Routing metadata remains separate and plaintext.
Index ¶
Constants ¶
View Source
const ( EnvelopeVersion = 1 MaximumPlaintextChunkBytes = 2 << 20 // AEADOverheadBytes is the fixed authentication-tag overhead of the // AES-256-GCM envelope used by Fort. It lets the server derive artifact // manifest lengths without disclosing a data-encryption key to a worker. AEADOverheadBytes = 16 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct {
Version int `json:"version"`
KeyID string `json:"key_id"`
Nonce string `json:"nonce"`
Ciphertext string `json:"ciphertext"`
}
Envelope is the versioned value stored in the ledger. The referenced key is held outside Supabase.
Click to show internal directories.
Click to hide internal directories.