{"repo":"weidai11/cryptopp","free":true,"listed":false,"github":"https://github.com/weidai11/cryptopp","clone":"git clone https://github.com/weidai11/cryptopp.git","description":"free C++ class library of cryptographic schemes","language":"C++","stars":5488,"topics":["c-plus-plus","crypto","cryptography"],"license":null,"category":"crypto_library","readme_excerpt":"Crypto++: free C++ Class Library of Cryptographic Schemes\r\nVersion 8.9 - October 1, 2023\r\n\r\nCrypto++ Library is a free C++ class library of cryptographic schemes.\r\nCurrently the library contains the following algorithms:\r\n\r\n                   algorithm type  name\r\n\r\n authenticated encryption schemes  GCM, CCM, EAX, ChaCha20Poly1305 and\r\n                                   XChaCha20Poly1305\r\n\r\n        high speed stream ciphers  ChaCha (8/12/20), ChaCha (IETF), Panama, Salsa20,\r\n                                   Sosemanuk, XSalsa20, XChaCha20\r\n\r\n           AES and AES candidates  AES (Rijndael), RC6, MARS, Twofish, Serpent,\r\n                                   CAST-256\r\n\r\n                                   ARIA, Blowfish, Camellia, CHAM, HIGHT, IDEA,\r\n                                   Kalyna (128/256/512), LEA, SEED, RC5, SHACAL-2,\r\n              other block ciphers  SIMON (64/128), Skipjack, SPECK (64/128),\r\n                                   Simeck, SM4, Threefish (256/512/1024),\r\n                                   Triple-DES (DES-EDE2 and DES-EDE3), TEA, XTEA\r\n\r\n  block cipher modes of operation  ECB, CBC, CBC ciphertext stealing (CTS),\r\n                                   CFB, OFB, counter mode (CTR), XTS\r\n\r\n     message authentication codes  BLAKE2s, BLAKE2b, CMAC, CBC-MAC, DMAC, GMAC, HMAC,\r\n                                   Poly1305, Poly1305 (IETF), SipHash, Two-Track-MAC,\r\n                                   VMAC\r\n\r\n                                   BLAKE2s, BLAKE2b, Keccack (F1600), LSH (256/512),\r\n                   hash functions  SHA-1, SHA-2 (224/256/384/512), SHA-3 (224/256),\r\n                                   SHA-3 (384/512), SHAKE (128/256), SipHash, SM3, Tiger,\r\n                                   RIPEMD (128/160/256/320), WHIRLPOOL\r\n\r\n                                   RSA, DSA, Deterministic DSA, ElGamal,\r\n          public-key cryptography  Nyberg-Rueppel (NR), Rabin-Williams (RW), LUC,\r\n                                   LUCELG, EC-based German Digital Signature (ECGDSA),\r\n                                   DLIES (variants of DHAES), ESIGN\r\n\r\n   padding schemes for public-key  PKCS#1 v2.0, OAEP, PSS, PSSR, IEEE P1363\r\n                          systems  EMSA2 and EMSA5\r\n\r\n                                   Diffie-Hellman (DH), Unified Diffie-Hellman (DH2),\r\n            key agreement schemes  Menezes-Qu-Vanstone (MQV), Hashed MQV (HMQV),\r\n                                   Fully Hashed MQV (FHMQV), LUCDIF, XTR-DH\r\n\r\n      elliptic curve cryptography  ECDSA, Deterministic ECDSA, ed25519, ECNR, ECIES,\r\n                                   ECDH, ECMQV, x25519\r\n\r\n          insecure or obsolescent  MD2, MD4, MD5, Panama Hash, DES, ARC4, SEAL\r\nalgorithms retained for backwards  3.0, WAKE-OFB, DESX (DES-XEX3), RC2,\r\n     compatibility and historical  SAFER, 3-WAY, GOST, SHARK, CAST-128, Square\r\n                            value\r\n\r\nOther features include:\r\n\r\n  * pseudo random number generators (PRNG): ANSI X9.17 appendix C, RandomPool,\r\n    DARN, VIA Padlock, RDRAND, RDSEED, NIST Hash and HMAC DRBGs\r\n  * password based key derivation functions: PBKDF1 and PBKDF2 from PKCS #5,\r\n    PBKDF from PKCS #12 appendix B, HKDF from RFC 5869, Scrypt from RFC 7914\r\n  * Shamir's secret sharing scheme and Rabin's information dispersal algorithm\r\n    (IDA)\r\n  * fast multi-precision integer (bignum) and polynomial operations\r\n  * finite field arithmetics, including GF(p) and GF(2^n)\r\n  * prime number generation and verification\r\n  * useful non-cryptographic algorithms\r\n      + DEFLATE (RFC 1951) compression/decompression with gzip (RFC 1952) and\r\n        zlib (RFC 1950) format support\r\n      + Hex, base-32, base-64, URL safe base-64 encoding and decoding\r\n      + 32-bit CRC, CRC-C and Adler32 checksum\r\n  * class wrappers for these platform and operating system features (optional):\r\n      + high resolution timers on Windows, Unix, and Mac OS\r\n      + /dev/random, /dev/urandom, /dev/srandom\r\n      + Microsoft's CryptGenRandom or BCryptGenRandom on Windows\r\n  * A high level interface for most of the above, using a filter/pipeline\r\n    metaphor\r\n  * benchmarks and validation testing\r\n  * x86, x64 (x86-64), x32 (ILP32), ARM-32, Aarch32, Aarch64 and Power8\r\n    in-core code for the commonly used algorithms\r\n      + run-time CPU feature detection and code selection\r\n      + supports GCC-style and MSVC-style inline assembly, and MASM for x64\r\n      + x86, x64 (x86-64), x32 provides MMX, SSE2, and SSE4 implementations\r\n      + ARM-32, Aarch32 and Aarch64 provides NEON, ASIMD and ARMv8 implementations\r\n      + Power8 provides in-core AES using NX Crypto Acceleration\r\n\r\nThe Crypto++ library was originally written by Wei Dai. The library is now\r\nmaintained by several team members and the community. You are welcome to use it\r\nfor any purpose without paying anyone, but see License.txt for the fine print.\r\n\r\nThe following compilers are supported for this release. Please visit\r\nhttp://www.cryptopp.com the most up to date build instructions and porting notes.\r\n\r\n  * Visual Studio 2003 - 2022\r\n  * GCC 3.3 - 13.1\r\n  * Apple Clang 4.3 - 12.0\r\n  * LLVM Clang 2.9 - 14.0\r\n  * C++ Builder 2015\r\n  * Intel C++ Compiler 9 - 16.0\r\n  * Sun Studio 12u1 - 12.7\r\n  * IBM XL C/C++ 10.0 - 14.0\r\n\r\n*** Important Usage Notes ***\r\n\r\n1. If a constructor for A takes a pointer to an object B (except primitive\r\ntypes such as int and char), then A owns B and will delete B at A's\r\ndestruction.  If a constructor for A takes a reference to an object B,\r\nthen the caller retains ownership of B and should not destroy it until\r\nA no longer needs it.\r\n\r\n2. Crypto++ is thread safe at the class level. This means you can use\r\nCrypto++ safely in a multithreaded application, but you must provide\r\nsynchronization when multiple threads access a common Crypto++ object.\r\n\r\n*** MSVC-Specific Information ***\r\n\r\nTo compile Crypto++ with MSVC, open \"cryptest.sln\" (for MSVC 2003 - 2015)\r\nand build one or more of the following projects:\r\n\r\ncryptest Non-DLL-Import Configuration - This builds the full static library\r\n  along with a full test driver.\r\ncryptest DLL-Import Configuration - This builds a static library containing\r\n  only algorithms not in the DLL, along with a full test driver that uses\r\n  both the DLL and the static library.\r\ncryptdll - This builds the DLL. Please note that if you wish to use Crypto++\r\n  as a FIPS validated module, you must use a pre-built DLL that has undergone\r\n  the FIPS validation process instead of building your own.\r\ndlltest - This builds a sample application that only uses the DLL.\r\n\r\nThe DLL used to provide FIPS validated cryptography. The library was moved\r\nto the CMVP's [Historical Validation List](http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140val-historical.htm).\r\nThe library and the DLL are no longer considered\r\nvalidated. You should no longer use the DLL.\r\n\r\nTo use the Crypto++ DLL in your application, #include \"dll.h\" before including\r\nany other Crypto++ header files, and place the DLL in the same directory as\r\nyour .exe file. dll.h includes the line #pragma comment(lib, \"cryptopp\")\r\nso you don't have to explicitly list the import library in your project\r\nsettings. Otherwise, to use a static library form of Crypto++, make the \"cryptlib\"\r\nproject a dependency of your application project, or specify it as\r\nan additional library to link with in your project settings.\r\nIn either case you should check the compiler options to\r\nmake sure that the library and your application are using the same C++\r\nrun-time libraries and calling conventions.\r\n\r\n*** DLL Memory Management ***\r\n\r\nBecause it's possible for the Crypto++ DLL to delete objects allocated\r\nby the calling application, they must use the same C++ memory heap. Three\r\nmethods are provided to achieve this.\r\n1.  The calling application can tell Crypto++ what heap to use. This method\r\n    is required when the calling application uses a non-standard heap.\r\n2.  Crypto++ can tell the calling application what heap to use. This method\r\n    is required when the calling application uses a statically linked C++ Run\r\n    Time Library. (Method 1 does not work in this case because the Crypto++ DLL\r\n    is initialized before the calling application's heap is initialized.)\r\n3.  Crypto++ can automatically use the heap provided by the calling application's\r\n    dynamically linked C++ Run Time Library. The calling application must\r\n    make sure that the dynamically linked C++ Run Time Library is initialized\r\n    before Crypto++ is loaded. (At this time it is not clear if it is possible\r\n    to control the order in which DLLs are initialized on Windows 9x machines,\r\n    so it might be best to avoid using this method.)\r\n\r\nWhen Crypto++ attaches to a new process, it searches all modules loaded\r\ninto the process space for exported functions \"GetNewAndDeleteForCryptoPP\"\r\nand \"SetNewAndDeleteFromCryptoPP\". If one of these functions is found,\r\nCrypto++ uses methods 1 or 2, respectively, by calling the function.\r\nOtherwise, method 3 is used.\r\n\r\n*** Linux and Unix-like Specific Information ***\r\n\r\nA makefile is included for you to compile Crypto++ with GCC and compatibles.\r\nMake sure you are using GNU Make and GNU ld. The make process will produce\r\ntwo files, libcryptopp.a and cryptest.exe. Run \"cryptest.exe v\" for the\r\nvalidation suite and \"cryptest.exe tv all\" for additional test vectors.\r\n\r\nThe makefile uses '-DNDEBUG -g2 -O2' CXXFLAGS by default. If you use an\r\nalternate build system, like Autotools or CMake, then ensure the build system\r\nincludes '-DNDEBUG' for production or release builds. The Crypto++ library uses\r\nasserts for debugging and diagnostics during development; it does not\r\nrely on them to crash a program at runtime.\r\n\r\nIf an assert triggers in production software, then unprotected sensitive\r\ninformation could be egressed from the program to the filesystem or the\r\nplatform's error reporting program, like Apport on Ubuntu or CrashReporter\r\non Apple.\r\n\r\nThe makefile orders object files to help reme","default_branch":"master","files":686,"tree":[".appveyor.yml",".cirrus.yml",".gitattributes",".github/issue_template.md",".github/workflows/c-cpp.yml",".gitignore",".travis.yml","3way.cpp","3way.h","Doxyfile","Filelist.txt","GNUmakefile","GNUmakefile-cross","History.txt","Install.txt","License.txt","Readme.txt","Security.md","TestData/3desval.dat","TestData/3wayval.dat","TestData/aria.dat","TestData/camellia.dat","TestData/cast128v.dat","TestData/cast256v.dat","TestData/defdmac1.bin","TestData/defdmac2.bin","TestData/descert.dat","TestData/dh1024.dat","TestData/dh2048.dat","TestData/dlie1024.dat","TestData/dlie2048.dat","TestData/dsa1024.dat","TestData/dsa1024b.dat","TestData/dsa512.dat","TestData/ecies_p160.dat","TestData/ecies_t163.dat","TestData/ed25519.dat","TestData/ed25519v0.dat","TestData/ed25519v1.dat","TestData/elgc1024.dat","TestData/esig1023.dat","TestData/esig1536.dat","TestData/esig2046.dat","TestData/fhmqv160.dat","TestData/fhmqv256.dat","TestData/fhmqv384.dat","TestData/fhmqv512.dat","TestData/gostval.dat","TestData/hmqv160.dat","TestData/hmqv256.dat","TestData/hmqv384.dat","TestData/hmqv512.dat","TestData/ideaval.dat","TestData/luc1024.dat","TestData/luc2048.dat","TestData/lucc1024.dat","TestData/lucc512.dat","TestData/lucd1024.dat","TestData/lucd512.dat","TestData/lucs1024.dat","TestData/lucs512.dat","TestData/marsval.dat","TestData/mqv1024.dat","TestData/mqv2048.dat","TestData/nr1024.dat","TestData/nr2048.dat","TestData/rabi1024.dat","TestData/rabi2048.dat","TestData/rc2val.dat","TestData/rc5val.dat","TestData/rc6val.dat","TestData/rijndael.dat","TestData/rsa1024.dat","TestData/rsa2048.dat","TestData/rsa2048a.dat","TestData/rsa400pb.dat","TestData/rsa400pv.dat","TestData/rsa512a.dat","TestData/rw1024.dat","TestData/rw2048.dat","TestData/saferval.dat","TestData/serpentv.dat","TestData/shacal2v.dat","TestData/sharkval.dat","TestData/skipjack.dat","TestData/squareva.dat","TestData/twofishv.dat","TestData/usage.dat","TestData/x25519.dat","TestData/x25519v0.dat","TestData/x25519v1.dat","TestData/xtrdh171.dat","TestData/xtrdh342.dat","TestPrograms/dump2def.cpp","TestPrograms/test_32bit.cpp","TestPrograms/test_64bit.cpp","TestPrograms/test_arm_acle_header.cpp","TestPrograms/test_arm_aes.cpp","TestPrograms/test_arm_armv7.cpp","TestPrograms/test_arm_asimd.cpp","TestPrograms/test_arm_crc.cpp","TestPrograms/test_arm_neon.cpp","TestPrograms/test_arm_neon_header.cpp","TestPrograms/test_arm_pmull.cpp","TestPrograms/test_arm_sha1.cpp","TestPrograms/test_arm_sha256.cpp","TestPrograms/test_arm_sha3.cpp","TestPrograms/test_arm_sha512.cpp","TestPrograms/test_arm_sm3.cpp","TestPrograms/test_arm_sm4.cpp","TestPrograms/test_asm_mixed.cpp","TestPrograms/test_cxx.cpp","TestPrograms/test_cxx11.cpp","TestPrograms/test_cxx11_alignas.cpp","TestPrograms/test_cxx11_alignof.cpp","TestPrograms/test_cxx11_assert.cpp","TestPrograms/test_cxx11_atomic.cpp","TestPrograms/test_cxx11_auto.cpp","TestPrograms/test_cxx11_constexpr.cpp","TestPrograms/test_cxx11_deletefn.cpp","TestPrograms/test_cxx11_enumtype.cpp","TestPrograms/test_cxx11_initializer.cpp","TestPrograms/test_cxx11_lambda.cpp","TestPrograms/test_cxx11_noexcept.cpp","TestPrograms/test_cxx11_nullptr.cpp","TestPrograms/test_cxx11_staticinit.cpp","TestPrograms/test_cxx11_sync.cpp","TestPrograms/test_cxx11_vartemplates.cpp","TestPrograms/test_cxx14.cpp","TestPrograms/test_cxx17.cpp","TestPrograms/test_cxx17_assert.cpp","TestPrograms/test_cxx17_exceptions.cpp","TestPrograms/test_cxx98_exception.cpp","TestPrograms/test_glibc.cpp","TestPrograms/test_newlib.cpp","TestPrograms/test_nodevirtualize.cpp","TestPrograms/test_ppc_aes.cpp","TestPrograms/test_ppc_altivec.cpp","TestPrograms/test_ppc_power7.cpp","TestPrograms/test_ppc_power8.cpp","TestPrograms/test_ppc_power9.cpp","TestPrograms/test_ppc_sha.cpp","TestPrograms/test_ppc_vmull.cpp","TestPrograms/test_pthreads.cpp","TestPrograms/test_x86_aes.cpp","TestPrograms/test_x86_avx.cpp","TestPrograms/test_x86_avx2.cpp","TestPrograms/test_x86_avx512.cpp","TestPrograms/test_x86_clmul.cpp","TestPrograms/test_x86_cpuid.cpp","TestPrograms/test_x86_rdrand.cpp","TestPrograms/test_x86_rdseed.cpp","TestPrograms/test_x86_sha.cpp","TestPrograms/test_x86_sse2.cpp","TestPrograms/test_x86_sse3.cpp","TestPrograms/test_x86_sse41.cpp","TestPrograms/test_x86_sse42.cpp","TestPrograms/test_x86_ssse3.cpp","TestPrograms/test_x86_via_aes.cpp","TestPrograms/test_x86_via_rng.cpp","TestPrograms/test_x86_via_sha.cpp","TestScripts/change-version.sh","TestScripts/configure.sh","TestScripts/coverity-linux.txt","TestScripts/coverity-macosx.txt","TestScripts/coverity-windows.txt","TestScripts/cryptdll-windows.cmd","TestScripts/cryptest-android-mk.sh","TestScripts/cryptest-android.sh","TestScripts/cryptest-autotools.sh","TestScripts/cryptest-coverage.sh","TestScripts/cryptest-coverity.cpp","TestScripts/cryptest-ios.sh","TestScripts/cryptest-pem.sh","TestScripts/cryptest-symbols.sh","TestScripts/cryptest-tidy.sh","TestScripts/cryptest.sh","TestScripts/cryptopp-compiler.cpp","TestScripts/governor.sh","TestScripts/install-ndk.sh","TestScripts/make-benchmarks.sh","TestScripts/reset-fork.sh","TestScripts/setenv-android.sh","TestScripts/setenv-embedded.sh","TestScripts/setenv-ios.sh","TestScripts/setenv-macos.sh","TestVectors/Readme.txt","TestVectors/aead.txt","TestVectors/aes.txt","TestVectors/all.txt","TestVectors/aria.txt","TestVectors/blake2.txt","TestVectors/blake2b.txt","TestVectors/blake2s.txt","TestVectors/camellia.txt","TestVectors/ccm.txt","TestVectors/chacha.txt","TestVectors/chacha20poly1305.txt","TestVectors/chacha_tls.txt","TestVectors/cham.txt","TestVectors/cmac.txt","TestVectors/dlies.txt","TestVectors/dsa.txt","TestVectors/dsa_1363.txt","TestVectors/dsa_rfc6979.txt","TestVectors/eax.txt","TestVectors/esign.txt","TestVectors/gcm.txt","TestVectors/hc128.txt","TestVectors/hc256.txt","TestVectors/hight.txt","TestVectors/hkdf.txt","TestVectors/hmac.txt","TestVectors/kalyna.txt","TestVectors/keccak.txt","TestVectors/lea.txt","TestVectors/lsh.txt","TestVectors/lsh256.txt","TestVectors/lsh512.txt","TestVectors/lsh512_256.txt","TestVectors/mars.txt","TestVectors/nr.txt","TestVectors/ocb.txt","TestVectors/panama.txt","TestVectors/poly1305_tls.txt","TestVectors/poly1305aes.txt","TestVectors/rabbit.txt","TestVectors/rsa_oaep.txt","TestVectors/rsa_pkcs1_1_5.txt","TestVectors/rsa_pss.txt","TestVectors/rw.txt","TestVectors/salsa.txt","TestVectors/seal.txt","TestVectors/seed.txt","TestVectors/sha.txt","TestVectors/sha1_160_fips_180.txt","TestVectors/sha1_fips_180.txt","TestVectors/sha2.txt","TestVectors/sha2_224_fips_180.txt","TestVectors/sha2_256_fips_180.txt","TestVectors/sha2_384_fips_180.txt","TestVectors/sha2_512_fips_180.txt","TestVectors/sha2_fips_180.txt","TestVectors/sha3.txt","TestVectors/sha3_224_fips_202.txt","TestVectors/sha3_256_fips_202.txt","TestVectors/sha3_384_fips_202.txt","TestVectors/sha3_512_fips_202.txt","TestVectors/sha3_fips_202.txt","TestVectors/shacal2.txt","TestVectors/shake.txt","TestVectors/simeck.txt","TestVectors/simon.txt","TestVectors/siphash.txt","TestVectors/skipjack.txt","TestVectors/sm3.txt","TestVectors/sm4.txt","TestVectors/sosemanuk.txt","TestVectors/speck.txt","TestVectors/tea.txt","TestVectors/threefish.txt","TestVectors/ttmac.txt","TestVectors/vmac.txt","TestVectors/wake.txt","TestVectors/whrlpool.txt","TestVectors/xchacha.txt","TestVectors/xts.txt","adhoc.cpp.proto","adler32.cpp","adler32.h","adv_simd.h","aes.h","aes_armv4.S","aes_armv4.h","algebra.cpp","algebra.h","algparam.cpp","algparam.h","allocate.cpp","allocate.h","arc4.cpp","arc4.h","argnames.h","aria.cpp","aria.h","ariatab.cpp","arm_simd.h","asn.cpp","asn.h","authenc.cpp","authenc.h","base32.cpp","base32.h","base64.cpp","base64.h","basecode.cpp","basecode.h","bds10.zip","bench.h","bench1.cpp","bench2.cpp","bench3.cpp","bfinit.cpp","blake2.cpp","blake2.h","blake2b_simd.cpp","blake2s_simd.cpp","blowfish.cpp","blowfish.h","blumshub.cpp","blumshub.h","camellia.cpp","camellia.h","cast.cpp","cast.h","casts.cpp","cbcmac.cpp","cbcmac.h","ccm.cpp","ccm.h","chacha.cpp","chacha.h","chacha_avx.cpp","chacha_simd.cpp","chachapoly.cpp","chachapoly.h","cham.cpp","cham.h","cham_simd.cpp","channels.cpp","channels.h","cmac.cpp","cmac.h","config.h","config_align.h","config_asm.h","config_cpu.h","config_cxx.h","config_dll.h","config_int.h","config_misc.h","config_ns.h","config_os.h","config_ver.h","cpu.cpp","cpu.h","cpuid64.asm","crc.cpp","crc.h","crc_simd.cpp","cryptdll.vcxproj","cryptdll.vcxproj.filters","cryptest.nmake","cryptest.sln","cryptest.vcxproj","cryptest.vcxproj.filters","cryptest.vcxproj.user","cryptlib.cpp","cryptlib.h","cryptlib.vcxproj","cryptlib.vcxproj.filters","cryptopp.mapfile","cryptopp.rc","cryptopp.supp","darn.cpp","darn.h","datatest.cpp","default.cpp","default.h","des.cpp","des.h","dessp.cpp","dh.cpp","dh.h","dh2.cpp","dh2.h","dll.cpp","dll.h","dlltest.cpp","dlltest.vcxproj","dlltest.vcxproj.filters","dmac.h","donna.h","donna_32.cpp","donna_32.h","donna_64.cpp","donna_64.h","donna_sse.cpp","donna_sse.h","drbg.h","dsa.cpp","dsa.h","eax.cpp","eax.h","ec2n.cpp","ec2n.h","eccrypto.cpp","eccrypto.h","ecp.cpp","ecp.h"],"storefront":"/r/weidai11","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/weidai11/cryptopp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}