Skip to main content

Module encryption_layer

Module encryption_layer 

Source
Expand description

Storage Encryption Layer

Provides a simple XOR-based encryption layer for block storage. This is for demonstration/educational purposes — not production cryptography.

Supports two cipher modes:

  • Xor: Repeating key XOR
  • XorWithNonce: XOR with a key derived from nonce + base key

Structs§

EncryptedBlock
An encrypted block with metadata.
EncryptionLayerConfig
Configuration for the encryption layer.
EncryptionLayerStats
Statistics for the encryption layer.
StorageEncryptionLayer
Storage encryption layer providing XOR-based encryption for blocks.

Enums§

CipherMode
Cipher mode for the encryption layer.