Hardware and software architectures for enhanced packet encryption processing