API Reference
API Reference
Complete API documentation for all classes, methods, and functions in the cryptopp-modern library.
Hash Functions
High-performance cryptographic hash functions for data integrity and digital signatures.
- BLAKE3 - Fastest modern hash function with parallelism support
- BLAKE2b / BLAKE2s - High-speed hash functions (RFC 7693)
- SHA-256 - Standard hash function with hardware acceleration
- SHA-512 - 64-bit optimised hash for high security
- SHA-3 - FIPS 202 Keccak-based hash function
Password Hashing & Key Derivation
Secure password hashing and key derivation functions.
- Argon2 - Memory-hard password hashing (recommended)
- HKDF - HMAC-based key derivation for secrets
- PBKDF2 - Password-based key derivation (legacy/FIPS)
Symmetric Encryption
Authenticated encryption algorithms for encrypting data.
- AES-GCM - Industry standard authenticated encryption (recommended)
- ChaCha20-Poly1305 - Modern AEAD without hardware acceleration needs
- AES-CBC with HMAC - Legacy encrypt-then-MAC pattern
- AES-CTR - Counter mode (requires separate MAC)
- AES-CBC - Cipher Block Chaining mode (requires separate MAC)
Public-Key Cryptography
Asymmetric cryptography for signatures and key exchange.
- X25519 - Modern key exchange (recommended)
- Ed25519 - Modern digital signatures (recommended)
- RSA - Legacy public-key encryption and signatures
Message Authentication
Message Authentication Codes (MACs) for data authenticity.
- HMAC - Hash-based MAC (recommended for most use cases)
- CMAC - Cipher-based MAC using AES
- Poly1305 - High-speed one-time MAC
Utilities
Essential utilities for cryptographic operations.
- AutoSeededRandomPool - Cryptographic RNG (essential)
- SecByteBlock - Secure memory for keys (essential)
- HexEncoder - Hexadecimal encoding and decoding
- Base64Encoder - Base64 and Base64URL encoding
Pipeline & Filters
Data transformation pipeline for streaming operations.
- StringSource / StringSink - String-based I/O
- FileSource / FileSink - File-based I/O
- ArraySource / ArraySink - Byte array I/O
- HashFilter - Hash computation filter
- SignerFilter / VerifierFilter - Digital signature filters
- StreamTransformationFilter - Encryption/decryption filter
- AuthenticatedEncryptionFilter - AEAD encryption filter
- Redirector / Tee - Pipeline branching and duplication
Advanced Utilities
- Integer - Arbitrary precision integers for big number operations
Quick Navigation
- By Category - Browse above
- Alphabetical - See all classes A-Z (coming soon)
- Most Used - Popular classes (coming soon)
Using the API Reference
Each API page includes:
- Overview - What the class does and when to use it
- Constants - Important compile-time constants
- Constructors - How to create instances
- Methods - All public methods with parameters and return values
- Examples - Working code you can copy and paste
- Performance - Speed characteristics and hardware acceleration
- Security - Security properties and guarantees
- See Also - Related classes and guides
Need Help?
- New to cryptopp-modern? Start with the Beginner’s Guide
- Looking for examples? Check the Algorithm Guides
- Security questions? Read Security Concepts
- Migrating from Crypto++? See the Migration Guide