Computer security

A network protocol must protect a message from eavesdropping and detect unauthorized modification. Which primitive most directly provides both properties when used correctly?