Chapter 3 Principles of Public-Key Cryptosystems