├── .clang-format ├── .github └── workflows │ └── docker-run.yml ├── .gitignore ├── .gitmodules ├── .vscode ├── arduino.json ├── c_cpp_properties.json └── settings.json ├── CHANGELOG.md ├── CMakeLists.txt ├── LICENSE ├── Makefile ├── README.md ├── build.sh ├── components └── hap │ ├── component.mk │ ├── include │ └── hap.h │ ├── src │ ├── accessories.c │ ├── accessories.h │ ├── advertise.c │ ├── advertise.h │ ├── chacha20_poly1305.c │ ├── chacha20_poly1305.h │ ├── concat.c │ ├── concat.h │ ├── curve25519.c │ ├── curve25519.h │ ├── ed25519.c │ ├── ed25519.h │ ├── hap.c │ ├── hap_internal.h │ ├── hkdf.c │ ├── hkdf.h │ ├── httpd.c │ ├── httpd.h │ ├── iosdevice.c │ ├── iosdevice.h │ ├── list.h │ ├── mongoose.c │ ├── mongoose.h │ ├── nvs.c │ ├── nvs.h │ ├── pair_error.c │ ├── pair_error.h │ ├── pair_setup.c │ ├── pair_setup.h │ ├── pair_verify.c │ ├── pair_verify.h │ ├── pairings.c │ ├── pairings.h │ ├── srp.c │ ├── srp.h │ ├── tlv.c │ └── tlv.h │ └── wolfssl │ ├── .cproject │ ├── .gitignore │ ├── .project │ ├── AUTHORS │ ├── COPYING │ ├── ChangeLog │ ├── IDE │ ├── ARDUINO │ │ ├── README.md │ │ ├── include.am │ │ ├── sketches │ │ │ └── wolfssl_client │ │ │ │ └── wolfssl_client.ino │ │ └── wolfssl-arduino.sh │ ├── IAR-EWARM │ │ ├── Projects │ │ │ ├── benchmark │ │ │ │ ├── benchmark-main.c │ │ │ │ ├── current_time.c │ │ │ │ ├── wolfCrypt-benchmark.ewd │ │ │ │ └── wolfCrypt-benchmark.ewp │ │ │ ├── common │ │ │ │ ├── minimum-startup.c │ │ │ │ └── wolfssl.icf │ │ │ ├── lib │ │ │ │ ├── wolfSSL-Lib.ewd │ │ │ │ └── wolfSSL-Lib.ewp │ │ │ ├── test │ │ │ │ ├── test-main.c │ │ │ │ ├── wolfCrypt-test.ewd │ │ │ │ └── wolfCrypt-test.ewp │ │ │ ├── user_settings.h │ │ │ └── wolfssl.eww │ │ ├── README │ │ └── embOS │ │ │ ├── .gitignore │ │ │ ├── README │ │ │ ├── SAMV71_XULT │ │ │ ├── README_SAMV71 │ │ │ ├── embOS_SAMV71_XULT_Linker_Script │ │ │ │ └── samv71q21_wolfssl.icf │ │ │ ├── embOS_SAMV71_XULT_user_settings │ │ │ │ ├── user_settings.h │ │ │ │ ├── user_settings_simple_example.h │ │ │ │ └── user_settings_verbose_example.h │ │ │ ├── embOS_wolfcrypt_benchmark_SAMV71_XULT │ │ │ │ ├── Application │ │ │ │ │ └── runBenchmarks.c │ │ │ │ ├── README_wolfcrypt_benchmark │ │ │ │ ├── settings │ │ │ │ │ └── wolfcrypt_benchmark_Debug.jlink │ │ │ │ ├── wolfcrypt_benchmark.ewd │ │ │ │ ├── wolfcrypt_benchmark.ewp │ │ │ │ └── wolfcrypt_benchmark.ewt │ │ │ ├── embOS_wolfcrypt_lib_SAMV71_XULT │ │ │ │ ├── README_wolfcrypt_lib │ │ │ │ ├── wolfcrypt_lib.ewd │ │ │ │ ├── wolfcrypt_lib.ewp │ │ │ │ └── wolfcrypt_lib.ewt │ │ │ └── embOS_wolfcrypt_test_SAMV71_XULT │ │ │ │ ├── Application │ │ │ │ └── runWolfcryptTests.c │ │ │ │ ├── README_wolfcrypt_test │ │ │ │ ├── settings │ │ │ │ └── wolfcrypt_test_Debug.jlink │ │ │ │ ├── wolfcrypt_test.ewd │ │ │ │ ├── wolfcrypt_test.ewp │ │ │ │ └── wolfcrypt_test.ewt │ │ │ ├── custom_port │ │ │ ├── README_custom_port │ │ │ ├── custom_port_Linker_Script │ │ │ │ └── samv71q21_wolfssl.icf │ │ │ ├── custom_port_user_settings │ │ │ │ └── user_settings.h │ │ │ ├── wolfcrypt_benchmark_custom_port │ │ │ │ └── Application │ │ │ │ │ └── runBenchmarks.c │ │ │ └── wolfcrypt_test_custom_port │ │ │ │ └── Application │ │ │ │ └── runWolfcryptTests.c │ │ │ └── extract_trial_here │ │ │ └── README_extract_trial_here │ ├── LPCXPRESSO │ │ ├── README.md │ │ ├── lib_wolfssl │ │ │ ├── lpc_18xx_port.c │ │ │ └── user_settings.h │ │ └── wolf_example │ │ │ ├── .cproject │ │ │ ├── .project │ │ │ ├── readme.txt │ │ │ └── src │ │ │ ├── lpc_18xx_startup.c │ │ │ └── wolfssl_example.c │ ├── MDK-ARM │ │ ├── LPC43xx │ │ │ └── time-LCP43xx.c │ │ ├── MDK-ARM │ │ │ └── wolfSSL │ │ │ │ ├── Retarget.c │ │ │ │ ├── cert_data.c │ │ │ │ ├── cert_data.h │ │ │ │ ├── main.c │ │ │ │ ├── shell.c │ │ │ │ ├── time-CortexM3-4.c │ │ │ │ ├── time-dummy.c │ │ │ │ ├── wolfssl_MDK_ARM.c │ │ │ │ └── wolfssl_MDK_ARM.h │ │ └── STM32F2xx_StdPeriph_Lib │ │ │ └── time-STM32F2xx.c │ ├── MDK5-ARM │ │ ├── Conf │ │ │ └── user_settings.h │ │ ├── Inc │ │ │ └── wolfssl_MDK_ARM.h │ │ ├── Projects │ │ │ ├── CryptBenchmark │ │ │ │ ├── Abstract.txt │ │ │ │ ├── CryptBenchmark.uvoptx │ │ │ │ ├── CryptBenchmark.uvprojx │ │ │ │ ├── RTE │ │ │ │ │ └── wolfSSL │ │ │ │ │ │ └── user_settings.h │ │ │ │ ├── main.c │ │ │ │ └── time-CortexM3-4.c │ │ │ ├── CryptTest │ │ │ │ ├── Abstract.txt │ │ │ │ ├── CryptTest.uvoptx │ │ │ │ ├── CryptTest.uvprojx │ │ │ │ ├── RTE │ │ │ │ │ └── wolfSSL │ │ │ │ │ │ └── user_settings.h │ │ │ │ └── main.c │ │ │ ├── EchoClient │ │ │ │ ├── Abstract.txt │ │ │ │ ├── EchoClient.uvoptx │ │ │ │ ├── EchoClient.uvprojx │ │ │ │ ├── RTE │ │ │ │ │ └── wolfSSL │ │ │ │ │ │ └── user_settings.h │ │ │ │ └── main.c │ │ │ ├── EchoServer │ │ │ │ ├── Abstract.txt │ │ │ │ ├── EchoServer.uvoptx │ │ │ │ ├── EchoServer.uvprojx │ │ │ │ ├── RTE │ │ │ │ │ └── wolfSSL │ │ │ │ │ │ └── user_settings.h │ │ │ │ └── main.c │ │ │ ├── SimpleClient │ │ │ │ ├── Abstract.txt │ │ │ │ ├── RTE │ │ │ │ │ └── wolfSSL │ │ │ │ │ │ └── user_settings.h │ │ │ │ ├── SimpleClient.uvoptx │ │ │ │ ├── main.c │ │ │ │ ├── simpleClient.uvprojx │ │ │ │ └── time-CortexM3-4.c │ │ │ ├── SimpleServer │ │ │ │ ├── Abstract.txt │ │ │ │ ├── RTE │ │ │ │ │ └── wolfSSL │ │ │ │ │ │ └── user_settings.h │ │ │ │ ├── SimpleServer.uvoptx │ │ │ │ ├── SimpleServer.uvprojx │ │ │ │ └── main.c │ │ │ ├── wolfSSL-Full │ │ │ │ ├── Abstract.txt │ │ │ │ ├── RTE │ │ │ │ │ └── wolfSSL │ │ │ │ │ │ └── user_settings.h │ │ │ │ ├── main.c │ │ │ │ ├── shell.c │ │ │ │ ├── time-CortexM3-4.c │ │ │ │ ├── wolfsslFull.uvoptx │ │ │ │ └── wolfsslFull.uvprojx │ │ │ └── wolfSSL-Lib │ │ │ │ ├── RTE │ │ │ │ └── wolfSSL │ │ │ │ │ └── user_settings.h │ │ │ │ ├── wolfSSL-Lib.uvoptx │ │ │ │ └── wolfSSL-Lib.uvprojx │ │ └── Src │ │ │ └── ssl-dummy.c │ ├── MYSQL │ │ ├── CMakeLists_wolfCrypt.txt │ │ ├── CMakeLists_wolfSSL.txt │ │ └── do.sh │ ├── ROWLEY-CROSSWORKS-ARM │ │ ├── Kinetis_FlashPlacement.xml │ │ ├── README.md │ │ ├── arm_startup.c │ │ ├── benchmark_main.c │ │ ├── hw.h │ │ ├── include.am │ │ ├── kinetis_hw.c │ │ ├── retarget.c │ │ ├── test_main.c │ │ ├── user_settings.h │ │ ├── wolfssl.hzp │ │ └── wolfssl_ltc.hzp │ ├── WIN-SGX │ │ ├── ReadMe.txt │ │ ├── include.am │ │ ├── wolfSSL_SGX.edl │ │ ├── wolfSSL_SGX.sln │ │ ├── wolfSSL_SGX.vcxproj │ │ └── wolfSSL_SGX.vcxproj.filters │ ├── WIN │ │ ├── README.txt │ │ ├── include.am │ │ ├── test.vcxproj │ │ ├── user_settings.h │ │ ├── wolfssl-fips.sln │ │ └── wolfssl-fips.vcxproj │ ├── WORKBENCH │ │ ├── README.md │ │ └── include.am │ ├── iOS │ │ ├── README.md │ │ ├── include.am │ │ ├── user_settings.h │ │ ├── wolfssl-FIPS.xcodeproj │ │ │ └── project.pbxproj │ │ ├── wolfssl.xcodeproj │ │ │ └── project.pbxproj │ │ └── wolfssl_testsuite.xcodeproj │ │ │ └── project.pbxproj │ └── include.am │ ├── INSTALL │ ├── IPP │ └── .gitkeep │ ├── LICENSING │ ├── Makefile.am │ ├── NEWS │ ├── README │ ├── README.md │ ├── SCRIPTS-LIST │ ├── Vagrantfile │ ├── autogen.sh │ ├── certs │ ├── 1024 │ │ ├── ca-cert.der │ │ ├── ca-cert.pem │ │ ├── ca-key.der │ │ ├── ca-key.pem │ │ ├── client-cert.der │ │ ├── client-cert.pem │ │ ├── client-key.der │ │ ├── client-key.pem │ │ ├── client-keyPub.der │ │ ├── dh1024.der │ │ ├── dh1024.pem │ │ ├── dsa1024.der │ │ ├── dsa1024.pem │ │ ├── include.am │ │ ├── rsa1024.der │ │ ├── server-cert.der │ │ ├── server-cert.pem │ │ ├── server-key.der │ │ └── server-key.pem │ ├── ca-cert.der │ ├── ca-cert.pem │ ├── ca-key.der │ ├── ca-key.pem │ ├── client-ca.pem │ ├── client-cert.der │ ├── client-cert.pem │ ├── client-ecc-cert.der │ ├── client-ecc-cert.pem │ ├── client-key.der │ ├── client-key.pem │ ├── client-keyEnc.pem │ ├── client-keyPub.der │ ├── crl │ │ ├── cliCrl.pem │ │ ├── crl.pem │ │ ├── crl.revoked │ │ ├── eccCliCRL.pem │ │ ├── eccSrvCRL.pem │ │ ├── gencrls.sh │ │ └── include.am │ ├── dh2048.der │ ├── dh2048.pem │ ├── dsa2048.der │ ├── dsaparams.pem │ ├── ecc-client-key.der │ ├── ecc-client-key.pem │ ├── ecc-client-keyPub.der │ ├── ecc-client-keyPub.pem │ ├── ecc-key-comp.pem │ ├── ecc-keyPkcs8.pem │ ├── ecc-keyPkcs8Enc.pem │ ├── ecc-keyPub.der │ ├── external │ │ ├── ca-globalsign-root-r2.pem │ │ ├── ca-verisign-g5.pem │ │ └── include.am │ ├── gen_revoked.sh │ ├── include.am │ ├── ocsp │ │ ├── include.am │ │ ├── index0.txt │ │ ├── index1.txt │ │ ├── index2.txt │ │ ├── index3.txt │ │ ├── intermediate1-ca-cert.pem │ │ ├── intermediate1-ca-key.pem │ │ ├── intermediate2-ca-cert.pem │ │ ├── intermediate2-ca-key.pem │ │ ├── intermediate3-ca-cert.pem │ │ ├── intermediate3-ca-key.pem │ │ ├── ocsp-responder-cert.pem │ │ ├── ocsp-responder-key.pem │ │ ├── ocspd0.sh │ │ ├── ocspd1.sh │ │ ├── ocspd2.sh │ │ ├── ocspd3.sh │ │ ├── openssl.cnf │ │ ├── renewcerts.sh │ │ ├── root-ca-cert.pem │ │ ├── root-ca-key.pem │ │ ├── server1-cert.pem │ │ ├── server1-key.pem │ │ ├── server2-cert.pem │ │ ├── server2-key.pem │ │ ├── server3-cert.pem │ │ ├── server3-key.pem │ │ ├── server4-cert.pem │ │ ├── server4-key.pem │ │ ├── server5-cert.pem │ │ └── server5-key.pem │ ├── renewcerts.sh │ ├── renewcerts │ │ └── wolfssl.cnf │ ├── rsa2048.der │ ├── server-cert-chain.der │ ├── server-cert.der │ ├── server-cert.pem │ ├── server-ecc-comp.der │ ├── server-ecc-comp.pem │ ├── server-ecc-rsa.der │ ├── server-ecc-rsa.pem │ ├── server-ecc.der │ ├── server-ecc.pem │ ├── server-key.der │ ├── server-key.pem │ ├── server-keyEnc.pem │ ├── server-keyPkcs8.pem │ ├── server-keyPkcs8Enc.pem │ ├── server-keyPkcs8Enc12.pem │ ├── server-keyPkcs8Enc2.pem │ ├── server-revoked-cert.pem │ ├── server-revoked-key.pem │ ├── taoCert.txt │ ├── test-pathlen │ │ ├── assemble-chains.sh │ │ ├── include.am │ │ ├── server-0-1-ca.pem │ │ ├── server-0-1-cert.pem │ │ ├── server-0-1-chain.pem │ │ ├── server-0-ca.pem │ │ ├── server-0-cert.pem │ │ ├── server-0-chain.pem │ │ ├── server-1-0-ca.pem │ │ ├── server-1-0-cert.pem │ │ ├── server-1-0-chain.pem │ │ ├── server-1-ca.pem │ │ ├── server-1-cert.pem │ │ ├── server-1-chain.pem │ │ ├── server-127-ca.pem │ │ ├── server-127-cert.pem │ │ ├── server-127-chain.pem │ │ ├── server-128-ca.pem │ │ ├── server-128-cert.pem │ │ └── server-128-chain.pem │ ├── test-servercert.p12 │ ├── test │ │ ├── catalog.txt │ │ ├── crit-cert.pem │ │ ├── crit-key.pem │ │ ├── dh1024.der │ │ ├── dh1024.pem │ │ ├── dh512.der │ │ ├── dh512.pem │ │ ├── digsigku.pem │ │ ├── expired-ca.pem │ │ ├── expired-cert.pem │ │ └── expired-key.pem │ └── wolfssl-website-ca.pem │ ├── commit-tests.sh │ ├── component.mk │ ├── ctaocrypt │ ├── ctaocrypt.sln │ ├── ctaocrypt.vcproj │ └── src │ │ ├── aes.c │ │ ├── des3.c │ │ ├── hmac.c │ │ ├── misc.c │ │ ├── random.c │ │ ├── rsa.c │ │ ├── sha.c │ │ ├── sha256.c │ │ ├── sha512.c │ │ ├── wolfcrypt_first.c │ │ └── wolfcrypt_last.c │ ├── cyassl │ ├── callbacks.h │ ├── certs_test.h │ ├── crl.h │ ├── ctaocrypt │ │ ├── aes.h │ │ ├── arc4.h │ │ ├── asn.h │ │ ├── asn_public.h │ │ ├── blake2-impl.h │ │ ├── blake2-int.h │ │ ├── blake2.h │ │ ├── camellia.h │ │ ├── chacha.h │ │ ├── coding.h │ │ ├── compress.h │ │ ├── des3.h │ │ ├── dh.h │ │ ├── dsa.h │ │ ├── ecc.h │ │ ├── error-crypt.h │ │ ├── fips_test.h │ │ ├── hc128.h │ │ ├── hmac.h │ │ ├── include.am │ │ ├── integer.h │ │ ├── logging.h │ │ ├── md2.h │ │ ├── md4.h │ │ ├── md5.h │ │ ├── memory.h │ │ ├── misc.h │ │ ├── mpi_class.h │ │ ├── mpi_superclass.h │ │ ├── pkcs7.h │ │ ├── poly1305.h │ │ ├── port │ │ │ └── pic32 │ │ │ │ └── pic32mz-crypt.h │ │ ├── pwdbased.h │ │ ├── rabbit.h │ │ ├── random.h │ │ ├── ripemd.h │ │ ├── rsa.h │ │ ├── settings.h │ │ ├── settings_comp.h │ │ ├── sha.h │ │ ├── sha256.h │ │ ├── sha512.h │ │ ├── tfm.h │ │ ├── types.h │ │ ├── visibility.h │ │ └── wc_port.h │ ├── error-ssl.h │ ├── include.am │ ├── internal.h │ ├── ocsp.h │ ├── openssl │ │ ├── asn1.h │ │ ├── bio.h │ │ ├── bn.h │ │ ├── conf.h │ │ ├── crypto.h │ │ ├── des.h │ │ ├── dh.h │ │ ├── dsa.h │ │ ├── ec.h │ │ ├── ec25519.h │ │ ├── ecdh.h │ │ ├── ecdsa.h │ │ ├── ed25519.h │ │ ├── engine.h │ │ ├── err.h │ │ ├── evp.h │ │ ├── hmac.h │ │ ├── include.am │ │ ├── lhash.h │ │ ├── md4.h │ │ ├── md5.h │ │ ├── ocsp.h │ │ ├── opensslconf.h │ │ ├── opensslv.h │ │ ├── ossl_typ.h │ │ ├── pem.h │ │ ├── pkcs12.h │ │ ├── rand.h │ │ ├── ripemd.h │ │ ├── rsa.h │ │ ├── sha.h │ │ ├── ssl.h │ │ ├── stack.h │ │ ├── ui.h │ │ ├── x509.h │ │ └── x509v3.h │ ├── options.h.in │ ├── sniffer.h │ ├── sniffer_error.h │ ├── sniffer_error.rc │ ├── ssl.h │ ├── test.h │ ├── version.h │ └── version.h.in │ ├── doc │ ├── README.txt │ └── include.am │ ├── examples │ ├── client │ │ ├── client-ntru.vcproj │ │ ├── client.c │ │ ├── client.h │ │ ├── client.sln │ │ ├── client.vcproj │ │ ├── client.vcxproj │ │ └── include.am │ ├── echoclient │ │ ├── echoclient-ntru.vcproj │ │ ├── echoclient.c │ │ ├── echoclient.h │ │ ├── echoclient.sln │ │ ├── echoclient.vcproj │ │ ├── echoclient.vcxproj │ │ ├── include.am │ │ └── quit │ ├── echoserver │ │ ├── echoserver-ntru.vcproj │ │ ├── echoserver.c │ │ ├── echoserver.h │ │ ├── echoserver.sln │ │ ├── echoserver.vcproj │ │ ├── echoserver.vcxproj │ │ └── include.am │ ├── include.am │ ├── sctp │ │ ├── include.am │ │ ├── sctp-client-dtls.c │ │ ├── sctp-client.c │ │ ├── sctp-server-dtls.c │ │ └── sctp-server.c │ └── server │ │ ├── include.am │ │ ├── server-ntru.vcproj │ │ ├── server.c │ │ ├── server.h │ │ ├── server.sln │ │ ├── server.vcproj │ │ └── server.vcxproj │ ├── fips-check.sh │ ├── gencertbuf.pl │ ├── input │ ├── lib │ └── dummy │ ├── m4 │ ├── ax_add_am_macro.m4 │ ├── ax_am_jobserver.m4 │ ├── ax_am_macros.m4 │ ├── ax_append_compile_flags.m4 │ ├── ax_append_flag.m4 │ ├── ax_append_link_flags.m4 │ ├── ax_append_to_file.m4 │ ├── ax_check_compile_flag.m4 │ ├── ax_check_library.m4 │ ├── ax_check_link_flag.m4 │ ├── ax_compiler_version.m4 │ ├── ax_count_cpus.m4 │ ├── ax_create_generic_config.m4 │ ├── ax_debug.m4 │ ├── ax_file_escapes.m4 │ ├── ax_harden_compiler_flags.m4 │ ├── ax_print_to_file.m4 │ ├── ax_pthread.m4 │ ├── ax_tls.m4 │ ├── ax_vcs_checkout.m4 │ ├── hexversion.m4 │ ├── lib_socket_nsl.m4 │ ├── require_canonical.m4 │ ├── visibility.m4 │ └── wolfssl_darwin_clang.m4 │ ├── mcapi │ ├── PIC32MZ-serial.h │ ├── README │ ├── crypto.c │ ├── crypto.h │ ├── include.am │ ├── mcapi_test.c │ ├── wolfcrypt_mcapi.X │ │ └── nbproject │ │ │ ├── include.am │ │ │ └── project.xml │ ├── wolfcrypt_test.X │ │ └── nbproject │ │ │ ├── include.am │ │ │ └── project.xml │ ├── wolfssl.X │ │ └── nbproject │ │ │ ├── include.am │ │ │ └── project.xml │ └── zlib.X │ │ └── nbproject │ │ ├── include.am │ │ └── project.xml │ ├── mplabx │ ├── PIC32MZ-serial.h │ ├── README │ ├── benchmark_main.c │ ├── include.am │ ├── test_main.c │ ├── wolfcrypt_benchmark.X │ │ └── nbproject │ │ │ ├── include.am │ │ │ └── project.xml │ ├── wolfcrypt_test.X │ │ └── nbproject │ │ │ ├── include.am │ │ │ └── project.xml │ └── wolfssl.X │ │ └── nbproject │ │ ├── include.am │ │ └── project.xml │ ├── mqx │ ├── README │ ├── util_lib │ │ ├── .cproject │ │ ├── .project │ │ └── Sources │ │ │ ├── include.am │ │ │ ├── util.c │ │ │ └── util.h │ ├── wolfcrypt_benchmark │ │ ├── .cproject │ │ ├── .project │ │ ├── Debugger │ │ │ ├── K70FN1M0.mem │ │ │ ├── init_kinetis.tcl │ │ │ └── mass_erase_kinetis.tcl │ │ ├── ReferencedRSESystems.xml │ │ ├── Sources │ │ │ ├── include.am │ │ │ ├── main.c │ │ │ └── main.h │ │ ├── wolfcrypt_benchmark_twrk70f120m_Int_Flash_DDRData_Debug_PnE_U-MultiLink.launch │ │ ├── wolfcrypt_benchmark_twrk70f120m_Int_Flash_DDRData_Release_PnE_U-MultiLink.launch │ │ ├── wolfcrypt_benchmark_twrk70f120m_Int_Flash_SramData_Debug_JTrace.jlink │ │ ├── wolfcrypt_benchmark_twrk70f120m_Int_Flash_SramData_Debug_JTrace.launch │ │ ├── wolfcrypt_benchmark_twrk70f120m_Int_Flash_SramData_Debug_PnE_U-MultiLink.launch │ │ └── wolfcrypt_benchmark_twrk70f120m_Int_Flash_SramData_Release_PnE_U-MultiLink.launch │ ├── wolfcrypt_test │ │ ├── .cproject │ │ ├── .project │ │ ├── Debugger │ │ │ ├── K70FN1M0.mem │ │ │ ├── init_kinetis.tcl │ │ │ └── mass_erase_kinetis.tcl │ │ ├── ReferencedRSESystems.xml │ │ ├── Sources │ │ │ ├── include.am │ │ │ ├── main.c │ │ │ └── main.h │ │ ├── wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Debug_PnE_U-MultiLink.launch │ │ ├── wolfcrypt_test_twrk70f120m_Int_Flash_DDRData_Release_PnE_U-MultiLink.launch │ │ ├── wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_JTrace.jlink │ │ ├── wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_JTrace.launch │ │ ├── wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_PnE_U-MultiLink.launch │ │ └── wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Release_PnE_U-MultiLink.launch │ ├── wolfssl │ │ ├── .cproject │ │ ├── .project │ │ └── include.am │ └── wolfssl_client │ │ ├── .cproject │ │ ├── .project │ │ ├── Debugger │ │ ├── K70FN1M0.mem │ │ ├── init_kinetis.tcl │ │ └── mass_erase_kinetis.tcl │ │ ├── ReferencedRSESystems.xml │ │ ├── Sources │ │ ├── include.am │ │ ├── main.c │ │ └── main.h │ │ ├── wolfssl_client_twrk70f120m_Int_Flash_DDRData_Debug_PnE_U-MultiLink.launch │ │ ├── wolfssl_client_twrk70f120m_Int_Flash_DDRData_Release_PnE_U-MultiLink.launch │ │ ├── wolfssl_client_twrk70f120m_Int_Flash_SramData_Debug_JTrace.jlink │ │ ├── wolfssl_client_twrk70f120m_Int_Flash_SramData_Debug_JTrace.launch │ │ ├── wolfssl_client_twrk70f120m_Int_Flash_SramData_Debug_PnE_U-MultiLink.launch │ │ └── wolfssl_client_twrk70f120m_Int_Flash_SramData_Release_PnE_U-MultiLink.launch │ ├── pre-commit.sh │ ├── pre-push.sh │ ├── pull_to_vagrant.sh │ ├── quit │ ├── rpm │ ├── include.am │ └── spec.in │ ├── scripts │ ├── benchmark.test │ ├── crl-revoked.test │ ├── external.test │ ├── google.test │ ├── include.am │ ├── ocsp-stapling.test │ ├── ocsp-stapling2.test │ ├── ocsp.test │ ├── openssl.test │ ├── ping.test │ ├── pkcallbacks.test │ ├── psk.test │ ├── resume.test │ ├── sniffer-testsuite.test │ ├── testsuite.pcap │ └── trusted_peer.test │ ├── src │ ├── bio.c │ ├── crl.c │ ├── include.am │ ├── internal.c │ ├── io.c │ ├── keys.c │ ├── ocsp.c │ ├── sniffer.c │ ├── ssl.c │ └── tls.c │ ├── sslSniffer │ ├── sslSniffer.vcproj │ ├── sslSniffer.vcxproj │ └── sslSnifferTest │ │ ├── include.am │ │ ├── snifftest.c │ │ └── sslSniffTest.vcproj │ ├── stamp-h.in │ ├── support │ ├── include.am │ ├── wolfssl.pc │ └── wolfssl.pc.in │ ├── swig │ ├── PythonBuild.sh │ ├── README │ ├── include.am │ ├── pbkdf_pkcs12.py │ ├── pbkdf_pkcs12_test.py │ ├── python_wolfssl.vcproj │ ├── rsasign.py │ ├── runme.py │ ├── wolfssl.i │ └── wolfssl_adds.c │ ├── tests │ ├── CONF_FILES_README.md │ ├── README │ ├── api.c │ ├── hash.c │ ├── include.am │ ├── srp.c │ ├── suites.c │ ├── test-dtls.conf │ ├── test-psk-no-id.conf │ ├── test-qsh.conf │ ├── test-sctp.conf │ ├── test-sig.conf │ ├── test.conf │ ├── unit.c │ └── unit.h │ ├── testsuite │ ├── include.am │ ├── testsuite-ntru.vcproj │ ├── testsuite.c │ ├── testsuite.sln │ ├── testsuite.vcproj │ └── testsuite.vcxproj │ ├── tirtos │ ├── .gitignore │ ├── README │ ├── include.am │ ├── packages │ │ └── ti │ │ │ └── net │ │ │ └── wolfssl │ │ │ ├── package.bld │ │ │ ├── package.xdc │ │ │ ├── package.xs │ │ │ └── tests │ │ │ └── EK_TM4C1294XL │ │ │ └── wolfcrypt │ │ │ ├── benchmark │ │ │ ├── TM4C1294NC.icf │ │ │ ├── benchmark.cfg │ │ │ ├── main.c │ │ │ ├── package.bld.hide │ │ │ └── package.xdc │ │ │ └── test │ │ │ ├── TM4C1294NC.icf │ │ │ ├── main.c │ │ │ ├── package.bld.hide │ │ │ ├── package.xdc │ │ │ └── test.cfg │ ├── products.mak │ ├── wolfssl.bld │ └── wolfssl.mak │ ├── valgrind-error.sh │ ├── wnr-example.conf │ ├── wolfcrypt │ ├── benchmark │ │ ├── benchmark.c │ │ ├── benchmark.h │ │ ├── benchmark.sln │ │ ├── benchmark.vcproj │ │ └── include.am │ ├── src │ │ ├── aes.c │ │ ├── aes_asm.asm │ │ ├── aes_asm.s │ │ ├── arc4.c │ │ ├── asm.c │ │ ├── asn.c │ │ ├── blake2b.c │ │ ├── camellia.c │ │ ├── chacha.c │ │ ├── chacha20_poly1305.c │ │ ├── cmac.c │ │ ├── coding.c │ │ ├── compress.c │ │ ├── curve25519.c │ │ ├── des3.c │ │ ├── dh.c │ │ ├── dsa.c │ │ ├── ecc.c │ │ ├── ecc_fp.c │ │ ├── ed25519.c │ │ ├── error.c │ │ ├── evp.c │ │ ├── fe_low_mem.c │ │ ├── fe_operations.c │ │ ├── fp_mont_small.i │ │ ├── fp_mul_comba_12.i │ │ ├── fp_mul_comba_17.i │ │ ├── fp_mul_comba_20.i │ │ ├── fp_mul_comba_24.i │ │ ├── fp_mul_comba_28.i │ │ ├── fp_mul_comba_3.i │ │ ├── fp_mul_comba_32.i │ │ ├── fp_mul_comba_4.i │ │ ├── fp_mul_comba_48.i │ │ ├── fp_mul_comba_6.i │ │ ├── fp_mul_comba_64.i │ │ ├── fp_mul_comba_7.i │ │ ├── fp_mul_comba_8.i │ │ ├── fp_mul_comba_9.i │ │ ├── fp_mul_comba_small_set.i │ │ ├── fp_sqr_comba_12.i │ │ ├── fp_sqr_comba_17.i │ │ ├── fp_sqr_comba_20.i │ │ ├── fp_sqr_comba_24.i │ │ ├── fp_sqr_comba_28.i │ │ ├── fp_sqr_comba_3.i │ │ ├── fp_sqr_comba_32.i │ │ ├── fp_sqr_comba_4.i │ │ ├── fp_sqr_comba_48.i │ │ ├── fp_sqr_comba_6.i │ │ ├── fp_sqr_comba_64.i │ │ ├── fp_sqr_comba_7.i │ │ ├── fp_sqr_comba_8.i │ │ ├── fp_sqr_comba_9.i │ │ ├── fp_sqr_comba_small_set.i │ │ ├── ge_low_mem.c │ │ ├── ge_operations.c │ │ ├── hash.c │ │ ├── hc128.c │ │ ├── hmac.c │ │ ├── idea.c │ │ ├── include.am │ │ ├── integer.c │ │ ├── logging.c │ │ ├── md2.c │ │ ├── md4.c │ │ ├── md5.c │ │ ├── memory.c │ │ ├── misc.c │ │ ├── pkcs12.c │ │ ├── pkcs7.c │ │ ├── poly1305.c │ │ ├── port │ │ │ ├── arm │ │ │ │ ├── armv8-aes.c │ │ │ │ └── armv8-sha256.c │ │ │ ├── atmel │ │ │ │ ├── README.md │ │ │ │ └── atmel.c │ │ │ ├── cavium │ │ │ │ ├── README.md │ │ │ │ └── cavium_nitrox.c │ │ │ ├── nrf51.c │ │ │ ├── nxp │ │ │ │ └── ksdk_port.c │ │ │ ├── pic32 │ │ │ │ └── pic32mz-hash.c │ │ │ └── ti │ │ │ │ ├── ti-aes.c │ │ │ │ ├── ti-ccm.c │ │ │ │ ├── ti-des3.c │ │ │ │ └── ti-hash.c │ │ ├── pwdbased.c │ │ ├── rabbit.c │ │ ├── random.c │ │ ├── ripemd.c │ │ ├── rsa.c │ │ ├── sha.c │ │ ├── sha256.c │ │ ├── sha512.c │ │ ├── signature.c │ │ ├── srp.c │ │ ├── tfm.c │ │ ├── wc_encrypt.c │ │ ├── wc_port.c │ │ ├── wolfevent.c │ │ └── wolfmath.c │ ├── test │ │ ├── include.am │ │ ├── test.c │ │ ├── test.h │ │ ├── test.sln │ │ └── test.vcproj │ └── user-crypto │ │ ├── Makefile.am │ │ ├── README.txt │ │ ├── autogen.sh │ │ ├── include.am │ │ ├── include │ │ └── user_rsa.h │ │ ├── lib │ │ └── .gitkeep │ │ └── src │ │ └── rsa.c │ ├── wolfssl-ntru.sln │ ├── wolfssl-ntru.vcproj │ ├── wolfssl.sln │ ├── wolfssl.vcproj │ ├── wolfssl.vcxproj │ ├── wolfssl │ ├── callbacks.h │ ├── certs_test.h │ ├── crl.h │ ├── error-ssl.h │ ├── include.am │ ├── internal.h │ ├── ocsp.h │ ├── openssl │ │ ├── aes.h │ │ ├── asn1.h │ │ ├── bio.h │ │ ├── bn.h │ │ ├── conf.h │ │ ├── crypto.h │ │ ├── des.h │ │ ├── dh.h │ │ ├── dsa.h │ │ ├── ec.h │ │ ├── ec25519.h │ │ ├── ecdh.h │ │ ├── ecdsa.h │ │ ├── ed25519.h │ │ ├── engine.h │ │ ├── err.h │ │ ├── evp.h │ │ ├── hmac.h │ │ ├── include.am │ │ ├── lhash.h │ │ ├── md4.h │ │ ├── md5.h │ │ ├── ocsp.h │ │ ├── opensslconf.h │ │ ├── opensslv.h │ │ ├── ossl_typ.h │ │ ├── pem.h │ │ ├── pkcs12.h │ │ ├── rand.h │ │ ├── ripemd.h │ │ ├── rsa.h │ │ ├── sha.h │ │ ├── ssl.h │ │ ├── stack.h │ │ ├── ui.h │ │ ├── x509.h │ │ └── x509v3.h │ ├── options.h.in │ ├── sniffer.h │ ├── sniffer_error.h │ ├── sniffer_error.rc │ ├── ssl.h │ ├── test.h │ ├── version.h │ ├── version.h.in │ └── wolfcrypt │ │ ├── aes.h │ │ ├── arc4.h │ │ ├── asn.h │ │ ├── asn_public.h │ │ ├── blake2-impl.h │ │ ├── blake2-int.h │ │ ├── blake2.h │ │ ├── camellia.h │ │ ├── chacha.h │ │ ├── chacha20_poly1305.h │ │ ├── cmac.h │ │ ├── coding.h │ │ ├── compress.h │ │ ├── curve25519.h │ │ ├── des3.h │ │ ├── dh.h │ │ ├── dsa.h │ │ ├── ecc.h │ │ ├── ed25519.h │ │ ├── error-crypt.h │ │ ├── fe_operations.h │ │ ├── fips_test.h │ │ ├── ge_operations.h │ │ ├── hash.h │ │ ├── hc128.h │ │ ├── hmac.h │ │ ├── idea.h │ │ ├── include.am │ │ ├── integer.h │ │ ├── logging.h │ │ ├── md2.h │ │ ├── md4.h │ │ ├── md5.h │ │ ├── mem_track.h │ │ ├── memory.h │ │ ├── misc.h │ │ ├── mpi_class.h │ │ ├── mpi_superclass.h │ │ ├── pkcs12.h │ │ ├── pkcs7.h │ │ ├── poly1305.h │ │ ├── port │ │ ├── atmel │ │ │ └── atmel.h │ │ ├── cavium │ │ │ └── cavium_nitrox.h │ │ ├── nrf51.h │ │ ├── nxp │ │ │ └── ksdk_port.h │ │ ├── pic32 │ │ │ └── pic32mz-crypt.h │ │ └── ti │ │ │ ├── ti-ccm.h │ │ │ └── ti-hash.h │ │ ├── pwdbased.h │ │ ├── rabbit.h │ │ ├── random.h │ │ ├── ripemd.h │ │ ├── rsa.h │ │ ├── settings.h │ │ ├── sha.h │ │ ├── sha256.h │ │ ├── sha512.h │ │ ├── signature.h │ │ ├── srp.h │ │ ├── tfm.h │ │ ├── types.h │ │ ├── visibility.h │ │ ├── wc_encrypt.h │ │ ├── wc_port.h │ │ ├── wolfevent.h │ │ └── wolfmath.h │ ├── wolfssl64.sln │ └── wrapper │ ├── CSharp │ ├── wolfSSL-DTLS-PSK-Server │ │ ├── App.config │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── wolfSSL-DTLS-PSK-Server.cs │ │ └── wolfSSL-DTLS-PSK-Server.csproj │ ├── wolfSSL-DTLS-Server │ │ ├── App.config │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── wolfSSL-DTLS-Server.cs │ │ └── wolfSSL-DTLS-Server.csproj │ ├── wolfSSL-Example-IOCallbacks │ │ ├── App.config │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── wolfSSL-Example-IOCallbacks.cs │ │ └── wolfSSL-Example-IOCallbacks.csproj │ ├── wolfSSL-TLS-PSK-Server │ │ ├── App.config │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── wolfSSL-TLS-PSK-Server.cs │ │ └── wolfSSL-TLS-PSK-Server.csproj │ ├── wolfSSL-TLS-Server │ │ ├── App.config │ │ ├── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ ├── Settings.Designer.cs │ │ │ └── Settings.settings │ │ ├── wolfSSL-TLS-Server.cs │ │ └── wolfSSL-TLS-Server.csproj │ ├── wolfSSL_CSharp.sln │ └── wolfSSL_CSharp │ │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ └── Resources.resx │ │ ├── wolfSSL.cs │ │ └── wolfSSL_CSharp.csproj │ ├── include.am │ └── python │ └── wolfcrypt │ ├── .centos-provisioner.sh │ ├── .gitignore │ ├── .ubuntu-provisioner.sh │ ├── LICENSING.rst │ ├── MANIFEST.in │ ├── README.rst │ ├── Vagrantfile │ ├── docs │ ├── asymmetric.rst │ ├── conf.py │ ├── digest.rst │ ├── index.rst │ ├── mac.rst │ ├── random.rst │ └── symmetric.rst │ ├── include.am │ ├── requirements-testing.txt │ ├── setup.py │ ├── test │ ├── test_ciphers.py │ ├── test_hashes.py │ └── test_random.py │ ├── tox.ini │ └── wolfcrypt │ ├── __about__.py │ ├── __init__.py │ ├── build_ffi.py │ ├── ciphers.py │ ├── exceptions.py │ ├── hashes.py │ ├── random.py │ └── utils.py ├── main ├── CMakeLists.txt ├── Soulmate.h ├── SoulmateBLE.h ├── SoulmateBeatSin.h ├── SoulmateCircadian.h ├── SoulmateConfig.h ├── SoulmateFiles.h ├── SoulmateGrid.h ├── SoulmateHomekit.h ├── SoulmateMain.h ├── SoulmateMatrix.h ├── SoulmateSettings.h ├── SoulmateStats.h ├── SoulmateTime.h ├── SoulmateWifi.h ├── component.mk ├── cpplint.cfg ├── fibonacci.txt ├── main.cpp └── square.txt ├── overrides ├── arduino.mk └── arduinoJson.mk ├── partitions.csv ├── qrcode.png └── sdkconfig /.clang-format: -------------------------------------------------------------------------------- 1 | --- 2 | IndentPPDirectives: BeforeHash 3 | AllowShortFunctionsOnASingleLine: None 4 | NamespaceIndentation: All -------------------------------------------------------------------------------- /.github/workflows/docker-run.yml: -------------------------------------------------------------------------------- 1 | name: Run in Docker 2 | 3 | on: 4 | push: 5 | branches: [master, elliott/builds] 6 | pull_request: 7 | branches: [master, feature/redo-project-layout] 8 | 9 | jobs: 10 | build: 11 | runs-on: ubuntu-latest 12 | env: 13 | IDF_PATH: /home/runner/esp/esp-idf 14 | SOULMATE_PATH: /home/runner/work/soulmate-core/soulmate-core 15 | 16 | steps: 17 | - uses: actions/checkout@v2 18 | with: 19 | submodules: recursive 20 | 21 | - name: Cache build path 22 | uses: actions/cache@v2 23 | with: 24 | path: build 25 | key: ${{ runner.os }}-${{ hashFiles('./build.sh') }} 26 | 27 | - uses: satackey/action-docker-layer-caching@v0.0.11 28 | continue-on-error: true 29 | - name: Run a simple make 30 | run: ./build.sh docker 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | [Bb]uild/ 2 | components/ 3 | example/build 4 | .DS_Store 5 | sdkconfig.old 6 | .envrc 7 | -------------------------------------------------------------------------------- /.vscode/arduino.json: -------------------------------------------------------------------------------- 1 | { 2 | "board": "esp8266:esp8266:huzzah", 3 | "configuration": "CpuFrequency=80,FlashSize=4M1M,LwIPVariant=v2mss536,Debug=Disabled,DebugLevel=None____,FlashErase=none,UploadSpeed=115200" 4 | } -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- 1 | { 2 | "configurations": [ 3 | { 4 | "name": "Mac", 5 | "includePath": [ 6 | "${workspaceFolder}/main/**", 7 | "${workspaceFolder}/components/**" 8 | ], 9 | "forcedInclude": [], 10 | "macFrameworkPath": [ 11 | "/System/Library/Frameworks", 12 | "/Library/Frameworks" 13 | ], 14 | "intelliSenseMode": "gcc-x64", 15 | "compilerPath": "${env:IDF_TOOLS_PATH}/xtensa-esp32-elf-gcc", 16 | "cStandard": "c11", 17 | "cppStandard": "c++17", 18 | "defines": [ 19 | "ESP32=true" 20 | ] 21 | } 22 | ], 23 | "version": 4 24 | } 25 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.associations": { 3 | "__locale": "cpp", 4 | "__mutex_base": "cpp", 5 | "__bit_reference": "cpp", 6 | "__functional_base": "cpp", 7 | "atomic": "cpp", 8 | "bitset": "cpp", 9 | "chrono": "cpp", 10 | "functional": "cpp", 11 | "iterator": "cpp", 12 | "limits": "cpp", 13 | "locale": "cpp", 14 | "memory": "cpp", 15 | "ratio": "cpp", 16 | "system_error": "cpp", 17 | "tuple": "cpp", 18 | "type_traits": "cpp" 19 | }, 20 | "files.exclude": { 21 | "components": false, 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 9.0.1: 2 | 3 | - Fixed the way SOULMATE_MIRROR / SOULMATE_REVERSE work 4 | - Added provision for SOULMATE_BUILD id 5 | 6 | ## 9.0.0: 7 | 8 | - Rebuilt project layout 9 | - Removing some old code 10 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.5) 2 | 3 | include($ENV{IDF_PATH}/tools/cmake/project.cmake) 4 | 5 | project(soulmate) 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020 Soulmate Lights, LLC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | PROJECT_NAME := soulmate 2 | 3 | include $(IDF_PATH)/make/project.mk 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ESP-IDF Soulmate Library 2 | 3 | This is the core ESP-IDF library for Soulmate. 4 | 5 | All the command-line examples are now out of date - head to https://www.soulmatelights.com/ to use the IDE. 6 | 7 | The IDE is now open-source at https://github.com/Soulmate-Lights/soulmate-ide 8 | 9 | If you're interested in learning more, please [join the Discord](https://discord.gg/W9wAKFkYyF) and say hi! 10 | 11 | There's also the [Wokwi Discord](https://discord.gg/rYPAvBNHH7) where we talk about the Wokwi Arduino emulator. 12 | 13 | ![C/C++ CI](https://github.com/Soulmate-Lights/soulmate-core/workflows/C/C++%20CI/badge.svg) 14 | -------------------------------------------------------------------------------- /components/hap/src/advertise.h: -------------------------------------------------------------------------------- 1 | #ifndef _ADVERTISE_H_ 2 | #define _ADVERTISE_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | 9 | #include 10 | 11 | #include "hap.h" 12 | 13 | enum advertise_accessory_state { 14 | ADVERTISE_ACCESSORY_STATE_NOT_PAIRED, 15 | ADVERTISE_ACCESSORY_STATE_PAIRED, 16 | }; 17 | void advertise_accessory_state_set(void* adv_instance, enum advertise_accessory_state state); 18 | void* advertise_accessory_add(char* name, char* id, char* host, int port, uint32_t config_number, 19 | enum hap_accessory_category category, enum advertise_accessory_state state, char* setup_id); 20 | 21 | void advertise_accessory_remove(void* adv_instance); 22 | 23 | #ifdef __cplusplus 24 | } 25 | #endif 26 | 27 | #endif //#ifndef _ADVERTISE_H_ 28 | -------------------------------------------------------------------------------- /components/hap/src/concat.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "concat.h" 6 | 7 | uint8_t* concat3(uint8_t* m1, int m1_len, 8 | uint8_t* m2, int m2_len, 9 | uint8_t* m3, int m3_len, int* concateated_len) 10 | { 11 | *concateated_len = m1_len + m2_len + m3_len; 12 | uint8_t* concatenated = malloc(*concateated_len); 13 | if (concatenated == NULL) { 14 | printf("malloc failed\n"); 15 | *concateated_len = 0; 16 | return NULL; 17 | } 18 | 19 | memcpy(concatenated, m1, m1_len); 20 | memcpy(concatenated + m1_len, m2, m2_len); 21 | memcpy(concatenated + m1_len + m2_len, m3, m3_len); 22 | 23 | return concatenated; 24 | } 25 | 26 | void concat_free(uint8_t* concatenated) 27 | { 28 | if (concatenated) 29 | free(concatenated); 30 | } 31 | -------------------------------------------------------------------------------- /components/hap/src/concat.h: -------------------------------------------------------------------------------- 1 | #ifndef _CONCAT_H_ 2 | #define _CONCAT_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | uint8_t* concat3(uint8_t* m1, int m1_len, 11 | uint8_t* m2, int m2_len, 12 | uint8_t* m3, int m3_len, int* concateated_len); 13 | void concat_free(uint8_t* concatenated); 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif 18 | 19 | #endif //#ifndef _CONCAT_H_ 20 | -------------------------------------------------------------------------------- /components/hap/src/curve25519.h: -------------------------------------------------------------------------------- 1 | #ifndef _CURVE25519_H_ 2 | #define _CURVE25519_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | #define CURVE25519_KEY_LENGTH 32 11 | #define CURVE25519_SECRET_LENGTH 32 12 | 13 | int curve25519_key_generate(uint8_t public_key[], uint8_t private_key[]); 14 | int curve25519_shared_secret(uint8_t public_key[], uint8_t private_key[], 15 | uint8_t* secret, int* secret_length); 16 | 17 | #ifdef __cplusplus 18 | } 19 | #endif 20 | 21 | #endif //#ifndef _CURVE25519_H_ 22 | -------------------------------------------------------------------------------- /components/hap/src/ed25519.h: -------------------------------------------------------------------------------- 1 | #ifndef _ED25519_H_ 2 | #define _ED25519_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | #define ED25519_PUBLIC_KEY_LENGTH 32 11 | #define ED28819_PRIVATE_KEY_LENGTH 64 12 | #define ED25519_SIGN_LENGTH 64 13 | 14 | int ed25519_key_generate(uint8_t public_key[], uint8_t private_key[]); 15 | int ed25519_verify(uint8_t* public_key, int key_len, 16 | uint8_t* signature, int signature_len, uint8_t* msg, int msg_len); 17 | 18 | int ed25519_sign(uint8_t public_key[], uint8_t private_key[], uint8_t* in, int in_len, uint8_t* signatured, int* signated_len); 19 | 20 | #ifdef __cplusplus 21 | } 22 | #endif 23 | 24 | #endif //#ifndef _ED25519_H_ 25 | -------------------------------------------------------------------------------- /components/hap/src/hkdf.h: -------------------------------------------------------------------------------- 1 | #ifndef _HKDF_H_ 2 | #define _HKDF_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | #include 10 | 11 | #define HKDF_KEY_LEN CHACHA20_POLY1305_AEAD_KEYSIZE 12 | 13 | enum hkdf_key_type { 14 | HKDF_KEY_TYPE_PAIR_SETUP_ENCRYPT, 15 | HKDF_KEY_TYPE_PAIR_SETUP_CONTROLLER, 16 | HKDF_KEY_TYPE_PAIR_SETUP_ACCESSORY, 17 | HKDF_KEY_TYPE_PAIR_VERIFY_ENCRYPT, 18 | HKDF_KEY_TYPE_CONTROL_READ, 19 | HKDF_KEY_TYPE_CONTROL_WRITE, 20 | HKDF_KEY_TYPE_LENGTH, 21 | }; 22 | 23 | int hkdf_key_get(enum hkdf_key_type type, uint8_t* inkey, int inkey_len, uint8_t* outkey); 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | 29 | #endif //#ifndef _HKDF_H_ 30 | 31 | -------------------------------------------------------------------------------- /components/hap/src/httpd.h: -------------------------------------------------------------------------------- 1 | #ifndef _HTTPD_H_ 2 | #define _HTTPD_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include "mongoose.h" 9 | 10 | struct httpd_ops { 11 | void (*accept)(void* user_data, struct mg_connection* nc); 12 | void (*close)(void* user_data, struct mg_connection* nc); 13 | void (*recv)(void* user_data, struct mg_connection* nc, char* msg, int length); 14 | }; 15 | 16 | void* httpd_bind(int port, void* user_data); 17 | void httpd_init(struct httpd_ops* ops); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | 23 | #endif //#ifndef _HTTPD_H_ 24 | -------------------------------------------------------------------------------- /components/hap/src/iosdevice.h: -------------------------------------------------------------------------------- 1 | #ifndef _IOSDEVICE_H_ 2 | #define _IOSDEVICE_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | #include 10 | 11 | #include "ed25519.h" 12 | 13 | #define IOSDEVICE_PER_ACCESSORY_MAX 8 14 | #define IOSDEVICE_ID_LEN 36 15 | 16 | struct iosdevice { 17 | char id[IOSDEVICE_ID_LEN]; 18 | char key[ED25519_PUBLIC_KEY_LENGTH]; 19 | }; 20 | 21 | /* idevice is array pointer. array size is IOSDEVICE_PER_ACCESSORY_MAX */ 22 | int iosdevice_pairings(void* handle, struct iosdevice *idevice); 23 | 24 | int iosdevice_pairings_remove(void* handle, char id[]); 25 | int iosdevice_pairings_add(void* handle, char id[], char key[]); 26 | bool iosdevice_pairing_match(void* handle, char id[], char key[]); 27 | void* iosdevice_pairings_init(char accessory_id[]); 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif 32 | 33 | #endif //#ifndef _IOSDEVICE_H_ 34 | -------------------------------------------------------------------------------- /components/hap/src/nvs.h: -------------------------------------------------------------------------------- 1 | #ifndef _NVS_H_ 2 | #define _NVS_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | int nvs_get(char* key, uint8_t* value, int len); 9 | int nvs_set(char* key, uint8_t* value, int len); 10 | int nvs_erase(char* key); 11 | 12 | #ifdef __cplusplus 13 | } 14 | #endif 15 | 16 | #endif //#ifndef _NVS_H_ 17 | -------------------------------------------------------------------------------- /components/hap/src/pair_error.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "hap.h" 6 | #include "hap_internal.h" 7 | #include "tlv.h" 8 | 9 | #define TAG "PAIR_ERROR" 10 | 11 | #define CHUNK_RESPONSE_DEFALT_META_LENGTH 16 12 | 13 | int pair_error(enum hap_tlv_error_codes error_codes, 14 | uint8_t** acc_msg, int* acc_msg_length) 15 | { 16 | uint8_t error[] = {error_codes}; 17 | *acc_msg_length =tlv_encode_length(sizeof(error)); 18 | 19 | (*acc_msg) = malloc(*acc_msg_length); 20 | if (*acc_msg == NULL) { 21 | ESP_LOGE(TAG, "malloc failed. size:%d\n", *acc_msg_length); 22 | return -1; 23 | } 24 | 25 | uint8_t* tlv_encode_ptr = *acc_msg; 26 | tlv_encode_ptr += tlv_encode(HAP_TLV_TYPE_ERROR, sizeof(error), error, tlv_encode_ptr); 27 | 28 | return 0; 29 | } 30 | 31 | void pair_error_free(uint8_t* error_msg) 32 | { 33 | if (error_msg) 34 | free(error_msg); 35 | } 36 | -------------------------------------------------------------------------------- /components/hap/src/pair_error.h: -------------------------------------------------------------------------------- 1 | #include "hap.h" 2 | #ifndef _PAIR_ERROR_H_ 3 | #define _PAIR_ERROR_H_ 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | int pair_error(enum hap_tlv_error_codes error_codes, 10 | uint8_t** acc_msg, int* acc_msg_length); 11 | void pair_error_free(uint8_t* error_msg); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif //#ifndef _PAIR_ERROR_H_ 18 | -------------------------------------------------------------------------------- /components/hap/src/pair_setup.h: -------------------------------------------------------------------------------- 1 | #ifndef _PAIR_SETUP_H_ 2 | #define _PAIR_SETUP_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | void pair_setup_do_free(char* res_header, char*res_body); 9 | int pair_setup_do(void* _ps, const char* req_body, int req_body_len, 10 | char** res_header, int* res_header_len, char** res_body, int* res_body_len); 11 | 12 | void* pair_setup_init(char* acc_id, char* setup_code, void* iosdevices, uint8_t* public_key, uint8_t* private_key); 13 | void pair_setup_cleanup(void* _ps);; 14 | 15 | #ifdef __cplusplus 16 | } 17 | #endif 18 | 19 | #endif //#ifndef _PAIR_SETUP_H_ 20 | 21 | -------------------------------------------------------------------------------- /components/hap/src/pair_verify.h: -------------------------------------------------------------------------------- 1 | #ifndef _PAIR_VERIFY_H_ 2 | #define _PAIR_VERIFY_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | void pair_verify_do_free(char* res_header, char*res_body); 11 | int pair_verify_do(void* pair_verify, const char* req_body, int req_body_len, 12 | char** res_header, int* res_header_len, char** res_body, int* res_body_len, 13 | bool* verified, char* session_key); 14 | 15 | void* pair_verify_init(char* acc_id, void* iosdevices, uint8_t* public_key, uint8_t* private_key); 16 | void pair_verify_cleanup(void* _pv); 17 | 18 | #ifdef __cplusplus 19 | } 20 | #endif 21 | 22 | #endif //#ifndef _PAIR_VERIFY_H_ 23 | 24 | -------------------------------------------------------------------------------- /components/hap/src/pairings.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef _PAIRINGS_H_ 3 | #define _PAIRINGS_H_ 4 | 5 | #ifdef __cplusplus 6 | extern "C" { 7 | #endif 8 | 9 | int pairings_do(void* iosdevices, char* req_body, int req_body_len, 10 | char** res_header, int* res_header_len, char** res_body, int* res_body_len); 11 | void pairings_do_free(char* res_header, char*res_body); 12 | 13 | #ifdef __cplusplus 14 | } 15 | #endif 16 | 17 | #endif //#ifndef _PAIRINGS_H_ 18 | 19 | -------------------------------------------------------------------------------- /components/hap/src/srp.h: -------------------------------------------------------------------------------- 1 | #ifndef _SRP_H_ 2 | #define _SRP_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | #include 10 | 11 | #define SRP_SALT_LENGTH 16 12 | #define SRP_PUBLIC_KEY_LENGTH 384 13 | #define SRP_PROOF_LENGTH 64 14 | #define SRP_SESSION_KEY_LENGTH 64 15 | 16 | int srp_client_proof_verify(void* instance, uint8_t* proof); 17 | int srp_host_proof_get(void* instance, uint8_t proof[]); 18 | 19 | int srp_client_key_set(void* instance, uint8_t* client_public_key); 20 | int srp_host_key_get(void* instance, uint8_t host_public_key[]); 21 | 22 | int srp_host_session_key(void* instance, uint8_t session_key[]); 23 | int srp_salt(void* instance, uint8_t salt[]); 24 | 25 | void* srp_init(const char* setup_code); 26 | void srp_cleanup(void* instance); 27 | 28 | #ifdef __cplusplus 29 | } 30 | #endif 31 | 32 | #endif //#ifndef _SRP_H_ 33 | -------------------------------------------------------------------------------- /components/hap/src/tlv.h: -------------------------------------------------------------------------------- 1 | #ifndef _TLV8_H_ 2 | #define _TLV8_H_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #include 9 | 10 | struct tlv { 11 | uint8_t type; 12 | int length; 13 | uint8_t* value; 14 | }; 15 | 16 | struct tlv* tlv_decode(uint8_t* msg, int msg_len, uint8_t type); 17 | void tlv_decoded_item_free(struct tlv* tlv_item); 18 | 19 | int tlv_encode_length(int value_length); 20 | int tlv_encode(uint8_t type, int length, uint8_t* value, uint8_t* encoded); 21 | 22 | #ifdef __cplusplus 23 | } 24 | #endif 25 | 26 | #endif //#ifndef _TLV8_H_ 27 | -------------------------------------------------------------------------------- /components/hap/wolfssl/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | wolfssl 4 | 5 | 6 | lpc_board_nxp_lpcxpresso_1837 7 | lpc_chip_18xx 8 | 9 | 10 | 11 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 12 | clean,full,incremental, 13 | 14 | 15 | 16 | 17 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 18 | full,incremental, 19 | 20 | 21 | 22 | 23 | 24 | org.eclipse.cdt.core.cnature 25 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 26 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 27 | 28 | 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/AUTHORS -------------------------------------------------------------------------------- /components/hap/wolfssl/ChangeLog: -------------------------------------------------------------------------------- 1 | Please see the file 'README' in this directory. 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/ARDUINO/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | EXTRA_DIST+= IDE/ARDUINO/README.md 6 | EXTRA_DIST+= IDE/ARDUINO/sketches/wolfssl_client/wolfssl_client.ino 7 | EXTRA_DIST+= IDE/ARDUINO/wolfssl-arduino.sh 8 | 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/ARDUINO/wolfssl-arduino.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # this script will reformat the wolfSSL source code to be compatible with 4 | # an Arduino project 5 | # run as bash ./wolfssl-arduino.sh 6 | 7 | DIR=${PWD##*/} 8 | 9 | if [ "$DIR" = "ARDUINO" ]; then 10 | cp ../../src/*.c ../../ 11 | cp ../../wolfcrypt/src/*.c ../../ 12 | echo "/* stub header file for Arduino compatibility */" >> ../../wolfssl.h 13 | else 14 | echo "ERROR: You must be in the IDE/ARDUINO directory to run this script" 15 | fi 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/Projects/common/wolfssl.icf: -------------------------------------------------------------------------------- 1 | 2 | define memory mem with size = 4G; 3 | define region FLASH = mem:[from 0x00000000 to 0x000fffff]; 4 | define region SRAM = mem:[from 0x20000000 to 0x2003ffff]; 5 | define block HEAP with alignment = 8, size = 0x00010000 { }; 6 | initialize by copy { readwrite }; 7 | do not initialize { section .noinit }; 8 | place at start of FLASH { readonly section .intvec }; 9 | place in FLASH { readonly }; 10 | place at start of SRAM { section VTABLE }; 11 | place in SRAM { readwrite, block HEAP }; 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/Projects/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | #define NO_MAIN_DRIVER 3 | #define BENCH_EMBEDDED 4 | #define SINGLE_THREADED 5 | #define NO_FILESYSTEM 6 | #define NO_WRITEV 7 | #define WOLFSSL_USER_IO 8 | #define NO_DEV_RANDOM 9 | #define USE_CERT_BUFFERS_2048 10 | #define WOLFSSL_USER_CURRTIME 11 | #define SIZEOF_LONG_LONG 8 12 | 13 | #define CUSTOM_RAND_GENERATE custom_rand_generate 14 | /* warning "write a real random seed!!!!, just for testing now" */ 15 | static int custom_rand_generate(void) { return 0 ; } -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/.gitignore: -------------------------------------------------------------------------------- 1 | *.bat 2 | *.xcl 3 | *.crun 4 | *.dbgdt 5 | *.dni 6 | 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/SAMV71_XULT/README_SAMV71: -------------------------------------------------------------------------------- 1 | Each example project here has it's own README please follow them in detail. 2 | 3 | embOS_wolfcrypt_benchmark_SAMV71_XULT\README_wolfcrypt_benchmark 4 | embOS_wolfcrypt_lib_SAMV71_XULT\README_wolfcrypt_lib 5 | embOS_wolfcrypt_test_SAMV71_XULT\README_wolfcrypt_test 6 | 7 | 8 | Thank you for using this guide and we hope this is helpful to you. If you have 9 | any suggestions / feedback for us please contact us: 10 | support@wolfssl.com 11 | info@wolfssl.com 12 | 13 | Copyright © 2016 wolfSSL Inc. All rights reserved. 14 | 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_SAMV71_XULT_user_settings/user_settings_simple_example.h: -------------------------------------------------------------------------------- 1 | #ifndef _EMBOS_USER_SETTINGS_H_ 2 | #define _EMBOS_USER_SETTINGS_H_ 3 | 4 | #undef WOLFCRYPT_ONLY 5 | #define WOLFCRYPT_ONLY 6 | 7 | #undef NO_64BIT 8 | #define NO_64BIT 9 | 10 | #undef SIZEOF_LONG 11 | #define SIZEOF_LONG 4 12 | 13 | #undef SIZEOF_LONG_LONG 14 | #define SIZEOF_LONG_LONG 8 15 | 16 | #undef HAVE_CHACHA 17 | #define HAVE_CHACHA 18 | 19 | #undef HAVE_POLY1305 20 | #define HAVE_POLY1305 21 | 22 | #undef ECC_SHAMIR 23 | #define ECC_SHAMIR 24 | 25 | #undef HAVE_ECC 26 | #define HAVE_ECC 27 | 28 | #undef WOLFSSL_SHA512 29 | #define WOLFSSL_SHA512 30 | 31 | #undef WOLFSSL_SHA384 32 | #define WOLFSSL_SHA384 33 | 34 | #undef HAVE_AESGCM 35 | #define HAVE_AESGCM 36 | 37 | #undef NO_INLINE 38 | #define NO_INLINE 39 | 40 | #undef BENCH_EMBEDDED 41 | #define BENCH_EMBEDDED 42 | 43 | #endif /* _EMBOS_USER_SETTINGS_H_ */ 44 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_wolfcrypt_benchmark_SAMV71_XULT/Application/runBenchmarks.c: -------------------------------------------------------------------------------- 1 | #include "RTOS.h" 2 | #include "BSP.h" 3 | #include 4 | #include 5 | 6 | static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */ 7 | static OS_TASK WLFTASK; /* Task */ 8 | 9 | static void wolfTask(void) { 10 | printf("Begin Benchmark Tests\n"); 11 | benchmark_test(NULL); 12 | printf("Benchmark Tests Complete\n"); 13 | while (1) { 14 | BSP_ToggleLED(1); 15 | OS_Delay(200); 16 | } 17 | } 18 | 19 | 20 | int main(void) { 21 | OS_IncDI(); /* Disable interrupts */ 22 | OS_InitKern(); /* Initialize OS */ 23 | OS_InitHW(); /* Initialize Hardware */ 24 | BSP_Init(); /* Initialize LED ports */ 25 | /* You need to create at least one task before calling OS_Start() */ 26 | OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK); 27 | OS_Start(); /* Start the OS */ 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_wolfcrypt_benchmark_SAMV71_XULT/settings/wolfcrypt_benchmark_Debug.jlink: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ForceImpTypeAny = 0 3 | ShowInfoWin = 1 4 | EnableFlashBP = 2 5 | BPDuringExecution = 0 6 | [CFI] 7 | CFISize = 0x00 8 | CFIAddr = 0x00 9 | [CPU] 10 | MonModeVTableAddr = 0xFFFFFFFF 11 | MonModeDebug = 0 12 | MaxNumAPs = 0 13 | LowPowerHandlingMode = 0 14 | OverrideMemMap = 0 15 | AllowSimulation = 1 16 | ScriptFile="" 17 | [FLASH] 18 | CacheExcludeSize = 0x00 19 | CacheExcludeAddr = 0x00 20 | MinNumBytesFlashDL = 0 21 | SkipProgOnCRCMatch = 1 22 | VerifyDownload = 1 23 | AllowCaching = 1 24 | EnableFlashDL = 2 25 | Override = 1 26 | Device="ATSAMV71Q21" 27 | [GENERAL] 28 | WorkRAMSize = 0x00 29 | WorkRAMAddr = 0x00 30 | RAMUsageLimit = 0x00 31 | [SWO] 32 | SWOLogFile="" 33 | [MEM] 34 | RdOverrideOrMask = 0x00 35 | RdOverrideAndMask = 0xFFFFFFFF 36 | RdOverrideAddr = 0xFFFFFFFF 37 | WrOverrideOrMask = 0x00 38 | WrOverrideAndMask = 0xFFFFFFFF 39 | WrOverrideAddr = 0xFFFFFFFF 40 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_wolfcrypt_test_SAMV71_XULT/Application/runWolfcryptTests.c: -------------------------------------------------------------------------------- 1 | #include "RTOS.h" 2 | #include "BSP.h" 3 | #include 4 | #include 5 | 6 | static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */ 7 | static OS_TASK WLFTASK; /* Task */ 8 | 9 | static void wolfTask(void) { 10 | printf("Begin wolfcrypt tests\n"); 11 | wolfcrypt_test(NULL); 12 | printf("wolfcrypt tests complete.\n"); 13 | while (1) { 14 | BSP_ToggleLED(1); 15 | OS_Delay(200); 16 | } 17 | } 18 | 19 | 20 | int main(void) { 21 | OS_IncDI(); /* Disable interrupts */ 22 | OS_InitKern(); /* Initialize OS */ 23 | OS_InitHW(); /* Initialize Hardware for OS */ 24 | BSP_Init(); /* Initialize LED ports */ 25 | /* You need to create at least one task before calling OS_Start() */ 26 | OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK); 27 | OS_Start(); /* Start the OS */ 28 | return 0; 29 | } -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/SAMV71_XULT/embOS_wolfcrypt_test_SAMV71_XULT/settings/wolfcrypt_test_Debug.jlink: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ForceImpTypeAny = 0 3 | ShowInfoWin = 1 4 | EnableFlashBP = 2 5 | BPDuringExecution = 0 6 | [CFI] 7 | CFISize = 0x00 8 | CFIAddr = 0x00 9 | [CPU] 10 | MonModeVTableAddr = 0xFFFFFFFF 11 | MonModeDebug = 0 12 | MaxNumAPs = 0 13 | LowPowerHandlingMode = 0 14 | OverrideMemMap = 0 15 | AllowSimulation = 1 16 | ScriptFile="" 17 | [FLASH] 18 | CacheExcludeSize = 0x00 19 | CacheExcludeAddr = 0x00 20 | MinNumBytesFlashDL = 0 21 | SkipProgOnCRCMatch = 1 22 | VerifyDownload = 1 23 | AllowCaching = 1 24 | EnableFlashDL = 2 25 | Override = 1 26 | Device="ATSAMV71Q21" 27 | [GENERAL] 28 | WorkRAMSize = 0x00 29 | WorkRAMAddr = 0x00 30 | RAMUsageLimit = 0x00 31 | [SWO] 32 | SWOLogFile="" 33 | [MEM] 34 | RdOverrideOrMask = 0x00 35 | RdOverrideAndMask = 0xFFFFFFFF 36 | RdOverrideAddr = 0xFFFFFFFF 37 | WrOverrideOrMask = 0x00 38 | WrOverrideAndMask = 0xFFFFFFFF 39 | WrOverrideAddr = 0xFFFFFFFF 40 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/custom_port/wolfcrypt_benchmark_custom_port/Application/runBenchmarks.c: -------------------------------------------------------------------------------- 1 | #include "RTOS.h" 2 | #include "BSP.h" 3 | #include 4 | #include 5 | 6 | static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */ 7 | static OS_TASK WLFTASK; /* Task */ 8 | 9 | static void wolfTask(void) { 10 | printf("Begin benchmark tests\n"); 11 | wolfcrypt_test(NULL); 12 | printf("benchmark tests complete.\n"); 13 | while (1) { 14 | BSP_ToggleLED(1); 15 | OS_Delay(200); 16 | } 17 | } 18 | 19 | 20 | int main(void) { 21 | OS_IncDI(); /* Disable interrupts */ 22 | OS_InitKern(); /* Initialize OS */ 23 | OS_InitHW(); /* Initialize Hardware */ 24 | BSP_Init(); /* Initialize LED ports */ 25 | /* You need to create at least one task before calling OS_Start() */ 26 | OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK); 27 | OS_Start(); /* Start the OS */ 28 | return 0; 29 | } 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/custom_port/wolfcrypt_test_custom_port/Application/runWolfcryptTests.c: -------------------------------------------------------------------------------- 1 | #include "RTOS.h" 2 | #include "BSP.h" 3 | #include 4 | #include 5 | 6 | static OS_STACKPTR int WLFSTACK[20000]; /* Stack Size for Task */ 7 | static OS_TASK WLFTASK; /* Task */ 8 | 9 | static void wolfTask(void) { 10 | printf("Begin wolfcrypt tests\n"); 11 | wolfcrypt_test(NULL); 12 | printf("wolfcrypt tests complete.\n"); 13 | while (1) { 14 | BSP_ToggleLED(1); 15 | OS_Delay(200); 16 | } 17 | } 18 | 19 | 20 | int main(void) { 21 | OS_IncDI(); /* Disable interrupts */ 22 | OS_InitKern(); /* Initialize OS */ 23 | OS_InitHW(); /* Initialize Hardware for OS */ 24 | BSP_Init(); /* Initialize LED ports */ 25 | /* You need to create at least one task before calling OS_Start() */ 26 | OS_CREATETASK(&WLFTASK, "Tests task", wolfTask, 100, WLFSTACK); 27 | OS_Start(); /* Start the OS */ 28 | return 0; 29 | } 30 | 31 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/IAR-EWARM/embOS/extract_trial_here/README_extract_trial_here: -------------------------------------------------------------------------------- 1 | An empty directory used when extracting segger trial. 2 | 3 | 4 | 5 | *** For SAMV71_XULT project *** 6 | This trial can be found here: 7 | 8 | https://www.segger.com/downloads/embos 9 | 10 | Look for the Download for IAR compiler and Cortex M 11 | 12 | The title should be: "embOS trial for Cortex-M and IAR compiler" 13 | 14 | 15 | 16 | *** For custom port *** 17 | The trial will still be located at: https://www.segger.com/downloads/embos 18 | 19 | However you will need to identify and download the correct project for your 20 | target CPU 21 | 22 | 23 | 24 | 25 | Thank you for using this guide and we hope this is helpful to you. If you have 26 | any suggestions / feedback for us please contact us: 27 | support@wolfssl.com 28 | info@wolfssl.com 29 | 30 | Copyright © 2016 wolfSSL Inc. All rights reserved. 31 | 32 | 33 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/LPCXPRESSO/wolf_example/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | wolf_example 4 | 5 | 6 | lpc_chip_18xx 7 | lpc_board_nxp_lpcxpresso_1837 8 | wolfssl 9 | 10 | 11 | 12 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 13 | clean,full,incremental, 14 | 15 | 16 | 17 | 18 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 19 | full,incremental, 20 | 21 | 22 | 23 | 24 | 25 | org.eclipse.cdt.core.cnature 26 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 27 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 28 | 29 | 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/LPCXPRESSO/wolf_example/readme.txt: -------------------------------------------------------------------------------- 1 | wolfSSL example 2 | 3 | Target board LPC43S37 Xpresso board 4 | The board communicates to the PC terminal through UART0 at 115200. 5 | This example builds the wolfSSL library, test and benchmark examples. 6 | Use 't' to launch the WolfSSL Test 7 | Use 'b' to launch the WolfSSL Benchmark 8 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK-ARM/MDK-ARM/wolfSSL/cert_data.c: -------------------------------------------------------------------------------- 1 | /* certs_test.c 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #ifdef HAVE_CONFIG_H 24 | #include 25 | #endif 26 | 27 | /* Define initial data for cert buffers */ 28 | #include 29 | 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Conf/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/CryptBenchmark/Abstract.txt: -------------------------------------------------------------------------------- 1 | This program is a simple benchmark of wolfCrypt library. 2 | 3 | In order to run this benchmark, copy 4 | {PACK}\wolfSSL\CyaSSL\{version}\cyassl\certs folder and files to the SD memory. 5 | 6 | For benchmark configuration, refer config-Crypt.h. 7 | 8 | For the hardware crypt on config-Crypt.h, download 9 | STSW-STM32062: STM32F2xx standard peripherals library at 10 | http://www.st.com/. Copy Libraries\STM32F2xx_StdPeriph_Driver\{inc,src} to 11 | {PACK}\cyassl\IDE\MDK5-ARM\STM32F2xx_StdPeriph_Lib 12 | 13 | Support 14 | ------- 15 | Please send questions or comments to support@wolfssl.com 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/CryptBenchmark/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/CryptTest/Abstract.txt: -------------------------------------------------------------------------------- 1 | This program is a simple test suite of wolfCrypt library. 2 | 3 | In order to run this test suite, copy 4 | {PACK}\wolfSSL\CyaSSL\{version}\cyassl\certs folder and files to the SD memory. 5 | 6 | For selecting test crypt algorism options, refer config-Crypt.h. 7 | 8 | For the hardware crypt on config-Crypt.h, download 9 | STSW-STM32062: STM32F2xx standard peripherals library at 10 | http://www.st.com/. Copy Libraries\STM32F2xx_StdPeriph_Driver\{inc,src} to 11 | {PACK}\cyassl\IDE\MDK5-ARM\STM32F2xx_StdPeriph_Lib 12 | 13 | 14 | Support 15 | ------- 16 | Please send questions or comments to support@wolfssl.com 17 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/CryptTest/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | #define WOLFSSL_MDK_SHELL 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/EchoClient/Abstract.txt: -------------------------------------------------------------------------------- 1 | This program is echo client with CyaSSL/wolfCrypt library. 2 | 3 | In order to run this program, 4 | Copy {PACK}\wolfSSL\CyaSSL\{version}\cyassl\certs folder and files to the SD memory. 5 | Set config-EchoClient.h configuration file for the Callee IP or Port number. 6 | 7 | For further configuration, refer config-Crypt.h and config-CyaSSL.h. 8 | 9 | When testing this client, it is recommended to test against one of the standard 10 | CyaSSL example applications running on a desktop machine. The standard CyaSSL 11 | example applications are located in the CyaSSL root directory under the 12 | /examples directory. 13 | 14 | For the hardware crypt on config-Crypt.h, download 15 | STSW-STM32062: STM32F2xx standard peripherals library at 16 | http://www.st.com/. Copy Libraries\STM32F2xx_StdPeriph_Driver\{inc,src} to 17 | {PACK}\cyassl\IDE\MDK5-ARM\STM32F2xx_StdPeriph_Lib 18 | 19 | 20 | Support 21 | ------- 22 | Please send questions or comments to support@wolfssl.com -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/EchoClient/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | #define WOLFSSL_MDK_SHELL 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/EchoServer/Abstract.txt: -------------------------------------------------------------------------------- 1 | This program is echo server with CyaSSL/wolfCrypt library. 2 | 3 | In order to run this program, 4 | Copy {PACK}\wolfSSL\CyaSSL\{version}\cyassl\certs folder and files to the SD memory. 5 | Set the server IP address in Net_Config_ETH_0.h 6 | The server default port is 11111, defined in test.h. 7 | 8 | For further configuration, refer config-Crypt.h and config-CyaSSL.h. 9 | 10 | When testing this server, it is recommended to test against one of the standard 11 | CyaSSL example applications running on a desktop machine. The standard CyaSSL 12 | example applications are located in the CyaSSL root directory under the 13 | /examples directory. 14 | 15 | For the hardware crypt on config-Crypt.h, download 16 | STSW-STM32062: STM32F2xx standard peripherals library at 17 | http://www.st.com/. Copy Libraries\STM32F2xx_StdPeriph_Driver\{inc,src} to 18 | {PACK}\cyassl\IDE\MDK5-ARM\STM32F2xx_StdPeriph_Lib 19 | 20 | 21 | Support 22 | ------- 23 | Please send questions or comments to support@wolfssl.com 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/EchoServer/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | #define WOLFSSL_MDK_SHELL 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/SimpleClient/Abstract.txt: -------------------------------------------------------------------------------- 1 | This program is a simple client example with CyaSSL/wolfCrypt library. 2 | 3 | In order to run this program, 4 | Copy {PACK}\wolfSSL\CyaSSL\{version}\cyassl\certs folder and files to the SD memory. 5 | Set config-SimpleClient.h configuration file for the Callee IP or Port number. 6 | 7 | For further configuration, refer config-Crypt.h and config-CyaSSL.h. 8 | config-SimpleClient.h is to configure repote callee IP and port. 9 | 10 | When testing this client, it is recommended to test against one of the standard 11 | CyaSSL example applications running on a desktop machine. The standard CyaSSL 12 | example applications are located in the CyaSSL root directory under the 13 | /examples directory. 14 | 15 | For the hardware crypt on config-Crypt.h, download 16 | STSW-STM32062: STM32F2xx standard peripherals library at 17 | http://www.st.com/. Copy Libraries\STM32F2xx_StdPeriph_Driver\{inc,src} to 18 | {PACK}\cyassl\IDE\MDK5-ARM\STM32F2xx_StdPeriph_Lib 19 | 20 | 21 | Support 22 | ------- 23 | Please send questions or comments to support@wolfssl.com -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/SimpleClient/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | #define WOLFSSL_MDK_SHELL 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/SimpleServer/Abstract.txt: -------------------------------------------------------------------------------- 1 | This program is a simple server example with CyaSSL/wolfCrypt library. 2 | 3 | In order to run this program, 4 | Copy {PACK}\wolfSSL\CyaSSL\{version}\cyassl\certs folder and files to the SD memory. 5 | Set the server IP address in Net_Config_ETH_0.h 6 | The default server listning port is 11111, defined in test.h 7 | 8 | For further configuration, refer config-Crypt.h and config-CyaSSL.h. 9 | config-SimpleServer.h is for configuring the server port number. 10 | 11 | When testing this server, it is recommended to test against one of the standard 12 | CyaSSL example applications running on a desktop machine. The standard CyaSSL 13 | example applications are located in the CyaSSL root directory under the 14 | /examples directory. 15 | 16 | For the hardware crypt on config-Crypt.h, download 17 | STSW-STM32062: STM32F2xx standard peripherals library at 18 | http://www.st.com/. Copy Libraries\STM32F2xx_StdPeriph_Driver\{inc,src} to 19 | {PACK}\cyassl\IDE\MDK5-ARM\STM32F2xx_StdPeriph_Lib 20 | 21 | 22 | Support 23 | ------- 24 | Please send questions or comments to support@wolfssl.com -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/SimpleServer/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | #define WOLFSSL_MDK_SHELL 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/wolfSSL-Full/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | #define WOLFSSL_MDK_SHELL 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MDK5-ARM/Projects/wolfSSL-Lib/RTE/wolfSSL/user_settings.h: -------------------------------------------------------------------------------- 1 | 2 | /* #define SINGLE_THREADED or define RTOS option */ 3 | #define WOLFSSL_CMSIS_RTOS 4 | 5 | /* #define NO_FILESYSTEM or define Filesystem option */ 6 | #define WOLFSSL_KEIL_FS 7 | #define NO_WOLFSSL_DIR 8 | #define WOLFSSL_NO_CURRDIR 9 | 10 | /* #define WOLFSSL_USER_IO or use BSD incompatible TCP stack */ 11 | #define WOLFSSL_KEIL_TCP_NET /* KEIL_TCP + wolfssl_MDL_ARM.c for BSD compatibility */ 12 | 13 | #define NO_DEV_RANDOM 14 | /* define your Rand gen for the operational use */ 15 | #define WOLFSSL_GENSEED_FORTEST 16 | 17 | #define USE_WOLFSSL_MEMORY 18 | #define WOLFSSL_MALLOC_CHECK 19 | 20 | #define XVALIDATEDATE(d, f,t) (0) 21 | #define WOLFSSL_USER_CURRTIME /* for benchmark */ 22 | 23 | #define USE_FAST_MATH 24 | #define TFM_TIMING_RESISTANT 25 | 26 | #define BENCH_EMBEDDED 27 | 28 | #define NO_WRITEV 29 | #define NO_MAIN_DRIVER 30 | #define WOLFSSL_MDK_SHELL 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/MYSQL/do.sh: -------------------------------------------------------------------------------- 1 | # Place CMakeList in needed directories 2 | 3 | cp CMakeLists_wolfSSL.txt ../../CMakeLists.txt 4 | echo Copied CMakeLists_wolfSSL.txt to wolfssl/CMakeLists.txt 5 | cp CMakeLists_wolfCrypt.txt ../../wolfcrypt/CMakeLists.txt 6 | echo Copied CMakeLists_wolfCrypt.txt to wolfssl/wolfcrypt/CMakeLists.txt 7 | 8 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/ROWLEY-CROSSWORKS-ARM/hw.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef WOLFSSL_ROWLEY_HW_H 3 | #define WOLFSSL_ROWLEY_HW_H 4 | 5 | 6 | #include <__cross_studio_io.h> 7 | #include <__libc.h> 8 | #include 9 | 10 | // Generic HW API 11 | void hw_init(void); 12 | uint32_t hw_get_time_sec(void); 13 | uint32_t hw_get_time_msec(void); 14 | void hw_uart_printchar(int c); 15 | void hw_watchdog_disable(void); 16 | uint32_t hw_rand(void); 17 | 18 | // Delay functions 19 | void delay_us(uint32_t microseconds); 20 | 21 | 22 | #endif /* WOLFSSL_ROWLEY_HW_H */ 23 | 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/ROWLEY-CROSSWORKS-ARM/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/arm_startup.c 6 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/benchmark_main.c 7 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/hw.h 8 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/kinetis_hw.c 9 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/Kinetis_FlashPlacement.xml 10 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/README.md 11 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/test_main.c 12 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/retarget.c 13 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/user_settings.h 14 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/wolfssl.hzp 15 | EXTRA_DIST+= IDE/ROWLEY-CROSSWORKS-ARM/wolfssl_ltc.hzp 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/WIN-SGX/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | EXTRA_DIST+= IDE/WIN-SGX/ReadMe.txt 6 | EXTRA_DIST+= IDE/WIN-SGX/wolfSSL_SGX.edl 7 | EXTRA_DIST+= IDE/WIN-SGX/wolfSSL_SGX.sln 8 | EXTRA_DIST+= IDE/WIN-SGX/wolfSSL_SGX.vcxproj 9 | EXTRA_DIST+= IDE/WIN-SGX/wolfSSL_SGX.vcxproj.filters 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/WIN-SGX/wolfSSL_SGX.edl: -------------------------------------------------------------------------------- 1 | enclave { 2 | 3 | trusted { 4 | 5 | }; 6 | 7 | untrusted { 8 | /* define OCALLs here. */ 9 | 10 | }; 11 | }; 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/WIN/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | EXTRA_DIST+= IDE/WIN/README.txt 6 | EXTRA_DIST+= IDE/WIN/test.vcxproj 7 | EXTRA_DIST+= IDE/WIN/wolfssl-fips.sln 8 | EXTRA_DIST+= IDE/WIN/wolfssl-fips.vcxproj 9 | EXTRA_DIST+= IDE/WIN/user_settings.h 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/WIN/user_settings.h: -------------------------------------------------------------------------------- 1 | #ifndef _WIN_USER_SETTINGS_H_ 2 | #define _WIN_USER_SETTINGS_H_ 3 | 4 | /* Verify this is Windows */ 5 | #ifndef _WIN32 6 | #error This user_settings.h header is only designed for Windows 7 | #endif 8 | 9 | /* Configurations */ 10 | #if defined(HAVE_FIPS) 11 | /* FIPS */ 12 | #define OPENSSL_EXTRA 13 | #define HAVE_THREAD_LS 14 | #define WOLFSSL_KEY_GEN 15 | #define HAVE_AESGCM 16 | #define HAVE_HASHDRBG 17 | #define WOLFSSL_SHA384 18 | #define WOLFSSL_SHA512 19 | #define NO_PSK 20 | #define NO_HC128 21 | #define NO_RC4 22 | #define NO_RABBIT 23 | #define NO_DSA 24 | #define NO_MD4 25 | #elif defined(WOLFSSL_LIB) 26 | /* The lib */ 27 | #define OPENSSL_EXTRA 28 | #define WOLFSSL_RIPEMD 29 | #define WOLFSSL_SHA512 30 | #define NO_PSK 31 | #define HAVE_EXTENDED_MASTER 32 | #define WOLFSSL_SNIFFER 33 | #define HAVE_TLS_EXTENSIONS 34 | #define HAVE_SECURE_RENEGOTIATION 35 | #else 36 | /* The servers and clients */ 37 | #define OPENSSL_EXTRA 38 | #define NO_PSK 39 | #endif /* HAVE_FIPS */ 40 | 41 | #endif /* _WIN_USER_SETTINGS_H_ */ 42 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/WORKBENCH/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | EXTRA_DIST+= IDE/WORKBENCH/README.md 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/iOS/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | EXTRA_DIST+= IDE/iOS/README.md 6 | EXTRA_DIST+= IDE/iOS/wolfssl-FIPS.xcodeproj/project.pbxproj 7 | EXTRA_DIST+= IDE/iOS/wolfssl.xcodeproj/project.pbxproj 8 | EXTRA_DIST+= IDE/iOS/wolfssl.xcworkspace 9 | EXTRA_DIST+= IDE/iOS/wolfssl_testsuite.xcodeproj 10 | EXTRA_DIST+= IDE/iOS/user_settings.h 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/iOS/user_settings.h: -------------------------------------------------------------------------------- 1 | /* Configuration */ 2 | #define IPHONE /* Needed for Xcode */ 3 | #define HAVE_HASHDRBG 4 | #define HAVE_AESGCM 5 | #define WOLFSSL_SHA512 6 | #define WOLFSSL_SHA384 7 | 8 | #ifdef HAVE_FIPS 9 | #define NO_MD4 10 | #define NO_HC128 11 | #define NO_RABBIT 12 | #define NO_DSA 13 | #define NO_PWDBASED 14 | #else 15 | #define USE_FAST_MATH 16 | #endif 17 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IDE/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | include IDE/iOS/include.am 6 | include IDE/WIN/include.am 7 | include IDE/WIN-SGX/include.am 8 | include IDE/WORKBENCH/include.am 9 | include IDE/ROWLEY-CROSSWORKS-ARM/include.am 10 | include IDE/ARDUINO/include.am 11 | 12 | EXTRA_DIST+= IDE/IAR-EWARM IDE/MDK-ARM IDE/MDK5-ARM IDE/MYSQL IDE/LPCXPRESSO 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/IPP/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/IPP/.gitkeep -------------------------------------------------------------------------------- /components/hap/wolfssl/LICENSING: -------------------------------------------------------------------------------- 1 | 2 | wolfSSL (formerly known as CyaSSL) and wolfCrypt are either licensed for use 3 | under the GPLv2 or a standard commercial license. For our users who cannot use 4 | wolfSSL under GPLv2, a commercial license to wolfSSL and wolfCrypt is available. 5 | Please contact wolfSSL Inc. directly at: 6 | 7 | Email: licensing@wolfssl.com 8 | Phone: +1 425 245-8247 9 | 10 | More information can be found on the wolfSSL website at www.wolfssl.com. 11 | 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/NEWS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/NEWS -------------------------------------------------------------------------------- /components/hap/wolfssl/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Create configure and makefile stuff... 4 | # 5 | 6 | # Git hooks should come before autoreconf. 7 | if test -d .git; then 8 | if ! test -d .git/hooks; then 9 | mkdir .git/hooks 10 | fi 11 | ln -s -f ../../pre-commit.sh .git/hooks/pre-commit 12 | ln -s -f ../../pre-push.sh .git/hooks/pre-push 13 | fi 14 | 15 | # If this is a source checkout then call autoreconf with error as well 16 | if test -e .git; then 17 | WARNINGS="all,error" 18 | # touch fips files for non fips distribution 19 | touch ./ctaocrypt/src/fips.c 20 | touch ./ctaocrypt/src/fips_test.c 21 | 22 | # touch async crypt files 23 | touch ./wolfcrypt/src/async.c 24 | touch ./wolfssl/wolfcrypt/async.h 25 | else 26 | WARNINGS="all" 27 | fi 28 | 29 | autoreconf --install --force --verbose 30 | 31 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/ca-cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/ca-cert.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/ca-key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/ca-key.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/ca-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXgIBAAKBgQDNrN1H7L63JMNjG1SYeeHHMRZZ1p13nY3ii+0EF7LG6+Sbkb4x 3 | UGKXWLV/Kd6zcSQLv5cJfybcLeyoLrJkK3orNRktooDLmf2UcRsjjVTbLmKNgQgt 4 | 9CRyJ2z5yY7bTHW6mwH4Pxj05n/7V5SSzIjEtADCqtTliBizES9zwNYpCQIDAQAB 5 | AoGAUjU9ASmklSlxm2RqLMPStb5uE5yPtibYdmu9YbxjLdVNu8zGO4nIznubl+dR 6 | Z2HaqYN7yET1cF4+0H5RuW4TVwhc4WdPYV6lCewR3eS4tPTgYzRM2jIgH4VBXbzb 7 | JMWvvgJfIvF8zAVWpqY3muv/Ui2/MEuaHe6rnCziwbidyTECQQDpiRbNrC7yTWYX 8 | vXgSEo2OhCTeLVBBhYw0Cfr7bYdRTBMo8GARhj3CpM9exW9bETIKtSjQgkdEJpLi 9 | eFm0CLP9AkEA4XW0arWMEfvMQgLF2kjOKUMUAZoss6TLc+uhNVettRYXgANfMje+ 10 | om/5MYS/AG6NAw4wHNAvN/B+wmS/7kvo/QJBAOGZiyvYn+l2l59rayiaP6FjSnJO 11 | 9+6z4kMLOSfWIRiKEyBDRaroMZVsvN7if7ZLoDnz05/JmqrdUJvyg0WF+skCQQCv 12 | sMd8+ChEw1Dyh7KiXWW6JblrXjdDbkHU/WNMbBzDJon9iaMfQO1fK56mhelJbtyX 13 | 6vB3I4wILXK6DUS7b5AJAkEAkeQuyowKaS9i4mI7pY1aLFY+f2dCkhKSX/OX3eGp 14 | f60uLfRKV7N6EL3X5OxqCCHp8kZJ0mlHiiBL8rFSg6tvEA== 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/client-cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/client-cert.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/client-key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/client-key.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/client-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXAIBAAKBgQC8cw6oSfN0oqnvGKXaVZkh+cjss21I5TU1dXc37NFhkF8+2eTV 3 | 35TKwanXGdqGyehNxGE2gv6rrX53JbuNEaW8YjqoOMw5ogRmtPf386raTQIOu16N 4 | aUjcd8koDiLpa6Qmukzowf1Kbysf74qu9pBi5WQe6ys8Z8jcJwD2kWhlqQIDAQAB 5 | AoGAE5fq6Dh4JaJcBM4NQHwx5cRwzZuCO1gJhjtmX9wxkPFP1dsV3d7XO5WTMRgx 6 | Dl6j1qIacW6BSBxLz9uOeoZhMtz7VcEWbSeSJEWL8bhIsUsdrN7a3Y4vwpH7palu 7 | +Dpq8f1QGO+f58PKeOpW09NyW5bdTgZOOsPZvnK2ZQcHTAECQQD6R9R6fJI8Ve+B 8 | 8EEwLaPPjxzmhycFcA3fmDXW8Ys4LyS10IS2eU9xKZRa8GRqrOdyxu1NWZg+Zzrz 9 | dCz5YRdpAkEAwMGCDQzrxi/ckvmdghox6en3S/KChxzuFmrRHRiCcPPAti/28/cd 10 | 8YYjyE7rj1aOj/W/8fcrtcw9xlc5DBtUQQJBAJ1+Bd7t9Ley+/wwS1Ud4y8BR5Zp 11 | Bc0OLiy9g2O2q3y3bcpbZKfOvobfO1PeYdIe66X2N+2sq3jZTOdV+9cRmcECQBiY 12 | GCnmHic5cCForAovoXLBIYaVOMZYkKBXnLrjp7EVyN72G8JhI3bvsJ0cRL4TQzln 13 | F8idyvv1RWSLOIIs8oECQDmJ5ZwZVTC6t0iMSBQO9J9+d5dD4bQZNTEjdZw7RK1p 14 | ElbuAGFkFmbTfHQrFbSi/r8IaxpdP5ASsQWGMSnb2eI= 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/client-keyPub.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/client-keyPub.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/dh1024.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/dh1024.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/dh1024.pem: -------------------------------------------------------------------------------- 1 | PKCS#3 DH Parameters: (1024 bit) 2 | prime: 3 | 00:a4:d2:b8:6e:78:f5:d9:ed:2d:7c:dd:b6:16:86: 4 | 5a:4b:05:76:90:dd:66:61:b9:6d:52:a7:1c:af:62: 5 | c6:69:47:7b:39:f2:fb:94:ec:bc:79:ff:24:5e:ef: 6 | 79:bb:59:b2:fc:ca:07:d6:f4:e9:34:f7:e8:38:e7: 7 | d7:33:44:1d:a3:64:76:1a:84:97:54:74:40:84:1f: 8 | 15:fe:7c:25:2a:2b:25:fd:9e:c1:89:33:8c:39:25: 9 | 2b:40:e6:cd:f8:a8:a1:8a:53:c6:47:b2:a0:d7:8f: 10 | eb:2e:60:0a:0d:4b:f8:b4:94:8c:63:0a:ad:c7:10: 11 | ea:c7:a1:b9:9d:f2:a8:37:73 12 | generator: 2 (0x2) 13 | -----BEGIN DH PARAMETERS----- 14 | MIGHAoGBAKTSuG549dntLXzdthaGWksFdpDdZmG5bVKnHK9ixmlHezny+5TsvHn/ 15 | JF7vebtZsvzKB9b06TT36Djn1zNEHaNkdhqEl1R0QIQfFf58JSorJf2ewYkzjDkl 16 | K0DmzfiooYpTxkeyoNeP6y5gCg1L+LSUjGMKrccQ6sehuZ3yqDdzAgEC 17 | -----END DH PARAMETERS----- 18 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/dsa1024.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/dsa1024.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/dsa1024.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQD3S/m7FZjr3d4eTnGIhfK3uuJK2nZAzWlInoN8EfdlMXj1JS33 3 | t/hSP77YtsX+GBVbudWShryyF3zYsL6gfPLVc3pYj43lSgCZg0rAnhYJoRA01Rm7 4 | Y+Pdg3R/EMpzde4xSt2f4AJqne6yS6drKmzHhnfoBBXckrR6KR9Og2OFVQIVANIF 5 | 5HP7wZnF3GikjZInPeJSX4mLAoGBAKohAglDbvuiVBSFCvQofMvM2/UeohipId6I 6 | iDOMLuuNo/AdyI/2fvjPEvW0oRFvDNTwBq3E/BRFx5QVvBlLru+Tak/MFNhHizlm 7 | hwLUKAq47gk39ACgBKd5p9I89zRDVo7QfMLYTQ+J7RTBLJxMGZue3FMJn98t8Awn 8 | VDp3FC3eAoGBAOgffLfAVFGnKC1YfN7UXN3VdoQ8NiDAwyXXOjjhVMj9QGgaIVQm 9 | ORS/9qOcXtkr98klugAJy38MSiT9FRYVSM0LUkRAe5BjK5AixRgFgFOvgx9U4rCi 10 | C1qSJOFiKD+3yrmJ1qC3ra4F4cFZQO1KG2ine/vDIIHvS/NpkbDOOrA4AhQlODuh 11 | GXXfm/VyU0854RzsE4SCGA== 12 | -----END DSA PRIVATE KEY----- 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | certs/1024/ca-cert.pem \ 7 | certs/1024/ca-key.pem \ 8 | certs/1024/client-cert.pem \ 9 | certs/1024/client-key.pem \ 10 | certs/1024/dh1024.pem \ 11 | certs/1024/dsa1024.pem \ 12 | certs/1024/server-cert.pem \ 13 | certs/1024/server-key.pem 14 | 15 | EXTRA_DIST += \ 16 | certs/1024/ca-cert.der \ 17 | certs/1024/ca-key.der \ 18 | certs/1024/client-cert.der \ 19 | certs/1024/client-key.der \ 20 | certs/1024/client-keyPub.der \ 21 | certs/1024/dh1024.der \ 22 | certs/1024/dsa1024.der \ 23 | certs/1024/rsa1024.der \ 24 | certs/1024/server-cert.der \ 25 | certs/1024/server-key.der 26 | 27 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/rsa1024.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/rsa1024.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/server-cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/server-cert.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/server-key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/1024/server-key.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/1024/server-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXQIBAAKBgQCqPqWc0xdJZUPe0PNLHNtJDPx6ZQVt3mrE5HMsipaCjyOlBnEc 3 | Bj4vko0LKTRFWempvGHXJDddtcQ3jbpnsu8DJ/rBtM1rAGa01nNwHwg6zHet6fk0 4 | 1POgLannWKnAYYS27D0Krf1chnOqa0fYiy5YS2kSgiZV5hS/VXCI/vl14QIDAQAB 5 | AoGACkzB/kvzI7ihs5BWt9umFLRZbhpAitYjBYiAw1gbJQj98hUCsNxb1Mr8B4nV 6 | pMB8140TKk4Bn4TIu0ey2GVF+oSfiND09SI1dxFnHN5fhW1V2KcHFYzhsKd5tEed 7 | cLPS8R9BTGVyJutmyJX2bYc1U/6xUk12W2FTibEgGovkffECQQDZbuHZBlah9t9U 8 | RcXsasgqOE5rxujq+29lLbreJ2M3IS6kVavn285x4Qj88spSM1XoObPaxbBphG7j 9 | z0eApraFAkEAyHENN0fheyEtES2VLsfQttN8XJM8WyLl4IttR/kUD54IG1OrCqnk 10 | f0DT32J0EKL+gx/PVWbrXcWDuuyf0rUGrQJBALdoGafH+fGa3V0nkcFPfVJntnah 11 | DT2RI7Cz90mG7eDF46MJBP2J4sUabkt3vQPDe7ZsXfKvCJSo+iS9ZnH1rkUCQBVS 12 | 0ZEb+ITc1qqJKuG7KB0LCqPelgEsCUCGFK4fdV7j9QDTOdL8l+5huyh8lNRgQqs4 13 | axouxMNJC+aK3cXQtFECQQCpi6ep7q67F8ty8lAinbPf4EA3CNV/GViAcHlpmd9i 14 | DSGr3bLOaLOfh69V9KrhAHK+bsOUSdy7jhp45UkfVUGh 15 | -----END RSA PRIVATE KEY----- 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ca-cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/ca-cert.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ca-key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/ca-key.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/client-cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/client-cert.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/client-ecc-cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/client-ecc-cert.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/client-key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/client-key.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/client-keyPub.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/client-keyPub.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/crl/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | certs/crl/crl.pem \ 7 | certs/crl/cliCrl.pem \ 8 | certs/crl/eccSrvCRL.pem \ 9 | certs/crl/eccCliCRL.pem 10 | 11 | EXTRA_DIST += \ 12 | certs/crl/crl.revoked 13 | 14 | 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/dh2048.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/dh2048.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/dsa2048.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/dsa2048.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/dsaparams.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PARAMETERS----- 2 | MIIBHwKBgQDN3iVogFMN5XfW0pA5P5CiPzOUbuhPK2OrMKsVuhHqil2NzLjUodXB 3 | R51ac2piSdEGB2f2L6M5vU4NtNMiI4TskyZaSe58iUhmTejo2FD7pXGfIhjl5gtG 4 | h2buUo9GT7UDzu3jvuW1gdJZ6cCtTdBNJve6UOjJj/4kGT0up1I8bQIVAPtH++yB 5 | IMgc6Uq6BG8Zm5TugmfTAoGBAJuVu4XFWEoynKpEhdZo3D4U9M5to0k46tZhSJJa 6 | QJVJOKrhOSloWEeKSwHhLo5sY29AylA/jAuZ5HJCuLHCJkjxnIPGNy5arhEJ2fOt 7 | H2+trVDjeDLm3o6qv9EAn7MCEhmiFewUGFwOJs75rsx7tdEm/IX+FJO2nX124zWX 8 | Ht7E 9 | -----END DSA PARAMETERS----- 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-client-key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/ecc-client-key.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-client-key.pem: -------------------------------------------------------------------------------- 1 | ASN1 OID: prime256v1 2 | -----BEGIN EC PARAMETERS----- 3 | BggqhkjOPQMBBw== 4 | -----END EC PARAMETERS----- 5 | -----BEGIN EC PRIVATE KEY----- 6 | MHcCAQEEIPjPkmu9HijxqKuhI08ydBiIUK1+x+yS+I+XTa9WiWXHoAoGCCqGSM49 7 | AwEHoUQDQgAEVb/0D0RQmj3Om7fwxU31cHvU7CSOGYDsWkyiJANiLJva76I1EkOE 8 | dhbGVpUGzAGpvfZ1GkL3vamyNiJfx11/tA== 9 | -----END EC PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-client-keyPub.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/ecc-client-keyPub.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-client-keyPub.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEVb/0D0RQmj3Om7fwxU31cHvU7CSO 3 | GYDsWkyiJANiLJva76I1EkOEdhbGVpUGzAGpvfZ1GkL3vamyNiJfx11/tA== 4 | -----END PUBLIC KEY----- 5 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-key-comp.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN EC PRIVATE KEY----- 2 | MFcCAQEEIEW2aQJznGyFoThbcujox6zEA41TNQT6bCjcNI3hqAmMoAoGCCqGSM49 3 | AwEHoSQDIgACuzOsTCdQSsZKpQTDPN6fNttyLc6U6iv6yyAJOSwW6GE= 4 | -----END EC PRIVATE KEY----- 5 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-keyPkcs8.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgRbZpAnOcbIWhOFty 3 | 6OjHrMQDjVM1BPpsKNw0jeGoCYyhRANCAAS7M6xMJ1BKxkqlBMM83p8223ItzpTq 4 | K/rLIAk5LBboYQLpr03TApOaMVuXkiF/8M8Y2pERAjSG6CBYMwuANInY 5 | -----END PRIVATE KEY----- 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-keyPkcs8Enc.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN ENCRYPTED PRIVATE KEY----- 2 | MIGwMBsGCSqGSIb3DQEFAzAOBAjm9hxk+ipSWwICCAAEgZCiBEm+uh/GEXdmh/GY 3 | YTQDWgPGmG0V108MPMxO73hqN++hFEAcaRxXQwWrQvqtxeJGwquWzaWOv56S7u6W 4 | CfkkgHl2sgRorCfWD4wQxA8WEghCzRTA3LU6Xy9uwqb23fSGes2dIvdp8FQwqY1Q 5 | 9s1WwblMcQntCR/AvX6sdEyb8c/yzLJvivjrqt1QGG/Cr6Y= 6 | -----END ENCRYPTED PRIVATE KEY----- 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ecc-keyPub.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/ecc-keyPub.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/external/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | certs/external/ca-globalsign-root-r2.pem \ 7 | certs/external/ca-verisign-g5.pem 8 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/gen_revoked.sh: -------------------------------------------------------------------------------- 1 | ########################################################### 2 | ########## update and sign server-revoked-key.pem ################ 3 | ########################################################### 4 | echo "Updating server-revoked-cert.pem" 5 | echo "" 6 | #pipe the following arguments to openssl req... 7 | echo -e "US\nMontana\nBozeman\nwolfSSL_revoked\nSupport_revoked\nwww.wolfssl.com\ninfo@wolfssl.com\n.\n.\n" | openssl req -new -key server-revoked-key.pem -nodes > server-revoked-req.pem 8 | 9 | openssl x509 -req -in server-revoked-req.pem -extfile renewcerts/wolfssl.cnf -extensions wolfssl_opts -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 02 > server-revoked-cert.pem 10 | 11 | rm server-revoked-req.pem 12 | 13 | openssl x509 -in ca-cert.pem -text > ca_tmp.pem 14 | openssl x509 -in server-revoked-cert.pem -text > srv_tmp.pem 15 | mv srv_tmp.pem server-revoked-cert.pem 16 | cat ca_tmp.pem >> server-revoked-cert.pem 17 | rm ca_tmp.pem 18 | 19 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/index0.txt: -------------------------------------------------------------------------------- 1 | V 161213070133Z 63 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=wolfSSL root CA/emailAddress=info@wolfssl.com 2 | V 161213070133Z 01 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=wolfSSL intermediate CA 1/emailAddress=info@wolfssl.com 3 | V 161213070133Z 02 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=wolfSSL intermediate CA 2/emailAddress=info@wolfssl.com 4 | R 161213070133Z 151201070133Z 03 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=wolfSSL REVOKED intermediate CA/emailAddress=info@wolfssl.com 5 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/index1.txt: -------------------------------------------------------------------------------- 1 | V 161213070133Z 05 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=www1.wolfssl.com/emailAddress=info@wolfssl.com 2 | R 161213070133Z 151201070133Z 06 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=www2.wolfssl.com/emailAddress=info@wolfssl.com 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/index2.txt: -------------------------------------------------------------------------------- 1 | V 161213070133Z 07 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=www3.wolfssl.com/emailAddress=info@wolfssl.com 2 | R 161213070133Z 151201070133Z 08 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=www4.wolfssl.com/emailAddress=info@wolfssl.com 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/index3.txt: -------------------------------------------------------------------------------- 1 | V 161213070133Z 09 unknown /C=US/ST=Washington/L=Seattle/O=wolfSSL/OU=Engineering/CN=www5.wolfssl.com/emailAddress=info@wolfssl.com 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/ocspd0.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | openssl ocsp -port 22220 -nmin 1 \ 4 | -index certs/ocsp/index0.txt \ 5 | -rsigner certs/ocsp/ocsp-responder-cert.pem \ 6 | -rkey certs/ocsp/ocsp-responder-key.pem \ 7 | -CA certs/ocsp/root-ca-cert.pem \ 8 | $@ 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/ocspd1.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | openssl ocsp -port 22221 -nmin 1 \ 4 | -index certs/ocsp/index1.txt \ 5 | -rsigner certs/ocsp/ocsp-responder-cert.pem \ 6 | -rkey certs/ocsp/ocsp-responder-key.pem \ 7 | -CA certs/ocsp/intermediate1-ca-cert.pem \ 8 | $@ 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/ocspd2.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | openssl ocsp -port 22222 -nmin 1 \ 4 | -index certs/ocsp/index2.txt \ 5 | -rsigner certs/ocsp/ocsp-responder-cert.pem \ 6 | -rkey certs/ocsp/ocsp-responder-key.pem \ 7 | -CA certs/ocsp/intermediate2-ca-cert.pem \ 8 | $@ 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/ocsp/ocspd3.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | openssl ocsp -port 22223 -nmin 1 \ 4 | -index certs/ocsp/index3.txt \ 5 | -rsigner certs/ocsp/ocsp-responder-cert.pem \ 6 | -rkey certs/ocsp/ocsp-responder-key.pem \ 7 | -CA certs/ocsp/intermediate3-ca-cert.pem \ 8 | $@ 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/rsa2048.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/rsa2048.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/server-cert-chain.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/server-cert-chain.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/server-cert.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/server-cert.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/server-ecc-comp.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/server-ecc-comp.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/server-ecc-rsa.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/server-ecc-rsa.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/server-ecc.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/server-ecc.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/server-key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/server-key.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test-pathlen/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | certs/test-pathlen/server-0-1-ca.pem \ 7 | certs/test-pathlen/server-0-1-cert.pem \ 8 | certs/test-pathlen/server-0-1-chain.pem \ 9 | certs/test-pathlen/server-0-ca.pem \ 10 | certs/test-pathlen/server-0-cert.pem \ 11 | certs/test-pathlen/server-0-chain.pem \ 12 | certs/test-pathlen/server-1-0-ca.pem \ 13 | certs/test-pathlen/server-1-0-cert.pem \ 14 | certs/test-pathlen/server-1-0-chain.pem \ 15 | certs/test-pathlen/server-1-ca.pem \ 16 | certs/test-pathlen/server-1-cert.pem \ 17 | certs/test-pathlen/server-1-chain.pem \ 18 | certs/test-pathlen/server-127-ca.pem \ 19 | certs/test-pathlen/server-127-cert.pem \ 20 | certs/test-pathlen/server-127-chain.pem \ 21 | certs/test-pathlen/server-128-ca.pem \ 22 | certs/test-pathlen/server-128-cert.pem \ 23 | certs/test-pathlen/server-128-chain.pem 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test-servercert.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/test-servercert.p12 -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/catalog.txt: -------------------------------------------------------------------------------- 1 | crit-cert.pem: 2 | Simple self-signed certificate with critical Basic Constraints and Key Usage 3 | extensions. 4 | dh512.pem, dh512.der: 5 | 512-bit DH parameters. Used for testing the rejection of lower-bit sized DH 6 | keys. 7 | dh1024.pem, dh1024.der: 8 | 1024-bit DH parameters. Used for testing the rejection of lower-bit sized DH 9 | keys. 10 | digsigku.pem: 11 | ECC certificate with a KeyUsage extension without the digitalSignature bit 12 | set. 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/crit-cert.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIC7DCCApagAwIBAgIJAKBIQJVDXWL5MA0GCSqGSIb3DQEBBAUAMIHHMQswCQYD 3 | VQQGEwJVUzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEm 4 | MCQGA1UECgwdSm9obidzIFNvZnR3YXJlIFBsdW1iaW5nLCBMTEMxFDASBgNVBAsM 5 | C0VuZ2luZWVyaW5nMSkwJwYDVQQDDCBlbmdpbmVlcmluZy5zb2Z0d2FyZXBsdW1i 6 | aW5nLmJpejEoMCYGCSqGSIb3DQEJARYZam9obkBzb2Z0d2FyZXBsdW1iaW5nLmJp 7 | ejAeFw0xNDAzMTMxNjUyMzRaFw0xNjEyMDcxNjUyMzRaMIHHMQswCQYDVQQGEwJV 8 | UzETMBEGA1UECAwKV2FzaGluZ3RvbjEQMA4GA1UEBwwHU2VhdHRsZTEmMCQGA1UE 9 | CgwdSm9obidzIFNvZnR3YXJlIFBsdW1iaW5nLCBMTEMxFDASBgNVBAsMC0VuZ2lu 10 | ZWVyaW5nMSkwJwYDVQQDDCBlbmdpbmVlcmluZy5zb2Z0d2FyZXBsdW1iaW5nLmJp 11 | ejEoMCYGCSqGSIb3DQEJARYZam9obkBzb2Z0d2FyZXBsdW1iaW5nLmJpejBcMA0G 12 | CSqGSIb3DQEBAQUAA0sAMEgCQQDicEBO1u+ysy7iakWAewKMYPKwzY6Oaq+FUopr 13 | SIjgrX8JIV5gnnvT0HrV/Ju2t4sBy41rZc50cqOdOj9yZctRAgMBAAGjYzBhMB0G 14 | A1UdDgQWBBQYkZqEi8LDLWrQZjw5usbSedJdAzAfBgNVHSMEGDAWgBQYkZqEi8LD 15 | LWrQZjw5usbSedJdAzAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIF4DAN 16 | BgkqhkiG9w0BAQQFAANBAEU0nmhsV0h59xJIHESZPqGj7LYEoSnyZ8/vs+KBJmhm 17 | A8XaCALu1m2CWCrW5wjqSGbbqQfy9vFqsnNX+Qt9KiU= 18 | -----END CERTIFICATE----- 19 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/crit-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIBOQIBAAJBAOJwQE7W77KzLuJqRYB7Aoxg8rDNjo5qr4VSimtIiOCtfwkhXmCe 3 | e9PQetX8m7a3iwHLjWtlznRyo506P3Jly1ECAwEAAQJAG21BPMtn6Rsu+JmqpW9A 4 | 1cQAYU3kkHd3nwxqW6hDfAMNY8qZCkGsrBxSAgvIItQwytV7zn+F8FPDwViVz1xQ 5 | gQIhAPWkmZGz7sRIuZB4JQiXzVJvUprsfgpg6ODfpWl+cabJAiEA6/xdEuMqbiY+ 6 | g7xG1MMOe2zstDB+vvxT5pEQxGklXEkCIBo9qC4Zc6NCRZh6TTJ6zPNGcyObqec/ 7 | 7QDAw3HekROJAiBm+N7QIAniuJNsvloV+us11kjPM54KzmX55PDxE4R26QIgU5DH 8 | iIm5DKbAJqgaXOXo35v/PUqYZmJUc2bPF158+vg= 9 | -----END RSA PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/dh1024.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/test/dh1024.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/dh1024.pem: -------------------------------------------------------------------------------- 1 | DH Parameters: (1024 bit) 2 | prime: 3 | 00:ee:73:a6:93:be:a9:b8:5f:52:b9:9c:d4:a8:0f: 4 | 8d:f9:b0:53:29:a9:25:06:0e:95:dd:f5:89:c8:6b: 5 | 09:ae:94:1c:62:35:05:39:ab:6d:46:c5:b2:a2:fd: 6 | a0:e1:ba:01:a5:00:4f:7f:44:e5:74:81:8b:3a:2e: 7 | fa:ea:fe:f6:c3:18:11:ca:fd:ee:8b:9c:9e:0d:1a: 8 | 5a:57:77:74:63:91:e7:51:bb:6d:79:93:e2:b4:5c: 9 | fa:21:21:ff:5d:b3:e7:5c:92:08:ca:cb:4e:e7:8c: 10 | f3:1c:21:8c:44:8c:6d:31:60:7a:e6:37:15:79:1b: 11 | 1d:5d:c3:56:c3:a0:4a:8d:03 12 | generator: 2 (0x2) 13 | -----BEGIN DH PARAMETERS----- 14 | MIGHAoGBAO5zppO+qbhfUrmc1KgPjfmwUympJQYOld31ichrCa6UHGI1BTmrbUbF 15 | sqL9oOG6AaUAT39E5XSBizou+ur+9sMYEcr97oucng0aWld3dGOR51G7bXmT4rRc 16 | +iEh/12z51ySCMrLTueM8xwhjESMbTFgeuY3FXkbHV3DVsOgSo0DAgEC 17 | -----END DH PARAMETERS----- 18 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/dh512.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/certs/test/dh512.der -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/dh512.pem: -------------------------------------------------------------------------------- 1 | DH Parameters: (512 bit) 2 | prime: 3 | 00:87:76:23:99:e1:df:db:6a:43:8e:30:2b:4f:63: 4 | 53:05:77:ce:80:02:8e:b1:a8:44:4f:30:d8:c9:45: 5 | d9:cd:65:e3:4b:2d:b6:eb:77:a3:26:ea:4d:03:84: 6 | d9:d7:b6:6a:b6:dd:51:97:66:c1:77:e6:6b:ed:19: 7 | 91:45:c5:27:b3 8 | generator: 2 (0x2) 9 | -----BEGIN DH PARAMETERS----- 10 | MEYCQQCHdiOZ4d/bakOOMCtPY1MFd86AAo6xqERPMNjJRdnNZeNLLbbrd6Mm6k0D 11 | hNnXtmq23VGXZsF35mvtGZFFxSezAgEC 12 | -----END DH PARAMETERS----- 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/certs/test/expired-key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIBOwIBAAJBAMZ7wGiBL96CP/msw4ZKZrfs1PH2ZCH/9aI0QtA4n8bdO24mZWpU 3 | lt3Se+s2oq5+Kp5+VqW2h58VxxhmfhZ34qcCAwEAAQJBAJSbGxgjgV+rTZL2Ev58 4 | viN/IoB25cm/Bn4Heu7DNn2A2kpdGX2cCaf7rEQoIKCiHxvopvxOcd/7nLS/gNli 5 | dCECIQD/cX/9fvB1Uajw0fmvwNON9+3P9uJSqpig90zL32pwjQIhAMbqee9TBMN4 6 | TxXbgWqA92PrCXe8WDZ3PwoJqdR6MRUDAiEAny+TDF1z6hiWiGTCDgXDkKBlwgjf 7 | p5aKgR077XzwLu0CICVpWEGg1ZaF/CnaPP7w/pZ2UDOK4vRrfRnAM4bY7H5NAiBS 8 | 1eXJ/MCZ2uPfpl7XK2BU9P69KdKUk5WHxdRchVvcDg== 9 | -----END RSA PRIVATE KEY----- 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/aes.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/des3.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/hmac.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/misc.c: -------------------------------------------------------------------------------- 1 | /* misc.c 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #ifdef NO_INLINE 24 | #include 25 | #else 26 | /* for inline includes */ 27 | #define WOLFSSL_MISC_INCLUDED 28 | #include 29 | #endif 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/random.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/rsa.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/sha.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/sha256.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/ctaocrypt/src/sha512.c: -------------------------------------------------------------------------------- 1 | /* dummy file for autoconf */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/callbacks.h: -------------------------------------------------------------------------------- 1 | /* callbacks.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/certs_test.h: -------------------------------------------------------------------------------- 1 | /* certs_test.h */ 2 | 3 | #include 4 | 5 | #ifndef CYASSL_CERTS_TEST_H 6 | #define CYASSL_CERTS_TEST_H WOLFSSL_CERTS_TEST_H 7 | #else 8 | #undef CYASSL_CERTS_TEST_H 9 | #define CYASSL_CERTS_TEST_H WOLFSSL_CERTS_TEST_H 10 | #endif 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/crl.h: -------------------------------------------------------------------------------- 1 | /* crl.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/coding.h: -------------------------------------------------------------------------------- 1 | /* coding.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | #ifndef CTAO_CRYPT_CODING_H 25 | #define CTAO_CRYPT_CODING_H 26 | 27 | #include 28 | 29 | #endif /* CTAO_CRYPT_CODING_H */ 30 | 31 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/dsa.h: -------------------------------------------------------------------------------- 1 | /* dsa.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | #ifndef NO_DSA 25 | 26 | #ifndef CTAO_CRYPT_DSA_H 27 | #define CTAO_CRYPT_DSA_H 28 | 29 | #include 30 | 31 | #endif /* CTAO_CRYPT_DSA_H */ 32 | #endif /* NO_DSA */ 33 | 34 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/misc.h: -------------------------------------------------------------------------------- 1 | /* misc.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | #ifndef CTAO_CRYPT_MISC_H 25 | #define CTAO_CRYPT_MISC_H 26 | 27 | #include 28 | 29 | #endif /* CTAO_CRYPT_MISC_H */ 30 | 31 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/mpi_class.h: -------------------------------------------------------------------------------- 1 | /* mpi_class.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | 25 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/mpi_superclass.h: -------------------------------------------------------------------------------- 1 | /* mpi_superclass.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | /* super class file for PK algos */ 25 | 26 | #include 27 | 28 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/port/pic32/pic32mz-crypt.h: -------------------------------------------------------------------------------- 1 | /* pic32mz-crypt.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #ifndef PIC32MZ_CRYPT_H 24 | #define PIC32MZ_CRYPT_H 25 | 26 | #include 27 | 28 | #endif /* PIC32MZ_CRYPT_H */ 29 | 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/tfm.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/cyassl/ctaocrypt/tfm.h -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ctaocrypt/wc_port.h: -------------------------------------------------------------------------------- 1 | /* port.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | #ifndef CTAO_CRYPT_PORT_H 25 | #define CTAO_CRYPT_PORT_H 26 | 27 | #include 28 | #include 29 | #define CyaSSL_Mutex wolfSSL_Mutex 30 | 31 | #endif /* CTAO_CRYPT_PORT_H */ 32 | 33 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/error-ssl.h: -------------------------------------------------------------------------------- 1 | /* error-ssl.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | include cyassl/ctaocrypt/include.am 6 | include cyassl/openssl/include.am 7 | 8 | EXTRA_DIST+= cyassl/sniffer_error.rc 9 | 10 | nobase_include_HEADERS+= \ 11 | cyassl/error-ssl.h \ 12 | cyassl/ssl.h \ 13 | cyassl/sniffer_error.h \ 14 | cyassl/sniffer.h \ 15 | cyassl/callbacks.h \ 16 | cyassl/certs_test.h \ 17 | cyassl/test.h \ 18 | cyassl/version.h \ 19 | cyassl/ocsp.h \ 20 | cyassl/crl.h 21 | 22 | noinst_HEADERS+= \ 23 | cyassl/internal.h 24 | 25 | # For distro build don't install options.h. 26 | # It depends on the architecture and conflicts with Multi-Arch. 27 | if BUILD_DISTRO 28 | noinst_HEADERS+= cyassl/options.h 29 | else 30 | nobase_include_HEADERS+= cyassl/options.h 31 | endif 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/internal.h: -------------------------------------------------------------------------------- 1 | /* internal.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/ocsp.h: -------------------------------------------------------------------------------- 1 | /* ocsp.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/asn1.h: -------------------------------------------------------------------------------- 1 | /* asn1.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/bio.h: -------------------------------------------------------------------------------- 1 | /* bio.h for openssl */ 2 | 3 | #include 4 | 5 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/bn.h: -------------------------------------------------------------------------------- 1 | /* bn.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/conf.h: -------------------------------------------------------------------------------- 1 | /* conf.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/crypto.h: -------------------------------------------------------------------------------- 1 | /* crypto.h for openSSL */ 2 | 3 | #include 4 | 5 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/des.h: -------------------------------------------------------------------------------- 1 | /* des.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | /* des.h defines mini des openssl compatibility layer 25 | * 26 | */ 27 | 28 | #include 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/dh.h: -------------------------------------------------------------------------------- 1 | /* dh.h for openSSL */ 2 | 3 | 4 | #include 5 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/dsa.h: -------------------------------------------------------------------------------- 1 | /* dsa.h for openSSL */ 2 | 3 | #ifndef CYASSL_OPENSSL_DSA 4 | #define CYASSL_OPENSSL_DSA 5 | 6 | #define CyaSSL_DSA_LoadDer wolfSSL_DSA_LoadDer 7 | #define CyaSSL_DSA_do_sign wolfSSL_DSA_do_sign 8 | 9 | #include 10 | #include 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ec.h: -------------------------------------------------------------------------------- 1 | /* ec.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ec25519.h: -------------------------------------------------------------------------------- 1 | /* ec25519.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ecdh.h: -------------------------------------------------------------------------------- 1 | /* ecdh.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ecdsa.h: -------------------------------------------------------------------------------- 1 | /* ecdsa.h for openssl */ 2 | 3 | #include -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ed25519.h: -------------------------------------------------------------------------------- 1 | /* ed25519.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/engine.h: -------------------------------------------------------------------------------- 1 | /* engine.h for libcurl */ 2 | 3 | #include 4 | 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/err.h: -------------------------------------------------------------------------------- 1 | /* err.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/hmac.h: -------------------------------------------------------------------------------- 1 | /* hmac.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | /* hmac.h defines mini hamc openssl compatibility layer 25 | * 26 | */ 27 | 28 | #include 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/lhash.h: -------------------------------------------------------------------------------- 1 | /* lhash.h for openSSL */ 2 | 3 | #include -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/md4.h: -------------------------------------------------------------------------------- 1 | /* md4.h for libcurl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/md5.h: -------------------------------------------------------------------------------- 1 | /* md5.h for openssl */ 2 | 3 | 4 | #include 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ocsp.h: -------------------------------------------------------------------------------- 1 | /* ocsp.h for libcurl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/opensslconf.h: -------------------------------------------------------------------------------- 1 | /* opensslconf.h for openSSL */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/opensslv.h: -------------------------------------------------------------------------------- 1 | /* opensslv.h compatibility */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ossl_typ.h: -------------------------------------------------------------------------------- 1 | /* ossl_typ.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/pem.h: -------------------------------------------------------------------------------- 1 | /* pem.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/pkcs12.h: -------------------------------------------------------------------------------- 1 | /* pkcs12.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/rand.h: -------------------------------------------------------------------------------- 1 | /* rand.h for openSSL */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ripemd.h: -------------------------------------------------------------------------------- 1 | /* ripemd.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/rsa.h: -------------------------------------------------------------------------------- 1 | /* rsa.h for openSSL */ 2 | 3 | #ifndef CYASSL_OPENSSL_RSA 4 | #define CYASSL_OPENSSL_RSA 5 | 6 | #define CyaSSL_RSA_GenAdd wolfSSL_RSA_GenAdd 7 | #define CyaSSL_RSA_LoadDer wolfSSL_RSA_LoadDer 8 | 9 | #include 10 | #include 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/sha.h: -------------------------------------------------------------------------------- 1 | /* sha.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ssl.h: -------------------------------------------------------------------------------- 1 | /* ssl.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | 24 | /* ssl.h defines openssl compatibility layer 25 | * 26 | */ 27 | #ifndef CYASSL_OPENSSL_H_ 28 | #define CYASSL_OPENSSL_H_ 29 | 30 | #include 31 | #include 32 | 33 | #endif 34 | 35 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/stack.h: -------------------------------------------------------------------------------- 1 | /* stack.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/ui.h: -------------------------------------------------------------------------------- 1 | /* ui.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/x509.h: -------------------------------------------------------------------------------- 1 | /* x509.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/openssl/x509v3.h: -------------------------------------------------------------------------------- 1 | /* x509v3.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/sniffer.h: -------------------------------------------------------------------------------- 1 | /* sniffer.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/sniffer_error.h: -------------------------------------------------------------------------------- 1 | /* sniffer_error.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/test.h: -------------------------------------------------------------------------------- 1 | /* test.h */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/version.h: -------------------------------------------------------------------------------- 1 | /* cyassl/version.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | 25 | #define LIBCYASSL_VERSION_STRING LIBWOLFSSL_VERSION_STRING 26 | #define LIBCYASSL_VERSION_HEX LIBWOLFSSL_VERSION_HEX 27 | 28 | -------------------------------------------------------------------------------- /components/hap/wolfssl/cyassl/version.h.in: -------------------------------------------------------------------------------- 1 | /* cyassl_version.h.in 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #include 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/doc/README.txt: -------------------------------------------------------------------------------- 1 | The wolfSSL manual is available at: 2 | http://www.wolfssl.com/documentation/wolfSSL-Manual.pdf 3 | 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/doc/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | dist_doc_DATA+= doc/README.txt 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/client/client.h: -------------------------------------------------------------------------------- 1 | /* client.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #ifndef WOLFSSL_CLIENT_H 24 | #define WOLFSSL_CLIENT_H 25 | 26 | 27 | THREAD_RETURN WOLFSSL_THREAD client_test(void* args); 28 | 29 | 30 | #endif /* WOLFSSL_CLIENT_H */ 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/client/client.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "client", "client.vcproj", "{F117DD21-2672-4001-9FF8-8DBEBBFCA380}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {F117DD21-2672-4001-9FF8-8DBEBBFCA380}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {F117DD21-2672-4001-9FF8-8DBEBBFCA380}.Debug|Win32.Build.0 = Debug|Win32 14 | {F117DD21-2672-4001-9FF8-8DBEBBFCA380}.Release|Win32.ActiveCfg = Release|Win32 15 | {F117DD21-2672-4001-9FF8-8DBEBBFCA380}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/client/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | 4 | if BUILD_EXAMPLE_CLIENTS 5 | noinst_PROGRAMS += examples/client/client 6 | noinst_HEADERS += examples/client/client.h 7 | examples_client_client_SOURCES = examples/client/client.c 8 | examples_client_client_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 9 | examples_client_client_DEPENDENCIES = src/libwolfssl.la 10 | endif 11 | EXTRA_DIST += examples/client/client.sln 12 | EXTRA_DIST += examples/client/client-ntru.vcproj 13 | EXTRA_DIST += examples/client/client.vcproj 14 | EXTRA_DIST += examples/client/client.vcxproj 15 | 16 | dist_example_DATA+= examples/client/client.c 17 | DISTCLEANFILES+= examples/client/.libs/client 18 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/echoclient/echoclient.h: -------------------------------------------------------------------------------- 1 | /* echoclient.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #ifndef WOLFSSL_ECHOCLIENT_H 24 | #define WOLFSSL_ECHOCLIENT_H 25 | 26 | 27 | void echoclient_test(void* args); 28 | 29 | 30 | #endif /* WOLFSSL_ECHOCLIENT_H */ 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/echoclient/echoclient.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "echoclient", "echoclient.vcproj", "{A7AA93AD-AFF0-4FF0-8AED-14685DE55CF3}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {A7AA93AD-AFF0-4FF0-8AED-14685DE55CF3}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {A7AA93AD-AFF0-4FF0-8AED-14685DE55CF3}.Debug|Win32.Build.0 = Debug|Win32 14 | {A7AA93AD-AFF0-4FF0-8AED-14685DE55CF3}.Release|Win32.ActiveCfg = Release|Win32 15 | {A7AA93AD-AFF0-4FF0-8AED-14685DE55CF3}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/echoclient/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | 6 | if BUILD_EXAMPLE_CLIENTS 7 | noinst_PROGRAMS += examples/echoclient/echoclient 8 | noinst_HEADERS += examples/echoclient/echoclient.h 9 | examples_echoclient_echoclient_SOURCES = examples/echoclient/echoclient.c 10 | examples_echoclient_echoclient_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 11 | examples_echoclient_echoclient_DEPENDENCIES = src/libwolfssl.la 12 | endif 13 | EXTRA_DIST += examples/echoclient/echoclient.sln 14 | EXTRA_DIST += examples/echoclient/echoclient-ntru.vcproj 15 | EXTRA_DIST += examples/echoclient/echoclient.vcproj 16 | EXTRA_DIST += examples/echoclient/echoclient.vcxproj 17 | 18 | dist_example_DATA+= examples/echoclient/echoclient.c 19 | DISTCLEANFILES+= examples/echoclient/.libs/echoclient 20 | 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/echoclient/quit: -------------------------------------------------------------------------------- 1 | quit 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/echoserver/echoserver.h: -------------------------------------------------------------------------------- 1 | /* echoserver.h 2 | * 3 | * Copyright (C) 2006-2016 wolfSSL Inc. 4 | * 5 | * This file is part of wolfSSL. 6 | * 7 | * wolfSSL is free software; you can redistribute it and/or modify 8 | * it under the terms of the GNU General Public License as published by 9 | * the Free Software Foundation; either version 2 of the License, or 10 | * (at your option) any later version. 11 | * 12 | * wolfSSL is distributed in the hope that it will be useful, 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | * GNU General Public License for more details. 16 | * 17 | * You should have received a copy of the GNU General Public License 18 | * along with this program; if not, write to the Free Software 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA 20 | */ 21 | 22 | 23 | #ifndef WOLFSSL_ECHOSERVER_H 24 | #define WOLFSSL_ECHOSERVER_H 25 | 26 | 27 | THREAD_RETURN WOLFSSL_THREAD echoserver_test(void* args); 28 | 29 | 30 | #endif /* WOLFSSL_ECHOSERVER_H */ 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/echoserver/echoserver.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "echoserver", "echoserver.vcproj", "{4F3F3EF1-BB95-466A-87B2-A91C059D0197}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {4F3F3EF1-BB95-466A-87B2-A91C059D0197}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {4F3F3EF1-BB95-466A-87B2-A91C059D0197}.Debug|Win32.Build.0 = Debug|Win32 14 | {4F3F3EF1-BB95-466A-87B2-A91C059D0197}.Release|Win32.ActiveCfg = Release|Win32 15 | {4F3F3EF1-BB95-466A-87B2-A91C059D0197}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/echoserver/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | 6 | if BUILD_EXAMPLE_SERVERS 7 | noinst_PROGRAMS += examples/echoserver/echoserver 8 | noinst_HEADERS += examples/echoserver/echoserver.h 9 | examples_echoserver_echoserver_SOURCES = examples/echoserver/echoserver.c 10 | examples_echoserver_echoserver_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 11 | examples_echoserver_echoserver_DEPENDENCIES = src/libwolfssl.la 12 | endif 13 | EXTRA_DIST += examples/echoserver/echoserver.sln 14 | EXTRA_DIST += examples/echoserver/echoserver-ntru.vcproj 15 | EXTRA_DIST += examples/echoserver/echoserver.vcproj 16 | EXTRA_DIST += examples/echoserver/echoserver.vcxproj 17 | 18 | dist_example_DATA+= examples/echoserver/echoserver.c 19 | DISTCLEANFILES+= examples/echoserver/.libs/echoserver 20 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | 4 | include examples/client/include.am 5 | include examples/echoclient/include.am 6 | include examples/echoserver/include.am 7 | include examples/server/include.am 8 | include examples/sctp/include.am 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/server/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | 6 | if BUILD_EXAMPLE_SERVERS 7 | noinst_PROGRAMS += examples/server/server 8 | noinst_HEADERS += examples/server/server.h 9 | examples_server_server_SOURCES = examples/server/server.c 10 | examples_server_server_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 11 | examples_server_server_DEPENDENCIES = src/libwolfssl.la 12 | endif 13 | EXTRA_DIST += examples/server/server.sln 14 | EXTRA_DIST += examples/server/server-ntru.vcproj 15 | EXTRA_DIST += examples/server/server.vcproj 16 | EXTRA_DIST += examples/server/server.vcxproj 17 | 18 | dist_example_DATA+= examples/server/server.c 19 | DISTCLEANFILES+= examples/server/.libs/server 20 | 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/examples/server/server.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "server", "server.vcproj", "{13A60276-EFB2-4D3F-AFC3-D66E4C4CC27B}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {13A60276-EFB2-4D3F-AFC3-D66E4C4CC27B}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {13A60276-EFB2-4D3F-AFC3-D66E4C4CC27B}.Debug|Win32.Build.0 = Debug|Win32 14 | {13A60276-EFB2-4D3F-AFC3-D66E4C4CC27B}.Release|Win32.ActiveCfg = Release|Win32 15 | {13A60276-EFB2-4D3F-AFC3-D66E4C4CC27B}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/lib/dummy: -------------------------------------------------------------------------------- 1 | // this is a dummy file 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/m4/ax_add_am_macro.m4: -------------------------------------------------------------------------------- 1 | # =========================================================================== 2 | # http://www.gnu.org/software/autoconf-archive/ax_add_am_macro.html 3 | # =========================================================================== 4 | # 5 | # SYNOPSIS 6 | # 7 | # AX_ADD_AM_MACRO([RULE]) 8 | # 9 | # DESCRIPTION 10 | # 11 | # Adds the specified rule to $AMINCLUDE. This macro will only work 12 | # properly with implementations of Make which allow include statements. 13 | # See also AX_ADD_AM_MACRO_STATIC. 14 | # 15 | # LICENSE 16 | # 17 | # Copyright (c) 2009 Tom Howard 18 | # 19 | # Copying and distribution of this file, with or without modification, are 20 | # permitted in any medium without royalty provided the copyright notice 21 | # and this notice are preserved. This file is offered as-is, without any 22 | # warranty. 23 | 24 | #serial 9 25 | 26 | AC_DEFUN([AX_ADD_AM_MACRO],[ 27 | AC_REQUIRE([AX_AM_MACROS]) 28 | AX_APPEND_TO_FILE([$AMINCLUDE],[$1]) 29 | ]) 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/m4/ax_append_to_file.m4: -------------------------------------------------------------------------------- 1 | # =========================================================================== 2 | # http://www.gnu.org/software/autoconf-archive/ax_append_to_file.html 3 | # =========================================================================== 4 | # 5 | # SYNOPSIS 6 | # 7 | # AX_APPEND_TO_FILE([FILE],[DATA]) 8 | # 9 | # DESCRIPTION 10 | # 11 | # Appends the specified data to the specified file. 12 | # 13 | # LICENSE 14 | # 15 | # Copyright (c) 2008 Tom Howard 16 | # 17 | # Copying and distribution of this file, with or without modification, are 18 | # permitted in any medium without royalty provided the copyright notice 19 | # and this notice are preserved. This file is offered as-is, without any 20 | # warranty. 21 | 22 | #serial 8 23 | 24 | AC_DEFUN([AX_APPEND_TO_FILE],[ 25 | AC_REQUIRE([AX_FILE_ESCAPES]) 26 | printf "$2\n" >> "$1" 27 | ]) 28 | -------------------------------------------------------------------------------- /components/hap/wolfssl/m4/ax_file_escapes.m4: -------------------------------------------------------------------------------- 1 | # =========================================================================== 2 | # http://www.gnu.org/software/autoconf-archive/ax_file_escapes.html 3 | # =========================================================================== 4 | # 5 | # SYNOPSIS 6 | # 7 | # AX_FILE_ESCAPES 8 | # 9 | # DESCRIPTION 10 | # 11 | # Writes the specified data to the specified file. 12 | # 13 | # LICENSE 14 | # 15 | # Copyright (c) 2008 Tom Howard 16 | # 17 | # Copying and distribution of this file, with or without modification, are 18 | # permitted in any medium without royalty provided the copyright notice 19 | # and this notice are preserved. This file is offered as-is, without any 20 | # warranty. 21 | 22 | #serial 7 23 | 24 | AC_DEFUN([AX_FILE_ESCAPES],[ 25 | AX_DOLLAR="\$" 26 | AX_SRB="\\135" 27 | AX_SLB="\\133" 28 | AX_BS="\\\\" 29 | AX_DQ="\"" 30 | ]) 31 | -------------------------------------------------------------------------------- /components/hap/wolfssl/m4/ax_print_to_file.m4: -------------------------------------------------------------------------------- 1 | # =========================================================================== 2 | # http://www.gnu.org/software/autoconf-archive/ax_print_to_file.html 3 | # =========================================================================== 4 | # 5 | # SYNOPSIS 6 | # 7 | # AX_PRINT_TO_FILE([FILE],[DATA]) 8 | # 9 | # DESCRIPTION 10 | # 11 | # Writes the specified data to the specified file. 12 | # 13 | # LICENSE 14 | # 15 | # Copyright (c) 2008 Tom Howard 16 | # 17 | # Copying and distribution of this file, with or without modification, are 18 | # permitted in any medium without royalty provided the copyright notice 19 | # and this notice are preserved. This file is offered as-is, without any 20 | # warranty. 21 | 22 | #serial 7 23 | 24 | AC_DEFUN([AX_PRINT_TO_FILE],[ 25 | AC_REQUIRE([AX_FILE_ESCAPES]) 26 | printf "$2" > "$1" 27 | ]) 28 | -------------------------------------------------------------------------------- /components/hap/wolfssl/m4/hexversion.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([CREATE_HEX_VERSION],[ 2 | 3 | HEX_VERSION=`echo $VERSION | sed 's|[\-a-z0-9]*$||' | \ 4 | awk -F. '{printf "0x%0.2d%0.3d%0.3d", $[]1, $[]2, $[]3}'` 5 | AC_SUBST([HEX_VERSION]) 6 | ]) 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/m4/lib_socket_nsl.m4: -------------------------------------------------------------------------------- 1 | dnl @synopsis LIB_SOCKET_NSL 2 | dnl 3 | dnl This macro figures out what libraries are required on this platform 4 | dnl to link sockets programs. 5 | dnl 6 | dnl The common cases are not to need any extra libraries, or to need 7 | dnl -lsocket and -lnsl. We need to avoid linking with libnsl unless we 8 | dnl need it, though, since on some OSes where it isn't necessary it 9 | dnl will totally break networking. Unisys also includes gethostbyname() 10 | dnl in libsocket but needs libnsl for socket(). 11 | dnl 12 | dnl @category Misc 13 | dnl @author Russ Allbery 14 | dnl @author Stepan Kasal 15 | dnl @author Warren Young 16 | dnl @version 2005-09-06 17 | dnl @license AllPermissive 18 | 19 | AC_DEFUN([LIB_SOCKET_NSL], 20 | [ 21 | AC_SEARCH_LIBS([gethostbyname], [nsl]) 22 | AC_SEARCH_LIBS([socket], [socket], [], [ 23 | AC_CHECK_LIB([socket], [socket], [LIBS="-lsocket -lnsl $LIBS"], 24 | [], [-lnsl])]) 25 | ]) 26 | -------------------------------------------------------------------------------- /components/hap/wolfssl/m4/require_canonical.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([REQUIRE_CANONICAL], [ 2 | AC_REQUIRE(AC_CANONICAL_HOST)_LT_SET_OPTION([LT_INIT],[win32-dll]) 3 | ])dnl REQUIRE_CANONICAL 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/PIC32MZ-serial.h: -------------------------------------------------------------------------------- 1 | void _mon_putc(char c); 2 | 3 | static void init_serial() { 4 | #ifdef MICROCHIP_PIC32 5 | #if defined (__32MZ2048ECH144__) || (__32MZ2048ECM144__) 6 | /* Set up PB2 divisor for UART2 */ 7 | SYSKEY = 0x00000000; 8 | SYSKEY = 0xAA996655; 9 | SYSKEY = 0x556699AA; 10 | PB2DIV = 0x00008018; 11 | SYSKEY = 0x33333333; 12 | 13 | /* UART2 Init */ 14 | // U2BRG = 0x0C; 15 | U2BRG = 0x7; 16 | ANSELBCLR = 0x4000; 17 | ANSELGCLR = 0x0040; 18 | RPB14R = 0x02; 19 | U2RXR = 0x01; 20 | U2MODE = 0x8000; 21 | U2STA = 0x400; 22 | #elif defined __PIC32MX__ 23 | SYSTEMConfigPerformance(80000000); 24 | DBINIT(); 25 | #endif 26 | 27 | #endif 28 | } 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | if BUILD_MCAPI 6 | check_PROGRAMS += mcapi/test 7 | noinst_PROGRAMS += mcapi/test 8 | mcapi_test_SOURCES = mcapi/crypto.c \ 9 | mcapi/mcapi_test.c 10 | mcapi_test_LDADD = src/libwolfssl.la 11 | mcapi_test_DEPENDENCIES = src/libwolfssl.la 12 | endif 13 | 14 | noinst_HEADERS += mcapi/crypto.h 15 | 16 | EXTRA_DIST += \ 17 | mcapi/README \ 18 | mcapi/PIC32MZ-serial.h 19 | 20 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/wolfcrypt_mcapi.X/nbproject/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mcapi/wolfcrypt_mcapi.X/Makefile 7 | 8 | EXTRA_DIST += \ 9 | mcapi/wolfcrypt_mcapi.X/nbproject/configurations.xml \ 10 | mcapi/wolfcrypt_mcapi.X/nbproject/project.xml 11 | 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/wolfcrypt_mcapi.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | wolfcrypt_mcapi 7 | 2ca6ab9b-e225-4ad3-b48e-9ea7b47a4ca4 8 | 0 9 | c 10 | 11 | 12 | ISO-8859-1 13 | 14 | 15 | ../wolfssl.X 16 | ../zlib.X 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/wolfcrypt_test.X/nbproject/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mcapi/wolfcrypt_test.X/Makefile 7 | 8 | EXTRA_DIST += \ 9 | mcapi/wolfcrypt_test.X/nbproject/configurations.xml \ 10 | mcapi/wolfcrypt_test.X/nbproject/project.xml 11 | 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/wolfcrypt_test.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | wolfcrypt_test 7 | b34c4937-7042-4352-88b1-7717bcdf8aeb 8 | 0 9 | c 10 | 11 | 12 | ISO-8859-1 13 | 14 | 15 | ../wolfssl.X 16 | ../zlib.X 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/wolfssl.X/nbproject/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mcapi/wolfssl.X/Makefile 7 | 8 | EXTRA_DIST += \ 9 | mcapi/wolfssl.X/nbproject/configurations.xml \ 10 | mcapi/wolfssl.X/nbproject/project.xml 11 | 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/wolfssl.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | wolfssl 7 | 93bbfc3a-a0fa-4d48-bbc8-6cd47a2bd05b 8 | 0 9 | c 10 | 11 | 12 | ISO-8859-1 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/zlib.X/nbproject/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mcapi/zlib.X/Makefile 7 | 8 | EXTRA_DIST += \ 9 | mcapi/zlib.X/nbproject/configurations.xml \ 10 | mcapi/zlib.X/nbproject/project.xml 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mcapi/zlib.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | zlib 7 | 8eef651d-e634-46ae-9183-39443c98e390 8 | 0 9 | c 10 | 11 | 12 | ISO-8859-1 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/PIC32MZ-serial.h: -------------------------------------------------------------------------------- 1 | void _mon_putc(char c); 2 | 3 | static void init_serial() { 4 | #ifdef MICROCHIP_PIC32 5 | #if defined (__32MZ2048ECH144__) || (__32MZ2048ECM144__) 6 | /* Set up PB2 divisor for UART2 */ 7 | SYSKEY = 0x00000000; 8 | SYSKEY = 0xAA996655; 9 | SYSKEY = 0x556699AA; 10 | PB2DIV = 0x00008808; 11 | SYSKEY = 0x33333333; 12 | 13 | /* UART2 Init */ 14 | // U2BRG = 0x0C; 15 | U2BRG = 0x047; 16 | ANSELBCLR = 0x4000; 17 | ANSELGCLR = 0x0040; 18 | RPB14R = 0x02; 19 | U2RXR = 0x01; 20 | U2MODE = 0x8000; 21 | U2STA = 0x400; 22 | #elif defined __PIC32MX__ 23 | SYSTEMConfigPerformance(80000000); 24 | DBINIT(); 25 | #endif 26 | 27 | #endif 28 | } 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mplabx/PIC32MZ-serial.h \ 7 | mplabx/README \ 8 | mplabx/benchmark_main.c \ 9 | mplabx/test_main.c 10 | 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/wolfcrypt_benchmark.X/nbproject/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mplabx/wolfcrypt_benchmark.X/Makefile 7 | 8 | EXTRA_DIST += \ 9 | mplabx/wolfcrypt_benchmark.X/nbproject/configurations.xml \ 10 | mplabx/wolfcrypt_benchmark.X/nbproject/project.xml 11 | 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/wolfcrypt_benchmark.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | wolfcrypt_benchmark 7 | 22e4138b-5f20-4957-ac0a-c181b94d3342 8 | 0 9 | c 10 | 11 | 12 | ISO-8859-1 13 | 14 | 15 | ../wolfssl.X 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/wolfcrypt_test.X/nbproject/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mplabx/wolfcrypt_test.X/Makefile 7 | 8 | EXTRA_DIST += \ 9 | mplabx/wolfcrypt_test.X/nbproject/configurations.xml \ 10 | mplabx/wolfcrypt_test.X/nbproject/project.xml 11 | 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/wolfcrypt_test.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | wolfcrypt_test 7 | b34c4937-7042-4352-88b1-7717bcdf8aeb 8 | 0 9 | c 10 | 11 | 12 | ISO-8859-1 13 | 14 | 15 | ../wolfssl.X 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/wolfssl.X/nbproject/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mplabx/wolfssl.X/Makefile 7 | 8 | EXTRA_DIST += \ 9 | mplabx/wolfssl.X/nbproject/configurations.xml \ 10 | mplabx/wolfssl.X/nbproject/project.xml 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mplabx/wolfssl.X/nbproject/project.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | com.microchip.mplab.nbide.embedded.makeproject 4 | 5 | 6 | wolfssl 7 | 93bbfc3a-a0fa-4d48-bbc8-6cd47a2bd05b 8 | 0 9 | c 10 | 11 | 12 | ISO-8859-1 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/util_lib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | util_lib 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.cdt.managedbuilder.core.genmakebuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder 15 | full,incremental, 16 | 17 | 18 | 19 | 20 | 21 | org.eclipse.cdt.core.cnature 22 | org.eclipse.cdt.managedbuilder.core.managedBuildNature 23 | org.eclipse.cdt.managedbuilder.core.ScannerConfigNature 24 | 25 | 26 | 27 | MQX_ROOT_DIR 28 | file:/C:/Freescale/Freescale_MQX_4_1 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/util_lib/Sources/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mqx/util_lib/.cproject \ 7 | mqx/util_lib/.project 8 | 9 | EXTRA_DIST += \ 10 | mqx/util_lib/Sources/util.c \ 11 | mqx/util_lib/Sources/util.h 12 | 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/util_lib/Sources/util.h: -------------------------------------------------------------------------------- 1 | /* util.h */ 2 | 3 | #ifndef UTIL_H_ 4 | #define UTIL_H_ 5 | 6 | int sdcard_open(MQX_FILE_PTR *com_handle, MQX_FILE_PTR *sdcard_handle, 7 | MQX_FILE_PTR *partman_handle, MQX_FILE_PTR *filesystem_handle, 8 | char *partman_name, char *filesystem_name); 9 | 10 | int sdcard_close(MQX_FILE_PTR *sdcard_handle, MQX_FILE_PTR *partman_handle, 11 | MQX_FILE_PTR *filesystem_handle, 12 | char *partman_name, char *filesystem_name); 13 | 14 | #endif /* UTIL_H_ */ 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfcrypt_benchmark/Debugger/mass_erase_kinetis.tcl: -------------------------------------------------------------------------------- 1 | # This script performs the mass erase operation for Kinetis targets 2 | 3 | # Command mass erase with system reset and core reset 4 | set mdmapControl [cmdwin::reg MDMAP_C -np] 5 | set mdmapControl [expr $mdmapControl | 0x19] 6 | cmdwin::reg MDMAP_C = $mdmapControl 7 | 8 | # Release system reset while still holding core reset 9 | set mdmapControl [expr $mdmapControl & 0xFFFFFFF7] 10 | cmdwin::reg MDMAP_C = $mdmapControl 11 | 12 | # Wait for the mass erase operation to complete 13 | set done 0 14 | for {set i 0} {$i < 10} {incr i} { 15 | refresh 16 | set mdmapControl [cmdwin::reg MDMAP_C -np] 17 | if {($mdmapControl & 1) == 0} { 18 | set done 1 19 | break; 20 | } 21 | wait 50 22 | } 23 | 24 | # Release the core reset 25 | set mdmapControl [expr $mdmapControl & 0xFFFFFFEF] 26 | cmdwin::reg MDMAP_C = $mdmapControl 27 | if {$done} { 28 | puts "OK: Mass erase succeeded" 29 | } else { 30 | puts "Error: Timeout" 31 | } -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfcrypt_benchmark/Sources/main.h: -------------------------------------------------------------------------------- 1 | /* main.h */ 2 | 3 | #ifndef __main_h_ 4 | #define __main_h_ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #define MAIN_TASK 1 15 | 16 | extern void Main_task (uint32_t); 17 | int benchmark_test(void* args); 18 | 19 | #endif /* __main_h_ */ 20 | 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfcrypt_benchmark/wolfcrypt_benchmark_twrk70f120m_Int_Flash_SramData_Debug_JTrace.jlink: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ShowInfoWin = 1 3 | EnableFlashBP = 2 4 | BPDuringExecution = 0 5 | [CFI] 6 | CFISize = 0x00 7 | CFIAddr = 0x00 8 | [CPU] 9 | OverrideMemMap = 0 10 | AllowSimulation = 1 11 | ScriptFile="" 12 | [FLASH] 13 | CacheExcludeSize = 0x00 14 | CacheExcludeAddr = 0x00 15 | MinNumBytesFlashDL = 0 16 | SkipProgOnCRCMatch = 1 17 | VerifyDownload = 1 18 | AllowCaching = 1 19 | EnableFlashDL = 2 20 | Override = 0 21 | Device="UNSPECIFIED" 22 | [GENERAL] 23 | WorkRAMSize = 0x00 24 | WorkRAMAddr = 0x00 25 | RAMUsageLimit = 0x00 26 | [SWO] 27 | SWOLogFile="" 28 | [MEM] 29 | RdOverrideOrMask = 0x00 30 | RdOverrideAndMask = 0xFFFFFFFF 31 | RdOverrideAddr = 0xFFFFFFFF 32 | WrOverrideOrMask = 0x00 33 | WrOverrideAndMask = 0xFFFFFFFF 34 | WrOverrideAddr = 0xFFFFFFFF 35 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfcrypt_test/Debugger/mass_erase_kinetis.tcl: -------------------------------------------------------------------------------- 1 | # This script performs the mass erase operation for Kinetis targets 2 | 3 | # Command mass erase with system reset and core reset 4 | set mdmapControl [cmdwin::reg MDMAP_C -np] 5 | set mdmapControl [expr $mdmapControl | 0x19] 6 | cmdwin::reg MDMAP_C = $mdmapControl 7 | 8 | # Release system reset while still holding core reset 9 | set mdmapControl [expr $mdmapControl & 0xFFFFFFF7] 10 | cmdwin::reg MDMAP_C = $mdmapControl 11 | 12 | # Wait for the mass erase operation to complete 13 | set done 0 14 | for {set i 0} {$i < 10} {incr i} { 15 | refresh 16 | set mdmapControl [cmdwin::reg MDMAP_C -np] 17 | if {($mdmapControl & 1) == 0} { 18 | set done 1 19 | break; 20 | } 21 | wait 50 22 | } 23 | 24 | # Release the core reset 25 | set mdmapControl [expr $mdmapControl & 0xFFFFFFEF] 26 | cmdwin::reg MDMAP_C = $mdmapControl 27 | if {$done} { 28 | puts "OK: Mass erase succeeded" 29 | } else { 30 | puts "Error: Timeout" 31 | } -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfcrypt_test/Sources/main.h: -------------------------------------------------------------------------------- 1 | /* main.h */ 2 | 3 | #ifndef __main_h_ 4 | #define __main_h_ 5 | 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | #define MAIN_TASK 1 15 | 16 | extern void Main_task (uint32_t); 17 | void wolfcrypt_test(void* args); 18 | 19 | #endif /* __main_h_ */ 20 | 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfcrypt_test/wolfcrypt_test_twrk70f120m_Int_Flash_SramData_Debug_JTrace.jlink: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ShowInfoWin = 1 3 | EnableFlashBP = 2 4 | BPDuringExecution = 0 5 | [CFI] 6 | CFISize = 0x00 7 | CFIAddr = 0x00 8 | [CPU] 9 | OverrideMemMap = 0 10 | AllowSimulation = 1 11 | ScriptFile="" 12 | [FLASH] 13 | CacheExcludeSize = 0x00 14 | CacheExcludeAddr = 0x00 15 | MinNumBytesFlashDL = 0 16 | SkipProgOnCRCMatch = 1 17 | VerifyDownload = 1 18 | AllowCaching = 1 19 | EnableFlashDL = 2 20 | Override = 0 21 | Device="UNSPECIFIED" 22 | [GENERAL] 23 | WorkRAMSize = 0x00 24 | WorkRAMAddr = 0x00 25 | RAMUsageLimit = 0x00 26 | [SWO] 27 | SWOLogFile="" 28 | [MEM] 29 | RdOverrideOrMask = 0x00 30 | RdOverrideAndMask = 0xFFFFFFFF 31 | RdOverrideAddr = 0xFFFFFFFF 32 | WrOverrideOrMask = 0x00 33 | WrOverrideAndMask = 0xFFFFFFFF 34 | WrOverrideAddr = 0xFFFFFFFF 35 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfssl/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += \ 6 | mqx/README 7 | 8 | EXTRA_DIST += \ 9 | mqx/wolfssl/.cproject \ 10 | mqx/wolfssl/.project 11 | 12 | -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfssl_client/Debugger/mass_erase_kinetis.tcl: -------------------------------------------------------------------------------- 1 | # This script performs the mass erase operation for Kinetis targets 2 | 3 | # Command mass erase with system reset and core reset 4 | set mdmapControl [cmdwin::reg MDMAP_C -np] 5 | set mdmapControl [expr $mdmapControl | 0x19] 6 | cmdwin::reg MDMAP_C = $mdmapControl 7 | 8 | # Release system reset while still holding core reset 9 | set mdmapControl [expr $mdmapControl & 0xFFFFFFF7] 10 | cmdwin::reg MDMAP_C = $mdmapControl 11 | 12 | # Wait for the mass erase operation to complete 13 | set done 0 14 | for {set i 0} {$i < 10} {incr i} { 15 | refresh 16 | set mdmapControl [cmdwin::reg MDMAP_C -np] 17 | if {($mdmapControl & 1) == 0} { 18 | set done 1 19 | break; 20 | } 21 | wait 50 22 | } 23 | 24 | # Release the core reset 25 | set mdmapControl [expr $mdmapControl & 0xFFFFFFEF] 26 | cmdwin::reg MDMAP_C = $mdmapControl 27 | if {$done} { 28 | puts "OK: Mass erase succeeded" 29 | } else { 30 | puts "Error: Timeout" 31 | } -------------------------------------------------------------------------------- /components/hap/wolfssl/mqx/wolfssl_client/wolfssl_client_twrk70f120m_Int_Flash_SramData_Debug_JTrace.jlink: -------------------------------------------------------------------------------- 1 | [BREAKPOINTS] 2 | ShowInfoWin = 1 3 | EnableFlashBP = 2 4 | BPDuringExecution = 0 5 | [CFI] 6 | CFISize = 0x00 7 | CFIAddr = 0x00 8 | [CPU] 9 | OverrideMemMap = 0 10 | AllowSimulation = 1 11 | ScriptFile="" 12 | [FLASH] 13 | CacheExcludeSize = 0x00 14 | CacheExcludeAddr = 0x00 15 | MinNumBytesFlashDL = 0 16 | SkipProgOnCRCMatch = 1 17 | VerifyDownload = 1 18 | AllowCaching = 1 19 | EnableFlashDL = 2 20 | Override = 0 21 | Device="UNSPECIFIED" 22 | [GENERAL] 23 | WorkRAMSize = 0x00 24 | WorkRAMAddr = 0x00 25 | RAMUsageLimit = 0x00 26 | [SWO] 27 | SWOLogFile="" 28 | [MEM] 29 | RdOverrideOrMask = 0x00 30 | RdOverrideAndMask = 0xFFFFFFFF 31 | RdOverrideAddr = 0xFFFFFFFF 32 | WrOverrideOrMask = 0x00 33 | WrOverrideAndMask = 0xFFFFFFFF 34 | WrOverrideAddr = 0xFFFFFFFF 35 | -------------------------------------------------------------------------------- /components/hap/wolfssl/pre-commit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # 4 | # Our "pre-commit" hook. 5 | 6 | # save current config 7 | echo "\n\nSaving current config\n\n" 8 | cp config.status tmp.status 9 | cp wolfssl/options.h tmp.options.h 10 | 11 | # stash modified files not part of this commit, don't test them 12 | echo "\n\nStashing any modified files not part of commit\n\n" 13 | git stash -q --keep-index 14 | 15 | # do the commit tests 16 | echo "\n\nRunning commit tests...\n\n" 17 | ./commit-tests.sh 18 | RESULT=$? 19 | 20 | # restore modified files not part of this commit 21 | echo "\n\nPopping any stashed modified files not part of commit\n" 22 | git stash pop -q 23 | 24 | # restore current config 25 | echo "\nRestoring current config\n" 26 | mv tmp.status config.status 27 | # don't show output incase error from above 28 | ./config.status >/dev/null 2>&1 29 | mv tmp.options.h wolfssl/options.h 30 | make clean >/dev/null 2>&1 31 | make -j 8 >/dev/null 2>&1 32 | 33 | [ $RESULT -ne 0 ] && echo "\nOops, your commit failed\n" && exit 1 34 | 35 | echo "\nCommit tests passed!\n" 36 | exit 0 37 | -------------------------------------------------------------------------------- /components/hap/wolfssl/pre-push.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # 4 | # Our "pre-push" hook. 5 | 6 | RESULT=0 7 | 8 | if [ -d ./fips ]; 9 | then 10 | echo "\n\nTesting with FIPS release code...\n\n" 11 | ./fips-check.sh 12 | RESULT=$? 13 | [ $RESULT -ne 0 ] && echo -e "\n\nFIPS build test failed" && exit 1 14 | fi 15 | 16 | [ $RESULT -ne 0 ] && echo "\nOops, your push failed\n" && exit 1 17 | 18 | echo "\nPush tests passed!\n" 19 | exit 0 20 | -------------------------------------------------------------------------------- /components/hap/wolfssl/pull_to_vagrant.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | SRC=vagrant 3 | DST=wolfssl 4 | 5 | # synchronize without .git and .gitignore to avoid output files 6 | rsync --exclude .git --exclude-from .gitignore -rvt /$SRC/ ~/$DST/ 7 | 8 | # synchronize everything else needed. 9 | rsync -rvt /$SRC/.git ~/$DST/ 10 | rsync -rvt /$SRC/IDE ~/$DST/ 11 | rsync -rvt /$SRC/mcapi ~/$DST/ 12 | rsync -rvt /$SRC/mplabx ~/$DST/ 13 | rsync -rvt /$SRC/certs ~/$DST/ 14 | rsync -rvt /$SRC/configure.ac ~/$DST/ 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/quit: -------------------------------------------------------------------------------- 1 | quit 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/rpm/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | 3 | rpm-build: rpm/spec dist 4 | @rm -f *.rpm 5 | @rm -f ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm 6 | @rm -f ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm 7 | @mkdir -p ~/rpmbuild/BUILD/ 8 | @mkdir -p ~/rpmbuild/RPMS/i386/ 9 | @mkdir -p ~/rpmbuild/RPMS/i686/ 10 | @mkdir -p ~/rpmbuild/RPMS/noarch/ 11 | @mkdir -p ~/rpmbuild/RPMS/x86_64/ 12 | @mkdir -p ~/rpmbuild/SOURCES/ 13 | @mkdir -p ~/rpmbuild/SPECS/ 14 | @mkdir -p ~/rpmbuild/SRPMS/ 15 | @cp $(PACKAGE)-$(VERSION).tar.gz ~/rpmbuild/SOURCES/ 16 | @rpmbuild -ba --clean rpm/spec 17 | @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-$(VERSION)*.rpm . 18 | @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-devel-$(VERSION)*.rpm . 19 | @cp ~/rpmbuild/RPMS/x86_64/$(PACKAGE)-debuginfo-$(VERSION)*.rpm . 20 | @cp ~/rpmbuild/SRPMS/$(PACKAGE)-$(VERSION)*.rpm . 21 | 22 | rpm-sign: rpm-build 23 | @rpm --addsign *.rpm 24 | @rpm --checksig *.rpm 25 | 26 | clean-rpm: 27 | @rm -f *.tar.gz 28 | @rm -f *.src.rpm 29 | @rm -f *.rpm 30 | 31 | rpm: rpm-build 32 | 33 | release: rpm-sign 34 | 35 | auto-rpmbuild: 36 | @auto-br-rpmbuild -ba rpm/spec 37 | 38 | -------------------------------------------------------------------------------- /components/hap/wolfssl/scripts/external.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # external.test 4 | 5 | server=www.wolfssl.com 6 | ca=./certs/wolfssl-website-ca.pem 7 | 8 | [ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1 9 | 10 | # cloudflare seems to change CAs quickly, disabled by default 11 | if test -n "$WOLFSSL_EXTERNAL_TEST"; then 12 | echo "WOLFSSL_EXTERNAL_TEST set, running test..." 13 | else 14 | echo "WOLFSSL_EXTERNAL_TEST NOT set, won't run" 15 | exit 0 16 | fi 17 | 18 | # is our desired server there? 19 | ./scripts/ping.test $server 2 20 | RESULT=$? 21 | [ $RESULT -ne 0 ] && exit 0 22 | 23 | # client test against the server 24 | ./examples/client/client -X -C -h $server -p 443 -g -A $ca 25 | RESULT=$? 26 | [ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1 27 | 28 | exit 0 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/scripts/google.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # google.test 4 | 5 | server=www.google.com 6 | 7 | [ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1 8 | 9 | # is our desired server there? 10 | ./scripts/ping.test $server 2 11 | RESULT=$? 12 | [ $RESULT -ne 0 ] && exit 0 13 | 14 | # client test against the server 15 | ./examples/client/client -X -C -h $server -p 443 -g -d 16 | RESULT=$? 17 | [ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1 18 | 19 | exit 0 20 | -------------------------------------------------------------------------------- /components/hap/wolfssl/scripts/ocsp.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ocsp-stapling.test 4 | 5 | server=www.globalsign.com 6 | ca=certs/external/ca-globalsign-root-r2.pem 7 | 8 | [ ! -x ./examples/client/client ] && echo -e "\n\nClient doesn't exist" && exit 1 9 | 10 | # is our desired server there? 11 | ./scripts/ping.test $server 2 12 | RESULT=$? 13 | [ $RESULT -ne 0 ] && exit 0 14 | 15 | # client test against the server 16 | ./examples/client/client -X -C -h $server -p 443 -A $ca -g -o 17 | RESULT=$? 18 | [ $RESULT -ne 0 ] && echo -e "\n\nClient connection failed" && exit 1 19 | 20 | exit 0 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/scripts/ping.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # ping.test 4 | 5 | # defaults 6 | server=www.wolfssl.com 7 | tries=2 8 | 9 | # populate args 10 | if [ "$#" -gt 1 ]; then 11 | tries=$2 12 | fi 13 | if [ "$#" -gt 0 ]; then 14 | server=$1 15 | fi 16 | 17 | # determine os 18 | OS="`uname`" 19 | case $OS in 20 | MINGW* | MSYS*) PINGSW=-n ;; 21 | *) PINGSW=-c ;; 22 | esac 23 | 24 | # is our desired server there? 25 | ping $PINGSW $tries $server 26 | RESULT=$? 27 | [ $RESULT -ne 0 ] && echo -e "\n\nCouldn't find $server, skipping" && exit 1 28 | 29 | exit 0 30 | -------------------------------------------------------------------------------- /components/hap/wolfssl/scripts/sniffer-testsuite.test: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #sniffer-testsuite.test 4 | 5 | echo -e "\nStaring snifftest on testsuite.pcap...\n" 6 | ./sslSniffer/sslSnifferTest/snifftest ./scripts/testsuite.pcap ./certs/server-key.pem 127.0.0.1 11111 7 | 8 | RESULT=$? 9 | [ $RESULT -ne 0 ] && echo -e "\nsnifftest failed\n" && exit 1 10 | 11 | echo -e "\nSuccess!\n" 12 | 13 | exit 0 14 | -------------------------------------------------------------------------------- /components/hap/wolfssl/scripts/testsuite.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/scripts/testsuite.pcap -------------------------------------------------------------------------------- /components/hap/wolfssl/sslSniffer/sslSnifferTest/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | if BUILD_SNIFFTEST 6 | noinst_PROGRAMS += sslSniffer/sslSnifferTest/snifftest 7 | sslSniffer_sslSnifferTest_snifftest_SOURCES = sslSniffer/sslSnifferTest/snifftest.c 8 | sslSniffer_sslSnifferTest_snifftest_LDADD = src/libwolfssl.la -lpcap $(LIB_STATIC_ADD) 9 | sslSniffer_sslSnifferTest_snifftest_DEPENDENCIES = src/libwolfssl.la 10 | endif 11 | EXTRA_DIST += sslSniffer/sslSniffer.vcproj 12 | EXTRA_DIST += sslSniffer/sslSniffer.vcxproj 13 | EXTRA_DIST += sslSniffer/sslSnifferTest/sslSniffTest.vcproj 14 | DISTCLEANFILES+= sslSniffer/sslSnifferTest/.libs/snifftest 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/stamp-h.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/stamp-h.in -------------------------------------------------------------------------------- /components/hap/wolfssl/support/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | EXTRA_DIST += support/wolfssl.pc 6 | 7 | pkgconfigdir = $(libdir)/pkgconfig 8 | pkgconfig_DATA = support/wolfssl.pc 9 | 10 | 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/support/wolfssl.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/local 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: wolfssl 7 | Description: wolfssl C library. 8 | Version: 3.10.2 9 | Libs: -L${libdir} -lwolfssl 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/support/wolfssl.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: wolfssl 7 | Description: wolfssl C library. 8 | Version: @VERSION@ 9 | Libs: -L${libdir} -lwolfssl 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /components/hap/wolfssl/swig/PythonBuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | echo 3 | swig -python wolfssl.i 4 | pythonIncludes=`python-config --includes` 5 | pythonLibs=`python-config --libs` 6 | gcc -c -fpic wolfssl_wrap.c -I$pythonIncludes 7 | gcc -c -fpic wolfssl_adds.c 8 | gcc -shared -flat_namespace wolfssl_adds.o wolfssl_wrap.o -lwolfssl $pythonLibs -o _wolfssl.so 9 | python runme.py 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/swig/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | 4 | EXTRA_DIST+= \ 5 | swig/PythonBuild.sh \ 6 | swig/README \ 7 | swig/wolfssl.i \ 8 | swig/wolfssl_adds.c \ 9 | swig/python_wolfssl.vcproj \ 10 | swig/rsasign.py \ 11 | swig/runme.py 12 | 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tests/CONF_FILES_README.md: -------------------------------------------------------------------------------- 1 | suites.c is a dynamicically written program where new test cases can be written 2 | and added to as needed. When creating a new configure file for a test be sure 3 | to use the exact formatting as the existing configure files. Reference test.conf 4 | for an example. 5 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tests/README: -------------------------------------------------------------------------------- 1 | Before creating any new configure files (.conf) read the CONF_FILES_README.md 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tests/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | 6 | if BUILD_TESTS 7 | check_PROGRAMS += tests/unit.test 8 | noinst_PROGRAMS += tests/unit.test 9 | tests_unit_test_SOURCES = \ 10 | tests/unit.c \ 11 | tests/api.c \ 12 | tests/suites.c \ 13 | tests/hash.c \ 14 | tests/srp.c \ 15 | examples/client/client.c \ 16 | examples/server/server.c 17 | tests_unit_test_CFLAGS = -DNO_MAIN_DRIVER $(AM_CFLAGS) 18 | tests_unit_test_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 19 | tests_unit_test_DEPENDENCIES = src/libwolfssl.la 20 | endif 21 | EXTRA_DIST += tests/unit.h 22 | EXTRA_DIST += tests/test.conf \ 23 | tests/test-qsh.conf \ 24 | tests/test-psk-no-id.conf \ 25 | tests/test-dtls.conf \ 26 | tests/test-sctp.conf \ 27 | tests/test-sig.conf 28 | DISTCLEANFILES+= tests/.libs/unit.test 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/testsuite/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # included from Top Level Makefile.am 3 | # All paths should be given relative to the root 4 | 5 | 6 | if BUILD_TESTS 7 | check_PROGRAMS += testsuite/testsuite.test 8 | noinst_PROGRAMS += testsuite/testsuite.test 9 | testsuite_testsuite_test_SOURCES = \ 10 | wolfcrypt/test/test.c \ 11 | examples/client/client.c \ 12 | examples/echoclient/echoclient.c \ 13 | examples/echoserver/echoserver.c \ 14 | examples/server/server.c \ 15 | testsuite/testsuite.c 16 | testsuite_testsuite_test_CFLAGS = -DNO_MAIN_DRIVER $(AM_CFLAGS) 17 | testsuite_testsuite_test_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 18 | testsuite_testsuite_test_DEPENDENCIES = src/libwolfssl.la 19 | endif 20 | EXTRA_DIST += testsuite/testsuite.sln 21 | EXTRA_DIST += testsuite/testsuite-ntru.vcproj 22 | EXTRA_DIST += testsuite/testsuite.vcproj 23 | EXTRA_DIST += testsuite/testsuite.vcxproj 24 | EXTRA_DIST += input 25 | EXTRA_DIST += quit 26 | DISTCLEANFILES+= testsuite/.libs/testsuite.test 27 | -------------------------------------------------------------------------------- /components/hap/wolfssl/testsuite/testsuite.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testsuite", "testsuite.vcproj", "{9D4D8446-CE91-4F7A-AFF2-90D0B5DCD717}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {9D4D8446-CE91-4F7A-AFF2-90D0B5DCD717}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {9D4D8446-CE91-4F7A-AFF2-90D0B5DCD717}.Debug|Win32.Build.0 = Debug|Win32 14 | {9D4D8446-CE91-4F7A-AFF2-90D0B5DCD717}.Release|Win32.ActiveCfg = Release|Win32 15 | {9D4D8446-CE91-4F7A-AFF2-90D0B5DCD717}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tirtos/.gitignore: -------------------------------------------------------------------------------- 1 | **/.xdcenv.mak 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tirtos/README: -------------------------------------------------------------------------------- 1 | # wolfSSL library for TI-RTOS 2 | 3 | This directory contains the files that build wolfSSL library for TI-RTOS. 4 | Please follow the instructions in "Using wolfSSL with TI-RTOS" (http://processors.wiki.ti.com/index.php/Using_wolfSSL_with_TI-RTOS) to build the wolfSSL 5 | library and the example applications. 6 | 7 | Also read TI-RTOS Getting Started Guide and TI-RTOS User Guide to learn more 8 | about TI-RTOS (http://www.ti.com/tool/ti-rtos). 9 | 10 | ## Example Application 11 | 12 | A simple "TCP echo server with TLS" example application is provided with TI-RTOS 13 | product. Look in the TI-RTOS Getting Started Guide for instructions to build 14 | examples. 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tirtos/packages/ti/net/wolfssl/package.xdc: -------------------------------------------------------------------------------- 1 | /*! 2 | * ======== ti.net.wolfssl ======== 3 | * wolfSSL library for TI-RTOS 4 | */ 5 | package ti.net.wolfssl [1, 0, 0] { 6 | } 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tirtos/packages/ti/net/wolfssl/package.xs: -------------------------------------------------------------------------------- 1 | /* 2 | * ======== package.xs ======== 3 | */ 4 | 5 | /* 6 | * ======== getLibs ======== 7 | * Contribute wolfSSL library. 8 | */ 9 | function getLibs(prog) 10 | { 11 | return ("lib/wolfssl.a" + prog.build.target.suffix); 12 | } 13 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tirtos/packages/ti/net/wolfssl/tests/EK_TM4C1294XL/wolfcrypt/benchmark/package.xdc: -------------------------------------------------------------------------------- 1 | /* 2 | * ======== ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.benchmark ======== 3 | * wc_ Benchmark Application 4 | */ 5 | package ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.benchmark [1, 0, 0] { 6 | } 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/tirtos/packages/ti/net/wolfssl/tests/EK_TM4C1294XL/wolfcrypt/test/package.xdc: -------------------------------------------------------------------------------- 1 | /* 2 | * ======== ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.test ======== 3 | * wolfcrypt Test Application 4 | */ 5 | package ti.net.wolfssl.tests.EK_TM4C1294XL.wolfcrypt.test [1, 0, 0] { 6 | } 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/valgrind-error.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # 4 | # Our valgrind "error" wrapper. 5 | 6 | valgrind --leak-check=full -q "$@" 2> valgrind.tmp 7 | 8 | result="$?" 9 | 10 | # verify no errors 11 | 12 | output="`cat valgrind.tmp`" 13 | 14 | if [ "$output" != "" ]; then 15 | cat valgrind.tmp >&2 16 | result=1 17 | fi 18 | 19 | rm valgrind.tmp 20 | 21 | exit $result 22 | 23 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wnr-example.conf: -------------------------------------------------------------------------------- 1 | # Example netRandom client library configuration file 2 | # 3 | # This uses /dev/urandom for the seed, but could also 4 | # be set up to use a network entropy source 5 | 6 | version = "1.0"; 7 | 8 | WnrClient: 9 | { 10 | dir: 11 | { 12 | working = "/var/run/wnrentropy"; 13 | socket = "/var/run/wnrentropy"; 14 | }; 15 | 16 | drbg: 17 | { 18 | type = "SHA256"; 19 | security_strength = 256; 20 | reseed_interval = 1; 21 | }; 22 | 23 | source: 24 | { 25 | seed = { 26 | type = "FILEPATH"; 27 | path = "/dev/urandom"; 28 | }; 29 | stream = { 30 | type = "FILEPATH"; 31 | path = "/dev/urandom"; 32 | }; 33 | }; 34 | 35 | buffer: 36 | { 37 | size = 8192; 38 | threshold = 7168; 39 | }; 40 | }; 41 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/benchmark/benchmark.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "benchmark", "benchmark.vcproj", "{615AEC46-5595-4DEA-9490-DBD5DE0F8772}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Debug|Win32.Build.0 = Debug|Win32 14 | {615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Release|Win32.ActiveCfg = Release|Win32 15 | {615AEC46-5595-4DEA-9490-DBD5DE0F8772}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/benchmark/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | 4 | if BUILD_WOLFCRYPT_TESTS 5 | noinst_PROGRAMS += wolfcrypt/benchmark/benchmark 6 | wolfcrypt_benchmark_benchmark_SOURCES = wolfcrypt/benchmark/benchmark.c 7 | wolfcrypt_benchmark_benchmark_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 8 | wolfcrypt_benchmark_benchmark_DEPENDENCIES = src/libwolfssl.la 9 | noinst_HEADERS += wolfcrypt/benchmark/benchmark.h 10 | endif 11 | EXTRA_DIST += wolfcrypt/benchmark/benchmark.sln 12 | EXTRA_DIST += wolfcrypt/benchmark/benchmark.vcproj 13 | DISTCLEANFILES+= wolfcrypt/benchmark/.libs/benchmark 14 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/src/ecc_fp.c: -------------------------------------------------------------------------------- 1 | /* dummy ecc_fp.c for dist */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/src/port/atmel/README.md: -------------------------------------------------------------------------------- 1 | # Atmel ATECC508A Port 2 | 3 | * Adds wolfCrypt support for ECC Hardware acceleration using the ATECC508A 4 | * The new defines added for this port are: `WOLFSSL_ATMEL` and `WOLFSSL_ATECC508A`. 5 | * Adds new PK callback for Pre Master Secret. 6 | 7 | 8 | For details see our [wolfSSL Atmel ATECC508A](wolfhttps://wolfssl.com/wolfSSL/wolfssl-atmel.html) page. 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/src/port/cavium/README.md: -------------------------------------------------------------------------------- 1 | # Cavium Nitrox V Support 2 | 3 | ## Directory Structure: 4 | `/` 5 | `/CNN55XX-SDK` 6 | `/wolfssl` 7 | 8 | ## Cavium Driver 9 | 10 | Tested again `CNN55XX-Driver-Linux-KVM-XEN-PF-SDK-0.2-04.tar` 11 | From inside `CNN55XX-SDK`: 12 | 1. `make` 13 | Note: To resolve warnings in `CNN55XX-SDK/include/vf_defs.h`: 14 | a. Changed `vf_config_mode_str` to return `const char*` and modify `vf_mode_str` to be `const char*`. 15 | b. In `vf_config_mode_to_num_vfs` above `default:` add `case PF:`. 16 | 17 | 2. `sudo make load` 18 | 19 | ## wolfSSL 20 | 21 | Currently the AES and DES3 benchmark tests causes the kernel to crash, so they are disabled for now, even though the wolfCrypt tests pass for those. 22 | 23 | From inside `wolfssl`: 24 | 1. `./configure --with-cavium-v=../CNN55XX-SDK --enable-asynccrypt --enable-aesni --enable-intelasm --disable-aes --disable-aesgcm --disable-des3` 25 | 2. `make` 26 | 27 | ## Usage 28 | 29 | Note: Must run applications with sudo to access device. 30 | 31 | `sudo ./wolfcrypt/benchmark/benchmark` 32 | `sudo ./wolfcrypt/test/testwolfcrypt` 33 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/test/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | 4 | if BUILD_WOLFCRYPT_TESTS 5 | noinst_PROGRAMS+= wolfcrypt/test/testwolfcrypt 6 | if BUILD_CRYPTONLY 7 | check_PROGRAMS+= wolfcrypt/test/testwolfcrypt 8 | endif 9 | noinst_PROGRAMS+= wolfcrypt/test/testwolfcrypt 10 | wolfcrypt_test_testwolfcrypt_SOURCES = wolfcrypt/test/test.c 11 | wolfcrypt_test_testwolfcrypt_LDADD = src/libwolfssl.la $(LIB_STATIC_ADD) 12 | wolfcrypt_test_testwolfcrypt_DEPENDENCIES = src/libwolfssl.la 13 | noinst_HEADERS += wolfcrypt/test/test.h 14 | endif 15 | EXTRA_DIST += wolfcrypt/test/test.sln 16 | EXTRA_DIST += wolfcrypt/test/test.vcproj 17 | DISTCLEANFILES+= wolfcrypt/test/.libs/testwolfcrypt 18 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/test/test.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 9.00 3 | # Visual C++ Express 2005 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "test", "test.vcproj", "{D04BDF66-664A-4D59-BEAC-8AB2D5809C21}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Debug|Win32.ActiveCfg = Debug|Win32 13 | {D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Debug|Win32.Build.0 = Debug|Win32 14 | {D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Release|Win32.ActiveCfg = Release|Win32 15 | {D04BDF66-664A-4D59-BEAC-8AB2D5809C21}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/user-crypto/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CFLAGS=-I m4 2 | 3 | #add in wolfssl directory 4 | AM_CPPFLAGS+=-I$(abs_srcdir)/../../ -I$(srcdir)/include/ 5 | lib_LTLIBRARIES = lib/libusercrypto.la 6 | lib_libusercrypto_la_CPPFLAGS = $(AM_CPPFLAGS) 7 | lib_libusercrypto_la_LDFLAGS = $(AM_LDFLAGS) 8 | lib_libusercrypto_la_SOURCES = src/rsa.c 9 | include_HEADERS = include/user_rsa.h 10 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/user-crypto/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Create configure and makefile stuff... 4 | # 5 | 6 | # Git hooks should come before autoreconf. 7 | if test -d .git; then 8 | if ! test -d .git/hooks; then 9 | mkdir .git/hooks 10 | fi 11 | ln -s -f ../../pre-commit.sh .git/hooks/pre-commit 12 | ln -s -f ../../pre-push.sh .git/hooks/pre-push 13 | fi 14 | 15 | # If this is a source checkout then call autoreconf with error as well 16 | if test -d .git; then 17 | WARNINGS="all,error" 18 | else 19 | WARNINGS="all" 20 | fi 21 | 22 | autoreconf --install --force --verbose 23 | 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/user-crypto/include.am: -------------------------------------------------------------------------------- 1 | 2 | if BUILD_FAST_RSA 3 | include_HEADERS += wolfcrypt/user-crypto/include/user_rsa.h 4 | endif 5 | 6 | # user crypto plug in example 7 | EXTRA_DIST+= wolfcrypt/user-crypto/configure.ac 8 | EXTRA_DIST+= wolfcrypt/user-crypto/autogen.sh 9 | EXTRA_DIST+= wolfcrypt/user-crypto/include/user_rsa.h 10 | EXTRA_DIST+= wolfcrypt/user-crypto/src/rsa.c 11 | EXTRA_DIST+= wolfcrypt/user-crypto/lib/.gitkeep 12 | EXTRA_DIST+= wolfcrypt/user-crypto/README.txt 13 | EXTRA_DIST+= wolfcrypt/user-crypto/Makefile.am 14 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfcrypt/user-crypto/lib/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/components/hap/wolfssl/wolfcrypt/user-crypto/lib/.gitkeep -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/include.am: -------------------------------------------------------------------------------- 1 | # vim:ft=automake 2 | # All paths should be given relative to the root 3 | # 4 | 5 | include wolfssl/wolfcrypt/include.am 6 | include wolfssl/openssl/include.am 7 | 8 | EXTRA_DIST+= wolfssl/sniffer_error.rc 9 | 10 | nobase_include_HEADERS+= \ 11 | wolfssl/error-ssl.h \ 12 | wolfssl/ssl.h \ 13 | wolfssl/sniffer_error.h \ 14 | wolfssl/sniffer.h \ 15 | wolfssl/callbacks.h \ 16 | wolfssl/certs_test.h \ 17 | wolfssl/test.h \ 18 | wolfssl/version.h \ 19 | wolfssl/ocsp.h \ 20 | wolfssl/crl.h 21 | 22 | noinst_HEADERS+= \ 23 | wolfssl/internal.h 24 | 25 | # For distro build don't install options.h. 26 | # It depends on the architecture and conflicts with Multi-Arch. 27 | if BUILD_DISTRO 28 | noinst_HEADERS+= wolfssl/options.h 29 | else 30 | nobase_include_HEADERS+= wolfssl/options.h 31 | endif 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/asn1.h: -------------------------------------------------------------------------------- 1 | /* asn1.h for openssl */ 2 | 3 | #ifndef WOLFSSL_ASN1_H_ 4 | #define WOLFSSL_ASN1_H_ 5 | struct WOLFSSL_ASN1_BIT_STRING { 6 | int length; 7 | int type; 8 | char* data; 9 | long flags; 10 | }; 11 | 12 | struct WOLFSSL_ASN1_STRING { 13 | int length; 14 | int type; 15 | char* data; 16 | long flags; 17 | }; 18 | 19 | #endif /* WOLFSSL_ASN1_H_ */ 20 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/bio.h: -------------------------------------------------------------------------------- 1 | /* bio.h for openssl */ 2 | 3 | 4 | #ifndef WOLFSSL_BIO_H_ 5 | #define WOLFSSL_BIO_H_ 6 | 7 | #include 8 | 9 | 10 | #ifdef __cplusplus 11 | extern "C" { 12 | #endif 13 | 14 | 15 | 16 | 17 | #ifdef __cplusplus 18 | } /* extern "C" */ 19 | #endif 20 | 21 | 22 | #endif /* WOLFSSL_BIO_H_ */ 23 | 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/conf.h: -------------------------------------------------------------------------------- 1 | /* conf.h for openssl */ 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/ec25519.h: -------------------------------------------------------------------------------- 1 | /* ec25519.h */ 2 | 3 | #ifndef WOLFSSL_EC25519_H_ 4 | #define WOLFSSL_EC25519_H_ 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | WOLFSSL_API 11 | int wolfSSL_EC25519_generate_key(unsigned char *priv, unsigned int *privSz, 12 | unsigned char *pub, unsigned int *pubSz); 13 | 14 | WOLFSSL_API 15 | int wolfSSL_EC25519_shared_key(unsigned char *shared, unsigned int *sharedSz, 16 | const unsigned char *priv, unsigned int privSz, 17 | const unsigned char *pub, unsigned int pubSz); 18 | 19 | #ifdef __cplusplus 20 | } /* extern "C" */ 21 | #endif 22 | 23 | #endif /* header */ 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/ecdh.h: -------------------------------------------------------------------------------- 1 | /* ecdh.h for openssl */ 2 | 3 | #ifndef WOLFSSL_ECDH_H_ 4 | #define WOLFSSL_ECDH_H_ 5 | 6 | #include 7 | #include 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | 14 | WOLFSSL_API int wolfSSL_ECDH_compute_key(void *out, size_t outlen, 15 | const WOLFSSL_EC_POINT *pub_key, 16 | WOLFSSL_EC_KEY *ecdh, 17 | void *(*KDF) (const void *in, 18 | size_t inlen, 19 | void *out, 20 | size_t *outlen)); 21 | 22 | #define ECDH_compute_key wolfSSL_ECDH_compute_key 23 | 24 | #ifdef __cplusplus 25 | } /* extern C */ 26 | #endif 27 | 28 | #endif /* header */ 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/ed25519.h: -------------------------------------------------------------------------------- 1 | /* ed25519.h */ 2 | 3 | #ifndef WOLFSSL_ED25519_H_ 4 | #define WOLFSSL_ED25519_H_ 5 | 6 | #ifdef __cplusplus 7 | extern "C" { 8 | #endif 9 | 10 | WOLFSSL_API 11 | int wolfSSL_ED25519_generate_key(unsigned char *priv, unsigned int *privSz, 12 | unsigned char *pub, unsigned int *pubSz); 13 | WOLFSSL_API 14 | int wolfSSL_ED25519_sign(const unsigned char *msg, unsigned int msgSz, 15 | const unsigned char *priv, unsigned int privSz, 16 | unsigned char *sig, unsigned int *sigSz); 17 | WOLFSSL_API 18 | int wolfSSL_ED25519_verify(const unsigned char *msg, unsigned int msgSz, 19 | const unsigned char *pub, unsigned int pubSz, 20 | const unsigned char *sig, unsigned int sigSz); 21 | 22 | #ifdef __cplusplus 23 | } /* extern "C" */ 24 | #endif 25 | 26 | #endif /* header */ 27 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/engine.h: -------------------------------------------------------------------------------- 1 | /* engine.h for libcurl */ 2 | 3 | #undef HAVE_OPENSSL_ENGINE_H 4 | 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/err.h: -------------------------------------------------------------------------------- 1 | /* err.h for openssl */ 2 | #define ERR_load_crypto_strings wolfSSL_ERR_load_crypto_strings 3 | #define ERR_peek_last_error wolfSSL_ERR_peek_last_error 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/lhash.h: -------------------------------------------------------------------------------- 1 | /* lhash.h for openSSL */ 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/md4.h: -------------------------------------------------------------------------------- 1 | /* md4.h for libcurl */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/ocsp.h: -------------------------------------------------------------------------------- 1 | /* ocsp.h for libcurl */ 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/opensslconf.h: -------------------------------------------------------------------------------- 1 | /* opensslconf.h for openSSL */ 2 | 3 | 4 | #ifndef OPENSSL_THREADS 5 | #define OPENSSL_THREADS 6 | #endif 7 | 8 | 9 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/opensslv.h: -------------------------------------------------------------------------------- 1 | /* opensslv.h compatibility */ 2 | 3 | #ifndef WOLFSSL_OPENSSLV_H_ 4 | #define WOLFSSL_OPENSSLV_H_ 5 | 6 | 7 | /* api version compatibility */ 8 | #if defined(HAVE_STUNNEL) || defined(HAVE_LIGHTY) 9 | /* version number can be increased for Lighty after compatibility for ECDH 10 | is added */ 11 | #define OPENSSL_VERSION_NUMBER 0x10001000L 12 | #else 13 | #define OPENSSL_VERSION_NUMBER 0x0090810fL 14 | #endif 15 | 16 | #define OPENSSL_VERSION_TEXT LIBWOLFSSL_VERSION_STRING 17 | 18 | 19 | #endif /* header */ 20 | 21 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/ossl_typ.h: -------------------------------------------------------------------------------- 1 | /* ossl_typ.h for openssl */ 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/pkcs12.h: -------------------------------------------------------------------------------- 1 | /* pkcs12.h for openssl */ 2 | 3 | #include 4 | 5 | /* wolfCrypt level does not make use of ssl.h */ 6 | #define PKCS12 WC_PKCS12 7 | #define PKCS12_new wc_PKCS12_new 8 | #define PKCS12_free wc_PKCS12_free 9 | 10 | /* wolfSSL level using structs from ssl.h and calls down to wolfCrypt */ 11 | #define d2i_PKCS12_bio wolfSSL_d2i_PKCS12_bio 12 | #define PKCS12_parse wolfSSL_PKCS12_parse 13 | #define PKCS12_PBE_add wolfSSL_PKCS12_PBE_add 14 | 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/rand.h: -------------------------------------------------------------------------------- 1 | /* rand.h for openSSL */ 2 | 3 | #include 4 | #include 5 | 6 | #define RAND_set_rand_method wolfSSL_RAND_set_rand_method 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/ripemd.h: -------------------------------------------------------------------------------- 1 | /* ripemd.h for openssl */ 2 | 3 | 4 | #ifndef WOLFSSL_RIPEMD_H_ 5 | #define WOLFSSL_RIPEMD_H_ 6 | 7 | #include 8 | 9 | #ifdef __cplusplus 10 | extern "C" { 11 | #endif 12 | 13 | 14 | typedef struct WOLFSSL_RIPEMD_CTX { 15 | int holder[32]; /* big enough to hold wolfcrypt, but check on init */ 16 | } WOLFSSL_RIPEMD_CTX; 17 | 18 | WOLFSSL_API void wolfSSL_RIPEMD_Init(WOLFSSL_RIPEMD_CTX*); 19 | WOLFSSL_API void wolfSSL_RIPEMD_Update(WOLFSSL_RIPEMD_CTX*, const void*, 20 | unsigned long); 21 | WOLFSSL_API void wolfSSL_RIPEMD_Final(unsigned char*, WOLFSSL_RIPEMD_CTX*); 22 | 23 | 24 | typedef WOLFSSL_RIPEMD_CTX RIPEMD_CTX; 25 | 26 | #define RIPEMD_Init wolfSSL_RIPEMD_Init 27 | #define RIPEMD_Update wolfSSL_RIPEMD_Update 28 | #define RIPEMD_Final wolfSSL_RIPEMD_Final 29 | 30 | 31 | #ifdef __cplusplus 32 | } /* extern "C" */ 33 | #endif 34 | 35 | 36 | #endif /* WOLFSSL_MD5_H_ */ 37 | 38 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/stack.h: -------------------------------------------------------------------------------- 1 | /* stack.h for openssl */ 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/ui.h: -------------------------------------------------------------------------------- 1 | /* ui.h for openssl */ 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/x509.h: -------------------------------------------------------------------------------- 1 | /* x509.h for openssl */ 2 | 3 | #include 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wolfssl/openssl/x509v3.h: -------------------------------------------------------------------------------- 1 | /* x509v3.h for openssl */ 2 | 3 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/CSharp/wolfSSL-DTLS-PSK-Server/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/CSharp/wolfSSL-DTLS-Server/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/CSharp/wolfSSL-Example-IOCallbacks/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/CSharp/wolfSSL-TLS-PSK-Server/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/CSharp/wolfSSL-TLS-Server/App.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/CSharp/wolfSSL-TLS-Server/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/.centos-provisioner.sh: -------------------------------------------------------------------------------- 1 | [ "$(whoami)" != "root" ] && echo "Sorry, you are not root." && exit 1 2 | 3 | rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-6.noarch.rpm 4 | yum update 5 | yum install -y git autoconf libtool 6 | 7 | git clone https://github.com/wolfssl/wolfssl.git 8 | [ $? -ne 0 ] && echo "\n\nCouldn't download wolfssl.\n\n" && exit 1 9 | 10 | pushd wolfssl 11 | 12 | ./autogen.sh 13 | ./configure 14 | make 15 | make install 16 | echo /usr/local/lib > wolfssl.conf 17 | mv wolfssl.conf /etc/ld.so.conf 18 | ldconfig 19 | 20 | popd 21 | rm -rf wolfssl 22 | 23 | yum install -y libffi-devel python-devel python-pip 24 | 25 | pip install wolfcrypt 26 | [ $? -ne 0 ] && echo "\n\nCouldn't install wolfcrypt.\n\n" && exit 1 27 | 28 | echo "Test should print:" 29 | echo "da39a3ee5e6b4b0d3255bfef95601890afd80709" 30 | echo "Running test:" 31 | python -c "from wolfcrypt.hashes import Sha; print(Sha().hexdigest())" 32 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # Distribution 7 | build/ 8 | dist/ 9 | .eggs/ 10 | *.egg-info/ 11 | 12 | # Unit test 13 | .tox/ 14 | # Sphinx documentation 15 | docs/_build/ 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/.ubuntu-provisioner.sh: -------------------------------------------------------------------------------- 1 | [ "$(whoami)" != "root" ] && echo "Sorry, you are not root." && exit 1 2 | 3 | apt-get update 4 | apt-get install -y git autoconf libtool 5 | 6 | git clone https://github.com/wolfssl/wolfssl.git 7 | [ $? -ne 0 ] && echo "\n\nCouldn't download wolfssl.\n\n" && exit 1 8 | 9 | pushd wolfssl 10 | 11 | ./autogen.sh 12 | ./configure 13 | make 14 | make install 15 | ldconfig 16 | 17 | popd 18 | rm -rf wolfssl 19 | 20 | apt-get install -y libffi-dev python-dev python-pip 21 | 22 | pip install wolfcrypt 23 | [ $? -ne 0 ] && echo "\n\nCouldn't install wolfcrypt.\n\n" && exit 1 24 | 25 | echo "Test should print:" 26 | echo "da39a3ee5e6b4b0d3255bfef95601890afd80709" 27 | echo "Running test:" 28 | python -c "from wolfcrypt.hashes import Sha; print(Sha().hexdigest())" 29 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/LICENSING.rst: -------------------------------------------------------------------------------- 1 | Licensing 2 | --------- 3 | 4 | wolfSSL’s software is available under two distinct licensing models: 5 | open source and standard commercial licensing. Please see the relevant 6 | section below for information on each type of license. 7 | 8 | Open Source 9 | ~~~~~~~~~~~ 10 | 11 | wolfCrypt and wolfSSL software are free software downloads and may be modified 12 | to the needs of the user as long as the user adheres to version two of the GPL 13 | License. The GPLv2 license can be found on the `gnu.org website 14 | `_. 15 | 16 | Commercial Licensing 17 | ~~~~~~~~~~~~~~~~~~~~ 18 | 19 | Businesses and enterprises who wish to incorporate wolfSSL products into 20 | proprietary appliances or other commercial software products for 21 | re-distribution must license commercial versions. Licenses are generally issued 22 | for one product and include unlimited royalty-free distribution. Custom 23 | licensing terms are also available at licensing@wolfssl.com. 24 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSING.rst 2 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/Vagrantfile: -------------------------------------------------------------------------------- 1 | # -*- mode: ruby -*- 2 | # vi: set ft=ruby : 3 | BOX = "ubuntu" 4 | VAGRANTFILE_API_VERSION = "2" 5 | 6 | Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| 7 | if BOX == "ubuntu" 8 | config.vm.box = "ubuntu/trusty64" 9 | config.vm.provision "shell", path: ".ubuntu-provisioner.sh" 10 | else 11 | config.vm.box = "moisesguimaraes/centos72-64" 12 | config.vm.provision "shell", path: ".centos-provisioner.sh" 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/docs/index.rst: -------------------------------------------------------------------------------- 1 | .. include:: ../README.rst 2 | 3 | Summary 4 | ------- 5 | 6 | .. toctree:: 7 | :maxdepth: 1 8 | 9 | symmetric 10 | asymmetric 11 | digest 12 | mac 13 | random 14 | 15 | .. include:: ../LICENSING.rst 16 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/docs/random.rst: -------------------------------------------------------------------------------- 1 | Random Number Generation 2 | ======================== 3 | 4 | A **cryptographically secure pseudo-random number generator** (CSPRNG) is a 5 | **pseudo-random number generator** (PRNG) with properties that make it suitable 6 | for use in cryptography. 7 | 8 | Using the standard random module APIs for cryptographic keys or initialization 9 | vectors can result in major security issues depending on the algorithms in use. 10 | 11 | ``wolfcrypt`` provides the following CSPRNG implementation: 12 | 13 | .. module:: wolfcrypt.random 14 | 15 | .. autoclass:: Random 16 | :members: 17 | 18 | 19 | Example 20 | ------- 21 | 22 | >>> from wolfcrypt.random import Random 23 | >>> 24 | >>> r = Random() 25 | >>> b = r.byte() 26 | >>> b # doctest: +SKIP 27 | b'\x8c' 28 | >>> b16 = r.bytes(16) 29 | >>> b16 # doctest: +SKIP 30 | b']\x93nk\x95\xbc@\xffX\xab\xdcB\xda\x11\xf7\x03' 31 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/requirements-testing.txt: -------------------------------------------------------------------------------- 1 | pytest>=2.9.1 2 | cffi>=1.6.0 3 | tox>=2.3.1 4 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/tox.ini: -------------------------------------------------------------------------------- 1 | [tox] 2 | envlist=py27,py34,py35 3 | skip_missing_interpreters=true 4 | 5 | [testenv] 6 | deps=-rrequirements-testing.txt 7 | commands=py.test test/ 8 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/wolfcrypt/__init__.py: -------------------------------------------------------------------------------- 1 | # __init__.py 2 | # 3 | # Copyright (C) 2006-2016 wolfSSL Inc. 4 | # 5 | # This file is part of wolfSSL. (formerly known as CyaSSL) 6 | # 7 | # wolfSSL is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 2 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # wolfSSL is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, write to the Free Software 19 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 20 | 21 | from .__about__ import * 22 | -------------------------------------------------------------------------------- /components/hap/wolfssl/wrapper/python/wolfcrypt/wolfcrypt/exceptions.py: -------------------------------------------------------------------------------- 1 | # exceptions.py 2 | # 3 | # Copyright (C) 2006-2016 wolfSSL Inc. 4 | # 5 | # This file is part of wolfSSL. (formerly known as CyaSSL) 6 | # 7 | # wolfSSL is free software; you can redistribute it and/or modify 8 | # it under the terms of the GNU General Public License as published by 9 | # the Free Software Foundation; either version 2 of the License, or 10 | # (at your option) any later version. 11 | # 12 | # wolfSSL is distributed in the hope that it will be useful, 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | # GNU General Public License for more details. 16 | # 17 | # You should have received a copy of the GNU General Public License 18 | # along with this program; if not, write to the Free Software 19 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 20 | 21 | 22 | class WolfCryptError(Exception): 23 | pass 24 | -------------------------------------------------------------------------------- /main/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | set(COMPONENT_SRCS "main.cpp") 2 | set(COMPONENT_ADD_INCLUDEDIRS ".") 3 | 4 | register_component() 5 | -------------------------------------------------------------------------------- /main/Soulmate.h: -------------------------------------------------------------------------------- 1 | // Copyright 2019 Soulmate Lighting, LLC 2 | 3 | #ifndef SOULMATE_SOULMATE_H_ 4 | #define SOULMATE_SOULMATE_H_ 5 | 6 | #include "SoulmateMain.h" 7 | 8 | #ifndef SKIP_BLUETOOTH 9 | #include "SoulmateBLE.h" 10 | #endif 11 | 12 | #include "SoulmateBeatSin.h" 13 | #include "SoulmateFiles.h" 14 | #include "SoulmateStats.h" 15 | 16 | #include "SoulmateWifi.h" 17 | 18 | #include "SoulmateGrid.h" 19 | #include "SoulmateMatrix.h" 20 | 21 | #endif // SOULMATE_SOULMATE_H_ 22 | -------------------------------------------------------------------------------- /main/SoulmateBeatSin.h: -------------------------------------------------------------------------------- 1 | #ifndef SOULMATE_BEATSIN16_H_ 2 | #define SOULMATE_BEATSIN16_H_ 3 | 4 | #include 5 | 6 | // like beatsin16, but it returns a float 7 | float beatsin16float(float beats_per_minute, float lowest = 0, 8 | float highest = 65535, uint32_t timebase = 0, 9 | uint16_t phase_offset = 0) { 10 | float multiplier = 1000.0; 11 | float result = 12 | (float)beatsin16(beats_per_minute * multiplier, lowest * multiplier, 13 | highest * multiplier, timebase, phase_offset); 14 | return result / multiplier; 15 | } 16 | 17 | #endif // SOULMATE_BEATSIN16_H_ 18 | -------------------------------------------------------------------------------- /main/SoulmateFiles.h: -------------------------------------------------------------------------------- 1 | // Copyright 2019 Soulmate Lighting, LLC 2 | 3 | #ifndef SOULMATE_FILES_H_ 4 | #define SOULMATE_FILES_H_ 5 | #include "FS.h" 6 | 7 | #include 8 | 9 | #include 10 | Preferences filesPreferences; 11 | 12 | void writeFile(String name, String contents) { 13 | filesPreferences.begin("settings", false); 14 | filesPreferences.putString(name.c_str(), String(contents)); 15 | filesPreferences.end(); 16 | } 17 | 18 | String readFile(String name) { 19 | filesPreferences.begin("settings", false); 20 | String value = filesPreferences.getString(name.c_str(), ""); 21 | filesPreferences.end(); 22 | return value; 23 | } 24 | 25 | void deleteAllFiles() { 26 | filesPreferences.begin("settings", false); 27 | filesPreferences.clear(); 28 | filesPreferences.end(); 29 | } 30 | 31 | #endif // SOULMATE_FILES_H_ 32 | -------------------------------------------------------------------------------- /main/SoulmateStats.h: -------------------------------------------------------------------------------- 1 | // Copyright 2019 Soulmate Lighting, LLC 2 | 3 | #ifndef SOULMATE_STATS_H_ 4 | #define SOULMATE_STATS_H_ 5 | namespace Stats { 6 | int rand_range(int min, int max) { 7 | return random(min, (max + 1)); 8 | } 9 | } // namespace Stats 10 | 11 | namespace Util { 12 | int rand_range(int min, int max) { 13 | return random(min, (max + 1)); 14 | } 15 | } // namespace Util 16 | #endif 17 | -------------------------------------------------------------------------------- /main/component.mk: -------------------------------------------------------------------------------- 1 | CXXFLAGS += -Wall -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-error=parentheses -Wno-error=sizeof-pointer-memaccess -Wno-error=unused-value -Wno-error=type-limits -Wno-error=return-type -fpermissive -Wno-maybe-uninitialized 2 | -------------------------------------------------------------------------------- /main/cpplint.cfg: -------------------------------------------------------------------------------- 1 | filter=-whitespace/comments 2 | filter=-readability/casting 3 | filter=-runtime/int 4 | filter=-build/header_guard 5 | filter=-legal/copyright 6 | -------------------------------------------------------------------------------- /main/square.txt: -------------------------------------------------------------------------------- 1 | #define FIRMWARE_NAME "soulmate" 2 | #define N_LEDS 196 3 | #define SOULMATE_MILLIAMPS 4000 4 | #define LED_TYPE SK9822 5 | // #define FADE_DURATION 10 6 | #define LED_COLS 14 7 | #define LED_ROWS 14 8 | #define SOULMATE_DATA_PIN 32 9 | #define SOULMATE_CLOCK_PIN 26 10 | #define SOULMATE_BUTTON_PIN 39 11 | #define SOULMATE_SERPENTINE true 12 | // #define USE_WS2812B true 13 | 14 | #include "Soulmate.h" 15 | 16 | void pattern() { 17 | for (int i = 0; i < N_LEDS; i++) { 18 | Soulmate.leds[i] = CRGB::Red; 19 | } 20 | } 21 | 22 | void setup() { 23 | Soulmate.addRoutine("Pattern", pattern); 24 | 25 | Soulmate.setup(); 26 | } 27 | 28 | void loop() { 29 | Soulmate.loop(); 30 | } 31 | -------------------------------------------------------------------------------- /overrides/arduinoJson.mk: -------------------------------------------------------------------------------- 1 | COMPONENT_ADD_INCLUDEDIRS := src 2 | -------------------------------------------------------------------------------- /partitions.csv: -------------------------------------------------------------------------------- 1 | # Name, Type, SubType, Offset, Size, Flags 2 | nvs, data, nvs, 0x9000, 0x5000, 3 | otadata, data, ota, 0xe000, 0x2000, 4 | app0, app, ota_0, 0x10000, 0x1E0000, 5 | app1, app, ota_1, 0x1F0000,0x1E0000, 6 | eeprom, data, 0x99, 0x3F0000,0x1000, 7 | spiffs, data, spiffs, 0x3F1000,0xF000, -------------------------------------------------------------------------------- /qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Soulmate-Lights/soulmate-core/346ff9f795c7dd6d218d006404403da2849e3871/qrcode.png --------------------------------------------------------------------------------