Cryptography in C and C++

  • Authors
  • Michael Welschenbach

Table of contents

  1. Front Matter
    Pages i-xix
  2. Arithmetic and Number Theory in C

    1. Front Matter
      Pages 1-1
    2. Michael Welschenbach
      Pages 3-10
    3. Michael Welschenbach
      Pages 17-19
    4. Michael Welschenbach
      Pages 21-63
    5. Michael Welschenbach
      Pages 65-77
    6. Michael Welschenbach
      Pages 79-121
    7. Michael Welschenbach
      Pages 123-142
    8. Michael Welschenbach
      Pages 143-153
    9. Michael Welschenbach
      Pages 155-163
    10. Michael Welschenbach
      Pages 165-227
    11. Michael Welschenbach
      Pages 229-241
    12. Michael Welschenbach
      Pages 243-253
  3. Arithmetic in C++ with the Class LINT

    1. Front Matter
      Pages 255-255
    2. Michael Welschenbach
      Pages 257-274
    3. Michael Welschenbach
      Pages 275-306
    4. Michael Welschenbach
      Pages 307-315
    5. Michael Welschenbach
      Pages 317-350
    6. Michael Welschenbach
      Pages 351-353

About this book


Cryptography in C and C++ mainly focuses on the practical aspects involved in implementing public key cryptography methods, such as the RSA algorithm that was released from patent protection. It also gives both a technical overview and an implementation of the Rijndael algorithm that was selected as the Advanced Encryption Standard by the U.S. government. Author Michael Welschenbach avoids complexities by explaining cryptography and its mathematical basis in terms a programmer can easily understand.

This book offers a comprehensive yet relentlessly practical overview of the fundamentals of modern cryptography. It contains a wide-ranging library of code in C and C++, including the RSA algorithm, completed by an extensive Test Suite that proves that the code works correctly. Readers will learn, step by step, how to implement a platform-independent library for the all-important multiprecision arithmetic used in modern cryptography. This is followed by an implementation of the cryptographic algorithms themselves.

The CD-ROM includes all the programs presented in the book, x86 assembler programs for basic arithmetical operations, implementations of the new Rijndael Advanced Encryption Standard algorithm in both C and C++, and more.


C++ C++ programming language Mathematica algorithms computer programming cryptography data encryption data security development encryption programming public key cryptography semantics software testing

Bibliographic information

  • DOI
  • Copyright Information Apress 2001
  • Publisher Name Apress, Berkeley, CA
  • eBook Packages Springer Book Archive
  • Print ISBN 978-1-893115-95-8
  • Online ISBN 978-1-4302-1157-0
  • About this book