Skip to main content

Crate tc_seed

Crate tc_seed 

Source
Expand description

SEED single-block encryption with a 128-bit key and 128-bit blocks.

SeedEngine uses the same working key for encryption and decryption, traversing its sixteen Feistel rounds in opposite orders. Variable time: key setup and block processing index SS0-SS3 S-box tables with secret data. Use only where cache-timing leakage is outside the threat model; this crate provides no constant-time alternative.

The stored working key is wiped on drop. This does not wipe caller buffers or guarantee erasure of every register or stack copy. This allocator-free crate provides no mode, padding or authentication.

Structs§

SeedEngine
SEED with a 16-byte key and a 16-byte block.

Constants§

ALGO_NAME
Algorithm name written by the engine’s display implementation.
BLOCK_BYTES
SEED block length in bytes (128 bits).
KEY_BYTES
SEED key length in bytes (128 bits).