Expand description
SIMD-accelerated cryptographic operations
This module provides SIMD (Single Instruction Multiple Data) optimized implementations of common cryptographic operations for improved performance on modern CPUs.
§Features
- Parallel XOR: SIMD-accelerated XOR operations for stream ciphers and key mixing
- Constant-time equality: SIMD-accelerated constant-time comparisons
- Memory operations: Fast memory copying and zeroization
- Parallel hashing: Multi-threaded hash computation for large data
§Platform Support
This module automatically detects CPU features and uses the best available SIMD instructions (AVX2, SSE2, NEON) or falls back to scalar operations.
Enums§
- Simd
Error - SIMD operation errors
Functions§
- batch_
constant_ time_ eq - Batch constant-time comparison
- constant_
time_ eq - SIMD-accelerated constant-time equality check
- constant_
time_ eq_ v2 - SIMD-accelerated constant-time equality check (alternative using subtract_borrow trick)
- parallel_
hash - Parallel hash computation for large data
- parallel_
hash_ with_ threads - Parallel hash computation with custom thread count
- secure_
copy - SIMD-optimized memory copy for cryptographic data
- secure_
zero - Secure memory zeroization using volatile writes
- xor_
buffers - SIMD-accelerated XOR operation for buffers
- xor_
keystream - Parallel XOR with key stream for encryption/decryption
Type Aliases§
- Simd
Result - Result type for SIMD operations