Bruce Schneier wrote on this topic a comprehensive book, which presents both the protocols that the most diverse encryption algorithms. Are thus united in this book all the basic knowledge necessary to a technical understanding.
The author is a recognized expert in cryptography.