├── CMakeLists.txt ├── Makefile.comm ├── README.md ├── base ├── base64.cpp ├── base64.h ├── stringutils.cpp └── stringutils.h └── cipher ├── Makefile ├── aes.c ├── aes.h ├── aes ├── aes.cpp └── aes.hpp ├── chacha20.cpp ├── chacha20.h ├── common.h ├── ctaes ├── COPYING ├── README.md ├── bench.c ├── ctaes.c ├── ctaes.h └── test.c ├── digest.c ├── digest.h ├── hmac.c ├── hmac.h ├── md5.c ├── md5.h ├── md5key.cpp ├── md5key.h ├── pbkdf2_hmac.c ├── pbkdf2_hmac.h ├── rc4.c ├── rc4.h ├── ripemd160.cpp ├── ripemd160.h ├── rsa ├── Makefile ├── Makefile.aix ├── Makefile.hp ├── Makefile.linux ├── asn1.c ├── asn1.h ├── base64.c ├── base64.h ├── bignum.c ├── bignum.h ├── build_config.h ├── common.c ├── common.h ├── includes.h ├── libtommath.c ├── os.h ├── os_unix.c ├── rsa.c ├── rsa.h ├── test_rsa.c ├── trace.c ├── trace.h ├── user_rsa.c ├── user_rsa.h ├── wpa_debug.c ├── wpa_debug.h ├── wpabuf.c └── wpabuf.h ├── sha.c ├── sha.h ├── sha1.c ├── sha1.h ├── sha224.c ├── sha224.h ├── sha256.c ├── sha256.h ├── sha384.c ├── sha384.h ├── sha512.c ├── sha512.h ├── ssh.h ├── tdes.c ├── tdes.h ├── tea.c ├── tea.h └── unittest ├── Makefile ├── cipher_unittest.cpp └── ut ├── test_harness.cpp └── test_harness.h /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /Makefile.comm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/Makefile.comm -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/README.md -------------------------------------------------------------------------------- /base/base64.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/base/base64.cpp -------------------------------------------------------------------------------- /base/base64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/base/base64.h -------------------------------------------------------------------------------- /base/stringutils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/base/stringutils.cpp -------------------------------------------------------------------------------- /base/stringutils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/base/stringutils.h -------------------------------------------------------------------------------- /cipher/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/Makefile -------------------------------------------------------------------------------- /cipher/aes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/aes.c -------------------------------------------------------------------------------- /cipher/aes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/aes.h -------------------------------------------------------------------------------- /cipher/aes/aes.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/aes/aes.cpp -------------------------------------------------------------------------------- /cipher/aes/aes.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/aes/aes.hpp -------------------------------------------------------------------------------- /cipher/chacha20.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/chacha20.cpp -------------------------------------------------------------------------------- /cipher/chacha20.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/chacha20.h -------------------------------------------------------------------------------- /cipher/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/common.h -------------------------------------------------------------------------------- /cipher/ctaes/COPYING: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ctaes/COPYING -------------------------------------------------------------------------------- /cipher/ctaes/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ctaes/README.md -------------------------------------------------------------------------------- /cipher/ctaes/bench.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ctaes/bench.c -------------------------------------------------------------------------------- /cipher/ctaes/ctaes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ctaes/ctaes.c -------------------------------------------------------------------------------- /cipher/ctaes/ctaes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ctaes/ctaes.h -------------------------------------------------------------------------------- /cipher/ctaes/test.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ctaes/test.c -------------------------------------------------------------------------------- /cipher/digest.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/digest.c -------------------------------------------------------------------------------- /cipher/digest.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/digest.h -------------------------------------------------------------------------------- /cipher/hmac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/hmac.c -------------------------------------------------------------------------------- /cipher/hmac.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/hmac.h -------------------------------------------------------------------------------- /cipher/md5.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/md5.c -------------------------------------------------------------------------------- /cipher/md5.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/md5.h -------------------------------------------------------------------------------- /cipher/md5key.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/md5key.cpp -------------------------------------------------------------------------------- /cipher/md5key.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/md5key.h -------------------------------------------------------------------------------- /cipher/pbkdf2_hmac.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/pbkdf2_hmac.c -------------------------------------------------------------------------------- /cipher/pbkdf2_hmac.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/pbkdf2_hmac.h -------------------------------------------------------------------------------- /cipher/rc4.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rc4.c -------------------------------------------------------------------------------- /cipher/rc4.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rc4.h -------------------------------------------------------------------------------- /cipher/ripemd160.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ripemd160.cpp -------------------------------------------------------------------------------- /cipher/ripemd160.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ripemd160.h -------------------------------------------------------------------------------- /cipher/rsa/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/Makefile -------------------------------------------------------------------------------- /cipher/rsa/Makefile.aix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/Makefile.aix -------------------------------------------------------------------------------- /cipher/rsa/Makefile.hp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/Makefile.hp -------------------------------------------------------------------------------- /cipher/rsa/Makefile.linux: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/Makefile.linux -------------------------------------------------------------------------------- /cipher/rsa/asn1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/asn1.c -------------------------------------------------------------------------------- /cipher/rsa/asn1.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/asn1.h -------------------------------------------------------------------------------- /cipher/rsa/base64.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/base64.c -------------------------------------------------------------------------------- /cipher/rsa/base64.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/base64.h -------------------------------------------------------------------------------- /cipher/rsa/bignum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/bignum.c -------------------------------------------------------------------------------- /cipher/rsa/bignum.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/bignum.h -------------------------------------------------------------------------------- /cipher/rsa/build_config.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/build_config.h -------------------------------------------------------------------------------- /cipher/rsa/common.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/common.c -------------------------------------------------------------------------------- /cipher/rsa/common.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/common.h -------------------------------------------------------------------------------- /cipher/rsa/includes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/includes.h -------------------------------------------------------------------------------- /cipher/rsa/libtommath.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/libtommath.c -------------------------------------------------------------------------------- /cipher/rsa/os.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/os.h -------------------------------------------------------------------------------- /cipher/rsa/os_unix.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/os_unix.c -------------------------------------------------------------------------------- /cipher/rsa/rsa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/rsa.c -------------------------------------------------------------------------------- /cipher/rsa/rsa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/rsa.h -------------------------------------------------------------------------------- /cipher/rsa/test_rsa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/test_rsa.c -------------------------------------------------------------------------------- /cipher/rsa/trace.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/trace.c -------------------------------------------------------------------------------- /cipher/rsa/trace.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/trace.h -------------------------------------------------------------------------------- /cipher/rsa/user_rsa.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/user_rsa.c -------------------------------------------------------------------------------- /cipher/rsa/user_rsa.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/user_rsa.h -------------------------------------------------------------------------------- /cipher/rsa/wpa_debug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/wpa_debug.c -------------------------------------------------------------------------------- /cipher/rsa/wpa_debug.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/wpa_debug.h -------------------------------------------------------------------------------- /cipher/rsa/wpabuf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/wpabuf.c -------------------------------------------------------------------------------- /cipher/rsa/wpabuf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/rsa/wpabuf.h -------------------------------------------------------------------------------- /cipher/sha.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha.c -------------------------------------------------------------------------------- /cipher/sha.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha.h -------------------------------------------------------------------------------- /cipher/sha1.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha1.c -------------------------------------------------------------------------------- /cipher/sha1.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha1.h -------------------------------------------------------------------------------- /cipher/sha224.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha224.c -------------------------------------------------------------------------------- /cipher/sha224.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha224.h -------------------------------------------------------------------------------- /cipher/sha256.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha256.c -------------------------------------------------------------------------------- /cipher/sha256.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha256.h -------------------------------------------------------------------------------- /cipher/sha384.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha384.c -------------------------------------------------------------------------------- /cipher/sha384.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha384.h -------------------------------------------------------------------------------- /cipher/sha512.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha512.c -------------------------------------------------------------------------------- /cipher/sha512.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/sha512.h -------------------------------------------------------------------------------- /cipher/ssh.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/ssh.h -------------------------------------------------------------------------------- /cipher/tdes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/tdes.c -------------------------------------------------------------------------------- /cipher/tdes.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/tdes.h -------------------------------------------------------------------------------- /cipher/tea.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/tea.c -------------------------------------------------------------------------------- /cipher/tea.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/tea.h -------------------------------------------------------------------------------- /cipher/unittest/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/unittest/Makefile -------------------------------------------------------------------------------- /cipher/unittest/cipher_unittest.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/unittest/cipher_unittest.cpp -------------------------------------------------------------------------------- /cipher/unittest/ut/test_harness.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/unittest/ut/test_harness.cpp -------------------------------------------------------------------------------- /cipher/unittest/ut/test_harness.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mygityf/cipher/HEAD/cipher/unittest/ut/test_harness.h --------------------------------------------------------------------------------