Function secure_copy
Source pub fn secure_copy(src: &[u8], dst: &mut [u8]) -> SimdResult<()>
Expand description
SIMD-optimized memory copy for cryptographic data
Optimized for copying keys, nonces, and other cryptographic material.
Uses aligned memory operations when possible.
§Arguments
src - Source slice
dst - Destination slice (must be same length as src)
§Errors
Returns error if lengths don’t match.