Library:Crypto++
Appearance
| Developer | Wei Dai and contributors |
|---|---|
| License | BSL-1.0 |
| Website | https://www.cryptopp.com |
| On this wiki | Facts · Code · Notes · Topics |
Wei Dai's large C++ cryptography library (Boost Software License) in namespace CryptoPP; identified in binaries by CryptoPP RTTI/mangled names and StaticAlgorithmName strings such as "SHA-256".
Overview
Crypto++ is a C++ template library: block ciphers, hashes, public key, pipelines (StringSource, Filter). Everything lives in namespace CryptoPP. See Technique:Identifying cryptographic libraries.
Identification
- RTTI / mangled names: classes appear as
CryptoPP::Rijndael,CryptoPP::SHA256,CryptoPP::Exception; in MSVC RTTI strings that is the.?AV...@CryptoPP@@form, in Itanium manglingN8CryptoPP.... Search the binary for the text "CryptoPP" first. Template-heavy names are long. Unverified: exact RTTI spellings (derived from the namespace and class names read in headers, not from a binary). - Algorithm name strings:
StaticAlgorithmName()returns "AES" for Rijndael (rijndael.h) and "SHA-1", "SHA-224", "SHA-256", "SHA-384", "SHA-512" for the SHA classes (sha.h); GCM composes "<cipher>/GCM" at run time (gcm.h), so "AES/GCM" is built on the heap, not stored. Fact:Crypto++/string/Algorithm names. - Version:
config_ver.hhas CRYPTOPP_MAJOR 8, MINOR 9, REVISION 0 and CRYPTOPP_VERSION 890;CryptoPP::LibraryVersion()(cryptlib.cpp) returns the number of the compiled library,HeaderVersion()the header's. Fact:Crypto++/identification/Version and namespace. - Exceptions derive from
CryptoPP::Exception(a std::exception), so catch handlers carry its type info.
Code & repositories
- https://github.com/weidai11/cryptopp @
5873a73a231c95771f5bbf3466a484952fb22780· license: BSL-1.0 (declared by the contributor for the files used; GitHub reports BSL-1.0 (read from License.txt; GitHub's detector did not classify it) for the repository)
Crypto++ source: config_ver.h, cryptlib.cpp, sha.h, rijndael.h, gcm.h.
Tested on: source read, not run: Headers read at this commit; not built. · checked 2026-10-18; last activity 2026-10-02; Note: the latest release ships binaries; the wiki links only the source, never the binaries
Pitfalls
- Unverified: whether a static release build without RTTI keeps any CryptoPP names; fall back to constants (Technique:Identifying cryptographic constants).
- Inlined templates mean one algorithm can appear in many copies.