## Book description

This book covers everything you need to know to write professional-level cryptographic code. This expanded, improved second edition includes about 100 pages of new material as well as numerous improvements to the original text.

The chapter about random number generation has been completely rewritten, and the latest cryptographic techniques are covered in detail. Furthermore, this book covers the recent improvements in primality testing.

2. Foreword
5. Preface to the Second American Edition
6. Preface to the First American Edition
7. Preface to the First German Edition
8. 1. Arithmetic and Number Theory in C
1. 1. Introduction
2. 2. Number Formats: The Representation of Large Numbers in C
3. 3. Interface Semantics
4. 4. The Fundamental Operations
2. 4.2. Multiplication
3. 4.3. Division with Remainder
5. 5. Modular Arithmetic: Calculating with Residue Classes
6. 6. Where All Roads Meet: Modular Exponentiation
7. 7. Bitwise and Logical Function
8. 8. Input, Output, Assignment, Conversion
9. 9. Dynamic Registers
10. 10. Basic Number-Theoretic Functions
1. 10.1. Greatest Common Divisor
2. 10.2. Multiplicative Inverse in Residue Class Rings
3. 10.3. Roots and Logarithms
4. 10.4. Square Roots in Residue Class Rings
1. 10.4.1. The Jacobi Symbol
2. 10.4.2. Square Roots Modulo pk
3. 10.4.3. Square Roots Modulo n
4. 10.4.4. Cryptography with Quadratic Residues
5. 10.5. A Primality Test
11. 11. Rijndael: A Successor to the Data Encryption Standard
12. 12. Large Random Numbers
1. 12.1. A Simple Random Number Generator
2. 12.2. Cryptographic Random Number Generators
3. 12.3. Quality Testing
4. 12.4. More Complex Functions
13. 13. Strategies for Testing LINT
9. 2. Arithmetic in C++ with the Class LINT
1. 14. Let C++ Simplify Your Life
2. 15. The LINT Public Interface: Members and Friends
1. 15.1. Arithmetic
2. 15.2. Number Theory
3. 15.3. Stream I/O of LINT Objects
3. 16. Error Handling
4. 17. An Application Example: The RSA Cryptosystem
5. 18. Do It Yourself: Test LINT
6. 19. Approaches for Further Extensions
10. 3. Appendices
1. A. Directory of C Functions
2. B. Directory of C++ Functions
3. C. Macros
4. D. Calculation Times
5. E. Notation
6. F. Arithmetic and Number-Theoretic Packages
11. References

## Product information

• Title: Cryptography in C and C++, Second Edition
• Author(s):
• Release date: May 2005
• Publisher(s): Apress
• ISBN: 9781590595022