Expand description
Sans-IO ClearKey ISO Common Encryption (sample keystream).
Callers own keys and container parsing. This crate only applies AES under ISO/IEC 23001-7 schemes to byte slices. Policy: workspace ADR-0011.
Stage 1: Scheme::Cenc (AES-128-CTR) with optional subsample ranges.
Structs§
- Pattern
- Crypt/skip block pattern (
tenc/ pattern encryption). - Subsample
- One subsample: clear bytes then protected bytes (ISO CENC subsample).
Enums§
Functions§
- decrypt_
cenc - Decrypt a sample in place under
Scheme::Cenc. - encrypt_
cenc - Encrypt a sample in place under
Scheme::Cenc(same CTR keystream as decrypt). - iv_
from_ 8 - Build a 16-byte CTR IV from an 8-byte per-sample IV (high 8 = IV, low 8 = 0).
- iv_
from_ constant - Build a 16-byte CTR IV from a constant IV of size 8 or 16.