Updated interface with mode port for different modes of SHA-512.