
Lengths were signed int for decrypt while unsigned int for encrypt. Use word32 across the board. Also fix AES-NI code on Windows to cast lengths to word64 before multiplying by 8 to avoid averflow.
Lengths were signed int for decrypt while unsigned int for encrypt. Use word32 across the board. Also fix AES-NI code on Windows to cast lengths to word64 before multiplying by 8 to avoid averflow.