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.
Table of contents
- Copyright
- Foreword
- About the Author
- About the Translator
- Preface to the Second American Edition
- Preface to the First American Edition
- Preface to the First German Edition
-
1. Arithmetic and Number Theory in C
- 1. Introduction
- 2. Number Formats: The Representation of Large Numbers in C
- 3. Interface Semantics
- 4. The Fundamental Operations
- 5. Modular Arithmetic: Calculating with Residue Classes
- 6. Where All Roads Meet: Modular Exponentiation
- 7. Bitwise and Logical Function
- 8. Input, Output, Assignment, Conversion
- 9. Dynamic Registers
-
10. Basic Number-Theoretic Functions
- 10.1. Greatest Common Divisor
- 10.2. Multiplicative Inverse in Residue Class Rings
- 10.3. Roots and Logarithms
- 10.4. Square Roots in Residue Class Rings
- 10.5. A Primality Test
-
11. Rijndael: A Successor to the Data Encryption Standard
- 11.1. Arithmetic with Polynomials
- 11.2. The Rijndael Algorithm
- 11.3. Calculating the Round Key
- 11.4. The S-Box
- 11.5. The ShiftRows Transformation
- 11.6. The MixColumns Transformation
- 11.7. The AddRoundKey Step
- 11.8. Encryption as a Complete Process
- 11.9. Decryption
- 11.10. Performance
- 11.11. Modes of Operation
- 12. Large Random Numbers
- 13. Strategies for Testing LINT
- 2. Arithmetic in C++ with the Class LINT
-
3. Appendices
- A. Directory of C Functions
-
B. Directory of C++ Functions
- B.1. Input/Output, Conversion, Comparison: Member Functions
- B.2. Input/Output, Conversion, Comparison: Friend Functions
- B.3. Basic Operations: Member Functions
- B.4. Basic Operations: Friend Functions
- B.5. Modular Arithmetic: Member Functions
- B.6. Modular Arithmetic: Friend Functions
- B.7. Bitwise Operations: Member Functions
- B.8. Bitwise Operations: Friend Functions
- B.9. Number-Theoretic Member Functions
- B.10. Number-Theoretic Friend Functions
- B.11. Generation of Pseudorandom Numbers
- B.12. Miscellaneous Functions
- C. Macros
- D. Calculation Times
- E. Notation
- F. Arithmetic and Number-Theoretic Packages
- References
Product information
- Title: Cryptography in C and C++, Second Edition
- Author(s):
- Release date: May 2005
- Publisher(s): Apress
- ISBN: 9781590595022
You might also like
book
Secure Coding in C and C++, Second Edition
Learn the Root Causes of Software Vulnerabilities and How to Avoid Them Commonly exploited software vulnerabilities …
book
Hands-On System Programming with C++
A hands-on guide to making system programming with C++ easy Key Features Write system-level code leveraging …
book
Applied Cryptography: Protocols, Algorithms and Source Code in C, 20th Anniversary Edition
From the world's most renowned security technologist, Bruce Schneier, this 20th Anniversary Edition is the most …
book
C Programming Language, 2nd Edition
This book is meant to help the reader learn how to program in C. It is …