Repository navigation
WarpCrypto v2.2.0
Hardware AES on ARM for Rust users, a new Ctr256 stream type, and faster short calls. The Python API is unchanged.
Rust
- Hardware AES on ARM by default. Moved to
aes0.9, which picks the ARMv8 AES instructions at runtime. The--cfg aes_armv8build flag is no longer needed (or used). - New
Ctr256: AES-256-CTR with the key expanded once, for a stream processed piece by piece. Gives the same bytes as callingctr256on each piece.Ctr256::new(&key, &iv)Ctr256::with_state(&key, &iv, state)continues a stream thatctr256left mid-blockapply_keystream(&mut data),iv(),state()
- Minimum Rust version stays 1.85.
Security
- AES key schedules are overwritten with zeros when they are dropped. This replaces
aes's byte-by-bytezeroizewith a word-at-a-time wipe, and is checked with Miri in CI.
Python
- No API changes.
- Faster on short inputs: each call now builds only the encryption or decryption key schedule it needs.
- On ARM,
ctr256with large buffers (128 KiB and up) is about 7% slower than v2.1.0. This comes fromaes0.9's ARM backend.
Thanks
Full Changelog: v2.1.0...v2.2.0