Mathematical Foundations
Mathematical Foundations
Core Algorithms
Version: 1.0
Last Updated: [Date]
Prepared for: Developers, security engineers, researchers, and students
1. What Is Cryptography?
Cryptography is the science of securing information and communications using
mathematical techniques. It ensures confidentiality, integrity, authenticity, and non-
repudiation in digital systems.
2. Core Concepts
Concept Description
Plaintex
Original message/data
t
Ciphert
Encrypted version of the plaintext
ext
A parameter (number/bit string) that determines the output of a cryptographic
Key
algorithm
Encrypti
Transforming plaintext to ciphertext
on
Decrypti
Reversing ciphertext back to plaintext
on
Hashing One-way transformation of data to fixed-size output
3. Types of Cryptography
Examples:
• Uses a public key for encryption and a private key for decryption.
• Enables secure key exchange and digital signatures.
Examples:
• RSA
• ECC (Elliptic Curve Cryptography)
• ElGamal
Examples:
• SHA-256
• SHA-3
• BLAKE3
4. Key Algorithms and Math
Key generation:
Operations:
• Point addition
• Scalar multiplication: k⋅Gk \cdot Gk⋅G, where GGG is a base point
5. Digital Signatures
Used for authentication and non-repudiation.
RSA Signatures
• Based on ECC
• Much smaller key sizes than RSA for equivalent security
Steps:
8. Security Considerations
• Always use modern, peer-reviewed algorithms.
• Never implement crypto from scratch without expertise.
• Use constant-time algorithms to avoid timing attacks.
• Secure random number generation is critical.
• Private keys must be stored securely (e.g., hardware modules, secure enclaves).
9. Glossary
Term Definition
An algorithm for performing encryption or
Cipher
decryption
Entropy Randomness used in cryptographic functions
Key Exchange Protocol for sharing encryption keys securely
Side-Channel Exploits physical or timing information from a
Attack system
10. References and Further Reading
• "Understanding Cryptography" by Christof Paar and Jan Pelzl
• NIST SP 800-38A: Block Cipher Modes of Operation
• RFC 8017: PKCS #1: RSA Cryptography Standard
• Crypto101.io – Free book on cryptographic primitives
• NIST Cryptographic Toolkit