@annadata/capacitor-mqtt-quic 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AnnadataCapacitorMqttQuic.podspec +36 -0
- package/README.md +121 -12
- package/android/NGTCP2_BUILD_INSTRUCTIONS.md +65 -44
- package/android/build-openssl.sh +1 -1
- package/android/install/nghttp3-android/arm64-v8a/include/nghttp3/nghttp3.h +3295 -0
- package/android/install/nghttp3-android/arm64-v8a/include/nghttp3/version.h +46 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Config.cmake +3 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +65 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Targets-release.cmake +29 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/cmake/nghttp3/nghttp3Targets.cmake +114 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/libnghttp3.a +0 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/libnghttp3.so +0 -0
- package/android/install/nghttp3-android/arm64-v8a/lib/pkgconfig/libnghttp3.pc +34 -0
- package/android/install/nghttp3-android/arm64-v8a/share/doc/nghttp3/README.rst +75 -0
- package/android/install/nghttp3-android/armeabi-v7a/include/nghttp3/nghttp3.h +3295 -0
- package/android/install/nghttp3-android/armeabi-v7a/include/nghttp3/version.h +46 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Config.cmake +3 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +65 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Targets-release.cmake +29 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/cmake/nghttp3/nghttp3Targets.cmake +114 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/libnghttp3.a +0 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/libnghttp3.so +0 -0
- package/android/install/nghttp3-android/armeabi-v7a/lib/pkgconfig/libnghttp3.pc +34 -0
- package/android/install/nghttp3-android/armeabi-v7a/share/doc/nghttp3/README.rst +75 -0
- package/android/install/nghttp3-android/x86_64/include/nghttp3/nghttp3.h +3295 -0
- package/android/install/nghttp3-android/x86_64/include/nghttp3/version.h +46 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Config.cmake +3 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3ConfigVersion.cmake +65 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Targets-release.cmake +29 -0
- package/android/install/nghttp3-android/x86_64/lib/cmake/nghttp3/nghttp3Targets.cmake +114 -0
- package/android/install/nghttp3-android/x86_64/lib/libnghttp3.a +0 -0
- package/android/install/nghttp3-android/x86_64/lib/libnghttp3.so +0 -0
- package/android/install/nghttp3-android/x86_64/lib/pkgconfig/libnghttp3.pc +34 -0
- package/android/install/nghttp3-android/x86_64/share/doc/nghttp3/README.rst +75 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2.h +6254 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2_crypto.h +1037 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/ngtcp2_crypto_wolfssl.h +106 -0
- package/android/install/ngtcp2-android/arm64-v8a/include/ngtcp2/version.h +51 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Config.cmake +6 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +65 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +29 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/cmake/ngtcp2/ngtcp2Targets.cmake +114 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2.a +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2.so +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2_crypto_wolfssl.a +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/libngtcp2_crypto_wolfssl.so +0 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/pkgconfig/libngtcp2.pc +33 -0
- package/android/install/ngtcp2-android/arm64-v8a/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +34 -0
- package/android/install/ngtcp2-android/arm64-v8a/share/doc/ngtcp2/README.rst +385 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2.h +6254 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2_crypto.h +1037 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/ngtcp2_crypto_wolfssl.h +106 -0
- package/android/install/ngtcp2-android/armeabi-v7a/include/ngtcp2/version.h +51 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Config.cmake +6 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +65 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +29 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/cmake/ngtcp2/ngtcp2Targets.cmake +114 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2.a +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2.so +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2_crypto_wolfssl.a +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/libngtcp2_crypto_wolfssl.so +0 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/pkgconfig/libngtcp2.pc +33 -0
- package/android/install/ngtcp2-android/armeabi-v7a/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +34 -0
- package/android/install/ngtcp2-android/armeabi-v7a/share/doc/ngtcp2/README.rst +385 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2.h +6254 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2_crypto.h +1037 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/ngtcp2_crypto_wolfssl.h +106 -0
- package/android/install/ngtcp2-android/x86_64/include/ngtcp2/version.h +51 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Config.cmake +6 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2ConfigVersion.cmake +65 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Targets-release.cmake +29 -0
- package/android/install/ngtcp2-android/x86_64/lib/cmake/ngtcp2/ngtcp2Targets.cmake +114 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2.a +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2.so +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2_crypto_wolfssl.a +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/libngtcp2_crypto_wolfssl.so +0 -0
- package/android/install/ngtcp2-android/x86_64/lib/pkgconfig/libngtcp2.pc +33 -0
- package/android/install/ngtcp2-android/x86_64/lib/pkgconfig/libngtcp2_crypto_wolfssl.pc +34 -0
- package/android/install/ngtcp2-android/x86_64/share/doc/ngtcp2/README.rst +385 -0
- package/android/install/wolfssl-android/arm64-v8a/bin/wolfssl-config +117 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/callbacks.h +93 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/certs_test.h +7073 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/certs_test_sm.h +2913 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/crl.h +58 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/error-ssl.h +280 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/ocsp.h +191 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/aes.h +117 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/asn1.h +315 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/asn1t.h +30 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/bio.h +237 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/bn.h +332 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/buffer.h +57 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/camellia.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/cmac.h +66 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/cms.h +26 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/compat_types.h +70 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/conf.h +117 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/crypto.h +171 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/des.h +124 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/dh.h +144 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/dsa.h +164 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec.h +525 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec25519.h +46 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ec448.h +46 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ecdh.h +49 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ecdsa.h +87 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ed25519.h +49 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ed448.h +49 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/engine.h +9 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/err.h +84 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/evp.h +1540 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/fips_rand.h +125 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/hmac.h +98 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/kdf.h +45 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/lhash.h +64 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/md4.h +66 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/md5.h +108 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/modes.h +45 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/obj_mac.h +92 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/objects.h +86 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ocsp.h +108 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/opensslconf.h +8 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/opensslv.h +78 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ossl_typ.h +32 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pem.h +301 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pkcs12.h +57 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/pkcs7.h +110 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rand.h +38 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rc4.h +64 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ripemd.h +58 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/rsa.h +291 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/safestack.h +40 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/sha.h +331 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/sha3.h +158 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/srp.h +33 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ssl.h +1923 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ssl23.h +1 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/stack.h +61 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/tls1.h +64 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/txt_db.h +60 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/ui.h +2 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509.h +227 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509_vfy.h +50 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/openssl/x509v3.h +237 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/options.h +273 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/quic.h +310 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/sniffer.h +359 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/sniffer_error.h +151 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/ssl.h +6300 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/test.h +4989 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/version.h +40 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/aes.h +1074 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/arc4.h +69 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ascon.h +109 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/asn.h +2855 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/asn_public.h +1009 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2-impl.h +155 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2-int.h +174 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/blake2.h +108 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/camellia.h +116 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/chacha.h +133 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/chacha20_poly1305.h +157 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cmac.h +168 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/coding.h +107 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/compress.h +60 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cpuid.h +153 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/cryptocb.h +770 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/curve25519.h +225 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/curve448.h +151 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/des3.h +167 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dh.h +210 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dilithium.h +1051 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/dsa.h +121 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ecc.h +1074 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/eccsi.h +176 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ed25519.h +239 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ed448.h +214 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/error-crypt.h +368 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_lms.h +62 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_mlkem.h +74 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ext_xmss.h +53 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/falcon.h +180 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fe_448.h +122 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fe_operations.h +189 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/fips_test.h +131 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ge_448.h +84 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ge_operations.h +134 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hash.h +296 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hmac.h +231 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/hpke.h +145 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/integer.h +449 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/kdf.h +199 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/lms.h +202 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/logging.h +588 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md2.h +83 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md4.h +77 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/md5.h +141 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mem_track.h +968 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/memory.h +545 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/misc.h +214 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mlkem.h +377 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mpi_class.h +1021 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/mpi_superclass.h +96 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/oid_sum.h +1907 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pkcs12.h +79 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pkcs7.h +578 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/poly1305.h +207 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/pwdbased.h +81 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/random.h +300 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/rc2.h +68 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/ripemd.h +67 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/rsa.h +494 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sakke.h +228 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/settings.h +4762 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha.h +237 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha256.h +360 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha3.h +274 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sha512.h +372 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/signature.h +87 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/siphash.h +101 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm2.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm3.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sm4.h +27 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sp_int.h +1396 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/sphincs.h +167 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/srp.h +313 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/tfm.h +941 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/types.h +2383 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/visibility.h +97 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_encrypt.h +126 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_lms.h +506 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_mlkem.h +370 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_port.h +1764 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wc_xmss.h +285 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wolfevent.h +120 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/wolfmath.h +175 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfcrypt/xmss.h +203 -0
- package/android/install/wolfssl-android/arm64-v8a/include/wolfssl/wolfio.h +1035 -0
- package/android/install/wolfssl-android/arm64-v8a/lib/libwolfssl.a +0 -0
- package/android/install/wolfssl-android/arm64-v8a/lib/libwolfssl.la +41 -0
- package/android/install/wolfssl-android/arm64-v8a/lib/pkgconfig/wolfssl.pc +11 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/QUIC.md +117 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/README.txt +8 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/async_client.c +245 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/async_server.c +331 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/client.c +4885 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/echoclient.c +341 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/echoserver.c +498 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-client-dtls.c +135 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-client.c +78 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-server-dtls.c +134 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/sctp-server.c +83 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/server.c +4124 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/example/tls_bench.c +2357 -0
- package/android/install/wolfssl-android/arm64-v8a/share/doc/wolfssl/taoCert.txt +176 -0
- package/android/install/wolfssl-android/armeabi-v7a/bin/wolfssl-config +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/callbacks.h +93 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/certs_test.h +7073 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/certs_test_sm.h +2913 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/crl.h +58 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/error-ssl.h +280 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/ocsp.h +191 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/aes.h +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/asn1.h +315 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/asn1t.h +30 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/bio.h +237 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/bn.h +332 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/buffer.h +57 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/camellia.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/cmac.h +66 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/cms.h +26 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/compat_types.h +70 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/conf.h +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/crypto.h +171 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/des.h +124 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/dh.h +144 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/dsa.h +164 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec.h +525 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec25519.h +46 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ec448.h +46 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ecdh.h +49 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ecdsa.h +87 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ed25519.h +49 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ed448.h +49 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/engine.h +9 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/err.h +84 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/evp.h +1540 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/fips_rand.h +125 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/hmac.h +98 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/kdf.h +45 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/lhash.h +64 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/md4.h +66 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/md5.h +108 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/modes.h +45 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/obj_mac.h +92 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/objects.h +86 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ocsp.h +108 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/opensslconf.h +8 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/opensslv.h +78 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ossl_typ.h +32 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pem.h +301 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pkcs12.h +57 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/pkcs7.h +110 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rand.h +38 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rc4.h +64 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ripemd.h +58 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/rsa.h +291 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/safestack.h +40 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/sha.h +331 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/sha3.h +158 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/srp.h +33 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ssl.h +1923 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ssl23.h +1 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/stack.h +61 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/tls1.h +64 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/txt_db.h +60 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/ui.h +2 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509.h +227 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509_vfy.h +50 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/openssl/x509v3.h +237 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/options.h +261 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/quic.h +310 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/sniffer.h +359 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/sniffer_error.h +151 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/ssl.h +6300 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/test.h +4989 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/version.h +40 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/aes.h +1074 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/arc4.h +69 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ascon.h +109 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/asn.h +2855 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/asn_public.h +1009 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2-impl.h +155 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2-int.h +174 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/blake2.h +108 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/camellia.h +116 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/chacha.h +133 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/chacha20_poly1305.h +157 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cmac.h +168 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/coding.h +107 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/compress.h +60 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cpuid.h +153 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/cryptocb.h +770 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/curve25519.h +225 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/curve448.h +151 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/des3.h +167 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dh.h +210 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dilithium.h +1051 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/dsa.h +121 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ecc.h +1074 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/eccsi.h +176 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ed25519.h +239 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ed448.h +214 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/error-crypt.h +368 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_lms.h +62 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_mlkem.h +74 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ext_xmss.h +53 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/falcon.h +180 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fe_448.h +122 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fe_operations.h +189 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/fips_test.h +131 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ge_448.h +84 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ge_operations.h +134 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hash.h +296 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hmac.h +231 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/hpke.h +145 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/integer.h +449 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/kdf.h +199 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/lms.h +202 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/logging.h +588 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md2.h +83 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md4.h +77 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/md5.h +141 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mem_track.h +968 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/memory.h +545 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/misc.h +214 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mlkem.h +377 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mpi_class.h +1021 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/mpi_superclass.h +96 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/oid_sum.h +1907 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pkcs12.h +79 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pkcs7.h +578 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/poly1305.h +207 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/pwdbased.h +81 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/random.h +300 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/rc2.h +68 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/ripemd.h +67 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/rsa.h +494 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sakke.h +228 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/settings.h +4762 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha.h +237 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha256.h +360 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha3.h +274 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sha512.h +372 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/signature.h +87 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/siphash.h +101 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm2.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm3.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sm4.h +27 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sp_int.h +1396 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/sphincs.h +167 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/srp.h +313 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/tfm.h +941 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/types.h +2383 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/visibility.h +97 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_encrypt.h +126 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_lms.h +506 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_mlkem.h +370 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_port.h +1764 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wc_xmss.h +285 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wolfevent.h +120 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/wolfmath.h +175 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfcrypt/xmss.h +203 -0
- package/android/install/wolfssl-android/armeabi-v7a/include/wolfssl/wolfio.h +1035 -0
- package/android/install/wolfssl-android/armeabi-v7a/lib/libwolfssl.a +0 -0
- package/android/install/wolfssl-android/armeabi-v7a/lib/libwolfssl.la +41 -0
- package/android/install/wolfssl-android/armeabi-v7a/lib/pkgconfig/wolfssl.pc +11 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/QUIC.md +117 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/README.txt +8 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/async_client.c +245 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/async_server.c +331 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/client.c +4885 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/echoclient.c +341 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/echoserver.c +498 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-client-dtls.c +135 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-client.c +78 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-server-dtls.c +134 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/sctp-server.c +83 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/server.c +4124 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/example/tls_bench.c +2357 -0
- package/android/install/wolfssl-android/armeabi-v7a/share/doc/wolfssl/taoCert.txt +176 -0
- package/android/install/wolfssl-android/x86_64/bin/wolfssl-config +117 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/callbacks.h +93 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/certs_test.h +7073 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/certs_test_sm.h +2913 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/crl.h +58 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/error-ssl.h +280 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/ocsp.h +191 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/aes.h +117 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/asn1.h +315 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/asn1t.h +30 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/bio.h +237 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/bn.h +332 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/buffer.h +57 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/camellia.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/cmac.h +66 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/cms.h +26 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/compat_types.h +70 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/conf.h +117 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/crypto.h +171 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/des.h +124 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/dh.h +144 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/dsa.h +164 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec.h +525 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec25519.h +46 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ec448.h +46 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ecdh.h +49 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ecdsa.h +87 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ed25519.h +49 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ed448.h +49 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/engine.h +9 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/err.h +84 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/evp.h +1540 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/fips_rand.h +125 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/hmac.h +98 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/kdf.h +45 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/lhash.h +64 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/md4.h +66 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/md5.h +108 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/modes.h +45 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/obj_mac.h +92 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/objects.h +86 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ocsp.h +108 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/opensslconf.h +8 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/opensslv.h +78 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ossl_typ.h +32 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pem.h +301 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pkcs12.h +57 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/pkcs7.h +110 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rand.h +38 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rc4.h +64 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ripemd.h +58 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/rsa.h +291 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/safestack.h +40 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/sha.h +331 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/sha3.h +158 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/srp.h +33 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ssl.h +1923 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ssl23.h +1 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/stack.h +61 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/tls1.h +64 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/txt_db.h +60 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/ui.h +2 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509.h +227 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509_vfy.h +50 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/openssl/x509v3.h +237 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/options.h +273 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/quic.h +310 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/sniffer.h +359 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/sniffer_error.h +151 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/ssl.h +6300 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/test.h +4989 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/version.h +40 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/aes.h +1074 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/arc4.h +69 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ascon.h +109 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/asn.h +2855 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/asn_public.h +1009 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2-impl.h +155 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2-int.h +174 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/blake2.h +108 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/camellia.h +116 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/chacha.h +133 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/chacha20_poly1305.h +157 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cmac.h +168 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/coding.h +107 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/compress.h +60 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cpuid.h +153 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/cryptocb.h +770 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/curve25519.h +225 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/curve448.h +151 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/des3.h +167 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dh.h +210 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dilithium.h +1051 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/dsa.h +121 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ecc.h +1074 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/eccsi.h +176 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ed25519.h +239 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ed448.h +214 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/error-crypt.h +368 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_lms.h +62 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_mlkem.h +74 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ext_xmss.h +53 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/falcon.h +180 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fe_448.h +122 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fe_operations.h +189 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/fips_test.h +131 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ge_448.h +84 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ge_operations.h +134 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hash.h +296 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hmac.h +231 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/hpke.h +145 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/integer.h +449 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/kdf.h +199 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/lms.h +202 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/logging.h +588 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md2.h +83 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md4.h +77 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/md5.h +141 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mem_track.h +968 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/memory.h +545 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/misc.h +214 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mlkem.h +377 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mpi_class.h +1021 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/mpi_superclass.h +96 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/oid_sum.h +1907 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pkcs12.h +79 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pkcs7.h +578 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/poly1305.h +207 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/pwdbased.h +81 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/random.h +300 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/rc2.h +68 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/ripemd.h +67 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/rsa.h +494 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sakke.h +228 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/settings.h +4762 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha.h +237 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha256.h +360 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha3.h +274 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sha512.h +372 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/signature.h +87 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/siphash.h +101 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm2.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm3.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sm4.h +27 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sp_int.h +1396 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/sphincs.h +167 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/srp.h +313 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/tfm.h +941 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/types.h +2383 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/visibility.h +97 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_encrypt.h +126 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_lms.h +506 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_mlkem.h +370 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_port.h +1764 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wc_xmss.h +285 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wolfevent.h +120 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/wolfmath.h +175 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfcrypt/xmss.h +203 -0
- package/android/install/wolfssl-android/x86_64/include/wolfssl/wolfio.h +1035 -0
- package/android/install/wolfssl-android/x86_64/lib/libwolfssl.a +0 -0
- package/android/install/wolfssl-android/x86_64/lib/libwolfssl.la +41 -0
- package/android/install/wolfssl-android/x86_64/lib/pkgconfig/wolfssl.pc +11 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/QUIC.md +117 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/README.txt +8 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/async_client.c +245 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/async_server.c +331 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/client.c +4885 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/echoclient.c +341 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/echoserver.c +498 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-client-dtls.c +135 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-client.c +78 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-server-dtls.c +134 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/sctp-server.c +83 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/server.c +4124 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/example/tls_bench.c +2357 -0
- package/android/install/wolfssl-android/x86_64/share/doc/wolfssl/taoCert.txt +176 -0
- package/android/src/main/cpp/CMakeLists.txt +19 -27
- package/android/src/main/cpp/ngtcp2_jni.cpp +30 -36
- package/android/src/main/kotlin/ai/annadata/mqttquic/MqttQuicPlugin.kt +15 -0
- package/android/src/main/kotlin/ai/annadata/mqttquic/client/MQTTClient.kt +6 -2
- package/build-native.sh +397 -0
- package/deps-versions.sh +25 -0
- package/dist/esm/definitions.d.ts +20 -0
- package/dist/esm/definitions.d.ts.map +1 -1
- package/dist/esm/web.d.ts +26 -3
- package/dist/esm/web.d.ts.map +1 -1
- package/dist/esm/web.js +230 -10
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +11363 -13
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +11364 -14
- package/dist/plugin.js.map +1 -1
- package/docs/ARCHITECTURAL_ANALYSIS.md +710 -0
- package/docs/CAPACITOR_MQTT_QUIC_PRODUCTION_PLUGIN.md +190 -0
- package/docs/CAPACITOR_VERSION_SUPPORT.md +65 -0
- package/docs/IMPLEMENTATION_SUMMARY.md +246 -0
- package/docs/MQTT5_CLIENT_COMPLIANCE.md +48 -0
- package/docs/MQTT5_IMPLEMENTATION_COMPLETE.md +178 -0
- package/docs/MQTT_VERSION_ANALYSIS.md +233 -0
- package/docs/NGTCP2_IMPLEMENTATION_STATUS.md +214 -0
- package/docs/NGTCP2_INTEGRATION_PLAN.md +597 -0
- package/docs/P0_P1_CHANGELOG.md +79 -0
- package/docs/PRODUCTION_PUBLISH_STEPS.md +161 -0
- package/docs/PROJECT_OVERVIEW.md +193 -0
- package/ios/.swiftpm/xcode/xcuserdata/annadata.xcuserdatad/xcschemes/xcschememanagement.plist +1 -1
- package/ios/NGTCP2_BUILD_INSTRUCTIONS.md +12 -0
- package/ios/Sources/MqttQuicPlugin/MqttQuicPlugin.swift +6 -0
- package/ios/Sources/MqttQuicPlugin/QUIC/NGTCP2Bridge.mm +6 -0
- package/ios/build-openssl.sh +1 -1
- package/ios/libs/MqttQuicLibs.xcframework/ios-arm64/libmqttquic_native_device.a +0 -0
- package/ios/libs/MqttQuicLibs.xcframework/ios-arm64_x86_64-simulator/libmqttquic_native_simulator.a +0 -0
- package/ios/libs/libnghttp3.a +0 -0
- package/ios/libs/libngtcp2.a +0 -0
- package/ios/libs/libngtcp2_crypto_wolfssl.a +0 -0
- package/ios/libs/libwolfssl.a +0 -0
- package/ios/libs-simulator/libnghttp3.a +0 -0
- package/ios/libs-simulator/libngtcp2.a +0 -0
- package/ios/libs-simulator/libngtcp2_crypto_wolfssl.a +0 -0
- package/ios/libs-simulator/libwolfssl.a +0 -0
- package/ios/libs-simulator-x86_64/libnghttp3.a +0 -0
- package/ios/libs-simulator-x86_64/libngtcp2.a +0 -0
- package/ios/libs-simulator-x86_64/libngtcp2_crypto_wolfssl.a +0 -0
- package/ios/libs-simulator-x86_64/libwolfssl.a +0 -0
- package/package.json +22 -8
- package/ios/include/ngtcp2/ngtcp2_crypto_quictls.h +0 -147
- package/ios/include/openssl/aes.h +0 -111
- package/ios/include/openssl/asn1.h +0 -1131
- package/ios/include/openssl/asn1_mac.h +0 -10
- package/ios/include/openssl/asn1err.h +0 -140
- package/ios/include/openssl/asn1t.h +0 -946
- package/ios/include/openssl/async.h +0 -96
- package/ios/include/openssl/asyncerr.h +0 -29
- package/ios/include/openssl/bio.h +0 -887
- package/ios/include/openssl/bioerr.h +0 -65
- package/ios/include/openssl/blowfish.h +0 -78
- package/ios/include/openssl/bn.h +0 -584
- package/ios/include/openssl/bnerr.h +0 -47
- package/ios/include/openssl/buffer.h +0 -62
- package/ios/include/openssl/buffererr.h +0 -25
- package/ios/include/openssl/camellia.h +0 -117
- package/ios/include/openssl/cast.h +0 -71
- package/ios/include/openssl/cmac.h +0 -52
- package/ios/include/openssl/cmp.h +0 -597
- package/ios/include/openssl/cmp_util.h +0 -56
- package/ios/include/openssl/cmperr.h +0 -116
- package/ios/include/openssl/cms.h +0 -493
- package/ios/include/openssl/cmserr.h +0 -124
- package/ios/include/openssl/comp.h +0 -59
- package/ios/include/openssl/comperr.h +0 -31
- package/ios/include/openssl/conf.h +0 -214
- package/ios/include/openssl/conf_api.h +0 -46
- package/ios/include/openssl/conferr.h +0 -52
- package/ios/include/openssl/configuration.h +0 -149
- package/ios/include/openssl/conftypes.h +0 -44
- package/ios/include/openssl/core.h +0 -233
- package/ios/include/openssl/core_dispatch.h +0 -960
- package/ios/include/openssl/core_names.h +0 -561
- package/ios/include/openssl/core_object.h +0 -41
- package/ios/include/openssl/crmf.h +0 -227
- package/ios/include/openssl/crmferr.h +0 -50
- package/ios/include/openssl/crypto.h +0 -558
- package/ios/include/openssl/cryptoerr.h +0 -55
- package/ios/include/openssl/cryptoerr_legacy.h +0 -1466
- package/ios/include/openssl/ct.h +0 -573
- package/ios/include/openssl/cterr.h +0 -45
- package/ios/include/openssl/decoder.h +0 -133
- package/ios/include/openssl/decodererr.h +0 -28
- package/ios/include/openssl/des.h +0 -211
- package/ios/include/openssl/dh.h +0 -335
- package/ios/include/openssl/dherr.h +0 -58
- package/ios/include/openssl/dsa.h +0 -280
- package/ios/include/openssl/dsaerr.h +0 -44
- package/ios/include/openssl/dtls1.h +0 -57
- package/ios/include/openssl/e_os2.h +0 -308
- package/ios/include/openssl/ebcdic.h +0 -39
- package/ios/include/openssl/ec.h +0 -1572
- package/ios/include/openssl/ecdh.h +0 -10
- package/ios/include/openssl/ecdsa.h +0 -10
- package/ios/include/openssl/ecerr.h +0 -104
- package/ios/include/openssl/encoder.h +0 -124
- package/ios/include/openssl/encodererr.h +0 -28
- package/ios/include/openssl/engine.h +0 -833
- package/ios/include/openssl/engineerr.h +0 -63
- package/ios/include/openssl/err.h +0 -504
- package/ios/include/openssl/ess.h +0 -128
- package/ios/include/openssl/esserr.h +0 -32
- package/ios/include/openssl/evp.h +0 -2175
- package/ios/include/openssl/evperr.h +0 -134
- package/ios/include/openssl/fips_names.h +0 -77
- package/ios/include/openssl/fipskey.h +0 -36
- package/ios/include/openssl/hmac.h +0 -62
- package/ios/include/openssl/http.h +0 -109
- package/ios/include/openssl/httperr.h +0 -55
- package/ios/include/openssl/idea.h +0 -82
- package/ios/include/openssl/kdf.h +0 -138
- package/ios/include/openssl/kdferr.h +0 -16
- package/ios/include/openssl/lhash.h +0 -331
- package/ios/include/openssl/macros.h +0 -325
- package/ios/include/openssl/md2.h +0 -56
- package/ios/include/openssl/md4.h +0 -63
- package/ios/include/openssl/md5.h +0 -62
- package/ios/include/openssl/mdc2.h +0 -55
- package/ios/include/openssl/modes.h +0 -219
- package/ios/include/openssl/obj_mac.h +0 -5481
- package/ios/include/openssl/objects.h +0 -183
- package/ios/include/openssl/objectserr.h +0 -28
- package/ios/include/openssl/ocsp.h +0 -483
- package/ios/include/openssl/ocsperr.h +0 -53
- package/ios/include/openssl/opensslconf.h +0 -17
- package/ios/include/openssl/opensslv.h +0 -114
- package/ios/include/openssl/ossl_typ.h +0 -16
- package/ios/include/openssl/param_build.h +0 -63
- package/ios/include/openssl/params.h +0 -160
- package/ios/include/openssl/pem.h +0 -541
- package/ios/include/openssl/pem2.h +0 -19
- package/ios/include/openssl/pemerr.h +0 -58
- package/ios/include/openssl/pkcs12.h +0 -353
- package/ios/include/openssl/pkcs12err.h +0 -45
- package/ios/include/openssl/pkcs7.h +0 -430
- package/ios/include/openssl/pkcs7err.h +0 -63
- package/ios/include/openssl/prov_ssl.h +0 -34
- package/ios/include/openssl/proverr.h +0 -149
- package/ios/include/openssl/provider.h +0 -60
- package/ios/include/openssl/quic.h +0 -19
- package/ios/include/openssl/rand.h +0 -125
- package/ios/include/openssl/randerr.h +0 -69
- package/ios/include/openssl/rc2.h +0 -68
- package/ios/include/openssl/rc4.h +0 -47
- package/ios/include/openssl/rc5.h +0 -79
- package/ios/include/openssl/ripemd.h +0 -59
- package/ios/include/openssl/rsa.h +0 -610
- package/ios/include/openssl/rsaerr.h +0 -107
- package/ios/include/openssl/safestack.h +0 -297
- package/ios/include/openssl/seed.h +0 -113
- package/ios/include/openssl/self_test.h +0 -94
- package/ios/include/openssl/sha.h +0 -138
- package/ios/include/openssl/srp.h +0 -285
- package/ios/include/openssl/srtp.h +0 -56
- package/ios/include/openssl/ssl.h +0 -2671
- package/ios/include/openssl/ssl2.h +0 -30
- package/ios/include/openssl/ssl3.h +0 -347
- package/ios/include/openssl/sslerr.h +0 -348
- package/ios/include/openssl/sslerr_legacy.h +0 -468
- package/ios/include/openssl/stack.h +0 -90
- package/ios/include/openssl/store.h +0 -369
- package/ios/include/openssl/storeerr.h +0 -49
- package/ios/include/openssl/symhacks.h +0 -39
- package/ios/include/openssl/tls1.h +0 -1186
- package/ios/include/openssl/trace.h +0 -312
- package/ios/include/openssl/ts.h +0 -505
- package/ios/include/openssl/tserr.h +0 -67
- package/ios/include/openssl/txt_db.h +0 -63
- package/ios/include/openssl/types.h +0 -239
- package/ios/include/openssl/ui.h +0 -407
- package/ios/include/openssl/uierr.h +0 -38
- package/ios/include/openssl/whrlpool.h +0 -62
- package/ios/include/openssl/x509.h +0 -1279
- package/ios/include/openssl/x509_vfy.h +0 -894
- package/ios/include/openssl/x509err.h +0 -69
- package/ios/include/openssl/x509v3.h +0 -1453
- package/ios/include/openssl/x509v3err.h +0 -93
- package/ios/libs/libcrypto.a +0 -0
- package/ios/libs/libngtcp2_crypto_quictls.a +0 -0
- package/ios/libs/libssl.a +0 -0
|
@@ -0,0 +1,1074 @@
|
|
|
1
|
+
/* aes.h
|
|
2
|
+
*
|
|
3
|
+
* Copyright (C) 2006-2025 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 3 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
|
+
\file wolfssl/wolfcrypt/aes.h
|
|
24
|
+
*/
|
|
25
|
+
/*
|
|
26
|
+
|
|
27
|
+
DESCRIPTION
|
|
28
|
+
This library provides the interfaces to the Advanced Encryption Standard (AES)
|
|
29
|
+
for encrypting and decrypting data. AES is the standard known for a symmetric
|
|
30
|
+
block cipher mechanism that uses n-bit binary string parameter key with 128-bits,
|
|
31
|
+
192-bits, and 256-bits of key sizes.
|
|
32
|
+
|
|
33
|
+
*/
|
|
34
|
+
#ifndef WOLF_CRYPT_AES_H
|
|
35
|
+
#define WOLF_CRYPT_AES_H
|
|
36
|
+
|
|
37
|
+
#include <wolfssl/wolfcrypt/types.h>
|
|
38
|
+
|
|
39
|
+
#if !defined(NO_AES) || defined(WOLFSSL_SM4)
|
|
40
|
+
typedef struct Gcm {
|
|
41
|
+
ALIGN16 byte H[16];
|
|
42
|
+
#ifdef OPENSSL_EXTRA
|
|
43
|
+
word32 aadH[4]; /* additional authenticated data GHASH */
|
|
44
|
+
word32 aadLen; /* additional authenticated data len */
|
|
45
|
+
#endif
|
|
46
|
+
#ifdef GCM_TABLE
|
|
47
|
+
/* key-based fast multiplication table. */
|
|
48
|
+
ALIGN16 byte M0[256][16];
|
|
49
|
+
#elif defined(GCM_TABLE_4BIT)
|
|
50
|
+
#if defined(BIG_ENDIAN_ORDER) || defined(WC_16BIT_CPU)
|
|
51
|
+
ALIGN16 byte M0[16][16];
|
|
52
|
+
#else
|
|
53
|
+
ALIGN16 byte M0[32][16];
|
|
54
|
+
#endif
|
|
55
|
+
#endif /* GCM_TABLE */
|
|
56
|
+
} Gcm;
|
|
57
|
+
|
|
58
|
+
#if FIPS_VERSION3_GE(6,0,0)
|
|
59
|
+
extern const unsigned int wolfCrypt_FIPS_aes_ro_sanity[2];
|
|
60
|
+
WOLFSSL_LOCAL int wolfCrypt_FIPS_AES_sanity(void);
|
|
61
|
+
#endif
|
|
62
|
+
|
|
63
|
+
WOLFSSL_LOCAL void GenerateM0(Gcm* gcm);
|
|
64
|
+
#if !defined(__aarch64__) && defined(WOLFSSL_ARMASM) && \
|
|
65
|
+
!defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
|
|
66
|
+
WOLFSSL_LOCAL void GMULT(byte* X, byte* Y);
|
|
67
|
+
#endif
|
|
68
|
+
WOLFSSL_LOCAL void GHASH(Gcm* gcm, const byte* a, word32 aSz, const byte* c,
|
|
69
|
+
word32 cSz, byte* s, word32 sSz);
|
|
70
|
+
#endif
|
|
71
|
+
|
|
72
|
+
#ifndef NO_AES
|
|
73
|
+
|
|
74
|
+
#if defined(HAVE_FIPS) && \
|
|
75
|
+
defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2)
|
|
76
|
+
#include <wolfssl/wolfcrypt/fips.h>
|
|
77
|
+
#endif /* HAVE_FIPS_VERSION >= 2 */
|
|
78
|
+
|
|
79
|
+
#ifndef WC_NO_RNG
|
|
80
|
+
#include <wolfssl/wolfcrypt/random.h>
|
|
81
|
+
#endif
|
|
82
|
+
#ifdef STM32_CRYPTO
|
|
83
|
+
#include <wolfssl/wolfcrypt/port/st/stm32.h>
|
|
84
|
+
#endif
|
|
85
|
+
|
|
86
|
+
#ifdef WOLFSSL_IMXRT_DCP
|
|
87
|
+
#include "fsl_dcp.h"
|
|
88
|
+
#endif
|
|
89
|
+
|
|
90
|
+
#ifdef WOLFSSL_XILINX_CRYPT
|
|
91
|
+
#ifdef WOLFSSL_XILINX_CRYPT_VERSAL
|
|
92
|
+
#include <wolfssl/wolfcrypt/port/xilinx/xil-versal-glue.h>
|
|
93
|
+
#include <xsecure_aesclient.h>
|
|
94
|
+
#if !defined(WOLFSSL_XILINX_AES_KEY_SRC)
|
|
95
|
+
#define WOLFSSL_XILINX_AES_KEY_SRC XSECURE_AES_USER_KEY_0
|
|
96
|
+
#endif
|
|
97
|
+
#else /* versal */
|
|
98
|
+
#include <xsecure_aes.h>
|
|
99
|
+
#if !defined(WOLFSSL_XILINX_AES_KEY_SRC)
|
|
100
|
+
#define WOLFSSL_XILINX_AES_KEY_SRC XSECURE_CSU_AES_KEY_SRC_KUP
|
|
101
|
+
#endif
|
|
102
|
+
#endif /* !versal */
|
|
103
|
+
#endif /* WOLFSSL_XILINX_CRYPT */
|
|
104
|
+
|
|
105
|
+
#if defined(WOLFSSL_XILINX_CRYPT) || defined(WOLFSSL_AFALG_XILINX_AES)
|
|
106
|
+
#if !defined(WOLFSSL_XILINX_AES_KEY_SRC)
|
|
107
|
+
#define WOLFSSL_XILINX_AES_KEY_SRC 0
|
|
108
|
+
#endif /* !defined(WOLFSSL_XILINX_AES_KEY_SRC) */
|
|
109
|
+
#endif /* all Xilinx crypto */
|
|
110
|
+
|
|
111
|
+
#ifdef WOLFSSL_SE050
|
|
112
|
+
#include <wolfssl/wolfcrypt/port/nxp/se050_port.h>
|
|
113
|
+
#endif
|
|
114
|
+
|
|
115
|
+
#if defined(WOLFSSL_AFALG) || defined(WOLFSSL_AFALG_XILINX_AES)
|
|
116
|
+
/* included for struct msghdr */
|
|
117
|
+
#include <wolfssl/wolfcrypt/port/af_alg/wc_afalg.h>
|
|
118
|
+
#endif
|
|
119
|
+
|
|
120
|
+
#if defined(WOLFSSL_KCAPI_AES)
|
|
121
|
+
#include <wolfssl/wolfcrypt/port/kcapi/wc_kcapi.h>
|
|
122
|
+
#endif
|
|
123
|
+
|
|
124
|
+
#if defined(WOLFSSL_DEVCRYPTO_AES) || defined(WOLFSSL_DEVCRYPTO_CBC)
|
|
125
|
+
#include <wolfssl/wolfcrypt/port/devcrypto/wc_devcrypto.h>
|
|
126
|
+
#endif
|
|
127
|
+
|
|
128
|
+
#ifdef WOLFSSL_SILABS_SE_ACCEL
|
|
129
|
+
#include <wolfssl/wolfcrypt/port/silabs/silabs_aes.h>
|
|
130
|
+
#endif
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
#if defined(HAVE_AESGCM) && !defined(WC_NO_RNG)
|
|
134
|
+
#include <wolfssl/wolfcrypt/random.h>
|
|
135
|
+
#endif
|
|
136
|
+
|
|
137
|
+
#if defined(WOLFSSL_HAVE_PSA) && !defined(WOLFSSL_PSA_NO_AES)
|
|
138
|
+
#include <psa/crypto.h>
|
|
139
|
+
#endif
|
|
140
|
+
|
|
141
|
+
#if defined(WOLFSSL_CRYPTOCELL)
|
|
142
|
+
#include <wolfssl/wolfcrypt/port/arm/cryptoCell.h>
|
|
143
|
+
#endif
|
|
144
|
+
|
|
145
|
+
#if (defined(WOLFSSL_RENESAS_TSIP_TLS) && \
|
|
146
|
+
defined(WOLFSSL_RENESAS_TSIP_TLS_AES_CRYPT)) ||\
|
|
147
|
+
defined(WOLFSSL_RENESAS_TSIP_CRYPTONLY)
|
|
148
|
+
#include <wolfssl/wolfcrypt/port/Renesas/renesas_tsip_types.h>
|
|
149
|
+
#endif
|
|
150
|
+
|
|
151
|
+
#if defined(WOLFSSL_RENESAS_FSPSM)
|
|
152
|
+
#include <wolfssl/wolfcrypt/port/Renesas/renesas_fspsm_internal.h>
|
|
153
|
+
#endif
|
|
154
|
+
|
|
155
|
+
#ifdef WOLFSSL_MAXQ10XX_CRYPTO
|
|
156
|
+
#include <wolfssl/wolfcrypt/port/maxim/maxq10xx.h>
|
|
157
|
+
#endif
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
#ifdef __cplusplus
|
|
161
|
+
extern "C" {
|
|
162
|
+
#endif
|
|
163
|
+
|
|
164
|
+
#ifndef WOLFSSL_AES_KEY_SIZE_ENUM
|
|
165
|
+
#define WOLFSSL_AES_KEY_SIZE_ENUM
|
|
166
|
+
/* these are required for FIPS and non-FIPS */
|
|
167
|
+
enum {
|
|
168
|
+
AES_128_KEY_SIZE = 16, /* for 128 bit */
|
|
169
|
+
AES_192_KEY_SIZE = 24, /* for 192 bit */
|
|
170
|
+
AES_256_KEY_SIZE = 32, /* for 256 bit */
|
|
171
|
+
|
|
172
|
+
AES_IV_SIZE = 16 /* always block size */
|
|
173
|
+
};
|
|
174
|
+
#endif
|
|
175
|
+
|
|
176
|
+
/* avoid redefinition of structs */
|
|
177
|
+
#if !defined(HAVE_FIPS) || \
|
|
178
|
+
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))
|
|
179
|
+
|
|
180
|
+
#ifdef WOLFSSL_ASYNC_CRYPT
|
|
181
|
+
#include <wolfssl/wolfcrypt/async.h>
|
|
182
|
+
#endif
|
|
183
|
+
|
|
184
|
+
enum {
|
|
185
|
+
AES_ENC_TYPE = WC_CIPHER_AES, /* cipher unique type */
|
|
186
|
+
AES_ENCRYPTION = 0,
|
|
187
|
+
AES_DECRYPTION = 1,
|
|
188
|
+
#ifdef WC_AES_XTS_SUPPORT_SIMULTANEOUS_ENC_AND_DEC_KEYS
|
|
189
|
+
AES_ENCRYPTION_AND_DECRYPTION = 2,
|
|
190
|
+
#endif
|
|
191
|
+
|
|
192
|
+
WC_AES_BLOCK_SIZE = 16,
|
|
193
|
+
#ifdef OPENSSL_COEXIST
|
|
194
|
+
/* allow OPENSSL_COEXIST applications to detect absence of AES_BLOCK_SIZE
|
|
195
|
+
* and presence of WC_AES_BLOCK_SIZE.
|
|
196
|
+
*
|
|
197
|
+
* if WC_NO_COMPAT_AES_BLOCK_SIZE is defined, WC_AES_BLOCK_SIZE is
|
|
198
|
+
* available, otherwise AES_BLOCK_SIZE is available.
|
|
199
|
+
*/
|
|
200
|
+
#define WC_NO_COMPAT_AES_BLOCK_SIZE
|
|
201
|
+
#else
|
|
202
|
+
#define AES_BLOCK_SIZE WC_AES_BLOCK_SIZE
|
|
203
|
+
#endif
|
|
204
|
+
|
|
205
|
+
KEYWRAP_BLOCK_SIZE = 8,
|
|
206
|
+
|
|
207
|
+
GCM_NONCE_MAX_SZ = 16, /* wolfCrypt's maximum nonce size allowed. */
|
|
208
|
+
GCM_NONCE_MID_SZ = 12, /* The default nonce size for AES-GCM. */
|
|
209
|
+
GCM_NONCE_MIN_SZ = 8, /* wolfCrypt's minimum nonce size allowed. */
|
|
210
|
+
CCM_NONCE_MIN_SZ = 7,
|
|
211
|
+
CCM_NONCE_MAX_SZ = 13,
|
|
212
|
+
CTR_SZ = 4,
|
|
213
|
+
AES_IV_FIXED_SZ = 4,
|
|
214
|
+
#ifdef WOLFSSL_AES_CFB
|
|
215
|
+
AES_CFB_MODE = 1,
|
|
216
|
+
#endif
|
|
217
|
+
#ifdef WOLFSSL_AES_OFB
|
|
218
|
+
AES_OFB_MODE = 2,
|
|
219
|
+
#endif
|
|
220
|
+
#ifdef WOLFSSL_AES_XTS
|
|
221
|
+
AES_XTS_MODE = 3,
|
|
222
|
+
#endif
|
|
223
|
+
|
|
224
|
+
#ifdef WOLF_PRIVATE_KEY_ID
|
|
225
|
+
AES_MAX_ID_LEN = 32,
|
|
226
|
+
AES_MAX_LABEL_LEN = 32,
|
|
227
|
+
#endif
|
|
228
|
+
|
|
229
|
+
WOLF_ENUM_DUMMY_LAST_ELEMENT(AES)
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
#ifdef WC_AES_BITSLICED
|
|
233
|
+
#ifdef WC_AES_BS_WORD_SIZE
|
|
234
|
+
#define BS_WORD_SIZE WC_AES_BS_WORD_SIZE
|
|
235
|
+
#elif defined(NO_64BIT)
|
|
236
|
+
#define BS_WORD_SIZE 32
|
|
237
|
+
#else
|
|
238
|
+
#define BS_WORD_SIZE 64
|
|
239
|
+
#endif
|
|
240
|
+
|
|
241
|
+
/* Number of bits to a block. */
|
|
242
|
+
#define AES_BLOCK_BITS (WC_AES_BLOCK_SIZE * 8)
|
|
243
|
+
/* Number of bytes of input that can be processed in one call. */
|
|
244
|
+
#define BS_BLOCK_SIZE (WC_AES_BLOCK_SIZE * BS_WORD_SIZE)
|
|
245
|
+
/* Number of words in a block. */
|
|
246
|
+
#define BS_BLOCK_WORDS (AES_BLOCK_BITS / BS_WORD_SIZE)
|
|
247
|
+
|
|
248
|
+
#if BS_WORD_SIZE == 64
|
|
249
|
+
typedef word64 bs_word;
|
|
250
|
+
#define BS_WORD_SHIFT 6
|
|
251
|
+
#define bs_bswap(x) ByteReverseWord64(x)
|
|
252
|
+
#elif BS_WORD_SIZE == 32
|
|
253
|
+
typedef word32 bs_word;
|
|
254
|
+
#define BS_WORD_SHIFT 5
|
|
255
|
+
#define bs_bswap(x) ByteReverseWord32(x)
|
|
256
|
+
#elif BS_WORD_SIZE == 16
|
|
257
|
+
typedef word16 bs_word;
|
|
258
|
+
#define BS_WORD_SHIFT 4
|
|
259
|
+
#define bs_bswap(x) ByteReverseWord16(x)
|
|
260
|
+
#elif BS_WORD_SIZE == 8
|
|
261
|
+
typedef word8 bs_word;
|
|
262
|
+
#define BS_WORD_SHIFT 3
|
|
263
|
+
#define bs_bswap(x) (x)
|
|
264
|
+
#else
|
|
265
|
+
#error "Word size not supported"
|
|
266
|
+
#endif
|
|
267
|
+
#endif
|
|
268
|
+
|
|
269
|
+
struct Aes {
|
|
270
|
+
ALIGN16 word32 key[60];
|
|
271
|
+
#ifdef WC_AES_BITSLICED
|
|
272
|
+
/* Extra key schedule space required for bit-slicing technique. */
|
|
273
|
+
ALIGN16 bs_word bs_key[15 * WC_AES_BLOCK_SIZE * BS_WORD_SIZE];
|
|
274
|
+
#endif
|
|
275
|
+
word32 rounds;
|
|
276
|
+
#ifdef WC_C_DYNAMIC_FALLBACK
|
|
277
|
+
word32 key_C_fallback[60];
|
|
278
|
+
#endif
|
|
279
|
+
int keylen;
|
|
280
|
+
|
|
281
|
+
ALIGN16 word32 reg[WC_AES_BLOCK_SIZE / sizeof(word32)]; /* for CBC mode */
|
|
282
|
+
ALIGN16 word32 tmp[WC_AES_BLOCK_SIZE / sizeof(word32)]; /* same */
|
|
283
|
+
|
|
284
|
+
#if defined(HAVE_AESGCM) || defined(HAVE_AESCCM)
|
|
285
|
+
word32 invokeCtr[2];
|
|
286
|
+
word32 nonceSz;
|
|
287
|
+
#endif
|
|
288
|
+
#ifdef HAVE_AESGCM
|
|
289
|
+
Gcm gcm;
|
|
290
|
+
#ifdef WOLFSSL_STM32U5_DHUK
|
|
291
|
+
byte dhukIV[16]; /* Used when unwrapping an encrypted key */
|
|
292
|
+
int dhukIVLen;
|
|
293
|
+
#endif
|
|
294
|
+
#ifdef WOLFSSL_SE050
|
|
295
|
+
sss_symmetric_t aes_ctx; /* used as the function context */
|
|
296
|
+
int ctxInitDone;
|
|
297
|
+
word32 keyId;
|
|
298
|
+
byte keyIdSet;
|
|
299
|
+
byte useSWCrypt; /* Use SW crypt instead of SE050, before SCP03 auth */
|
|
300
|
+
#endif
|
|
301
|
+
#ifdef HAVE_CAVIUM_OCTEON_SYNC
|
|
302
|
+
word32 y0;
|
|
303
|
+
#endif
|
|
304
|
+
#endif /* HAVE_AESGCM */
|
|
305
|
+
#ifdef WOLFSSL_CAAM
|
|
306
|
+
int blackKey; /* black key / hsm key id */
|
|
307
|
+
#endif
|
|
308
|
+
#ifdef WOLFSSL_AESNI
|
|
309
|
+
byte use_aesni;
|
|
310
|
+
#if defined(WOLFSSL_KERNEL_MODE) || defined(WC_WANT_FLAG_DONT_USE_VECTOR_OPS)
|
|
311
|
+
/* Note, we can't support WC_FLAG_DONT_USE_VECTOR_OPS by default because
|
|
312
|
+
* we need to support legacy applications that call wc_AesSetKey() on
|
|
313
|
+
* uninited struct Aes. For details see the software implementation of
|
|
314
|
+
* wc_AesSetKeyLocal() (aes.c).
|
|
315
|
+
*/
|
|
316
|
+
#define WC_FLAG_DONT_USE_VECTOR_OPS 2
|
|
317
|
+
#endif
|
|
318
|
+
#endif /* WOLFSSL_AESNI */
|
|
319
|
+
#if defined(__aarch64__) && defined(WOLFSSL_ARMASM) && \
|
|
320
|
+
!defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
|
|
321
|
+
byte use_aes_hw_crypto;
|
|
322
|
+
#ifdef HAVE_AESGCM
|
|
323
|
+
byte use_pmull_hw_crypto;
|
|
324
|
+
byte use_sha3_hw_crypto;
|
|
325
|
+
#endif
|
|
326
|
+
#endif /* __aarch64__ && WOLFSSL_ARMASM && !WOLFSSL_ARMASM_NO_HW_CRYPTO */
|
|
327
|
+
#if defined(WOLF_CRYPTO_CB) || defined(WOLFSSL_STM32U5_DHUK)
|
|
328
|
+
int devId;
|
|
329
|
+
void* devCtx;
|
|
330
|
+
#endif
|
|
331
|
+
#ifdef WOLF_PRIVATE_KEY_ID
|
|
332
|
+
byte id[AES_MAX_ID_LEN];
|
|
333
|
+
int idLen;
|
|
334
|
+
char label[AES_MAX_LABEL_LEN];
|
|
335
|
+
int labelLen;
|
|
336
|
+
#endif
|
|
337
|
+
#ifdef WOLFSSL_ASYNC_CRYPT
|
|
338
|
+
WC_ASYNC_DEV asyncDev;
|
|
339
|
+
#endif /* WOLFSSL_ASYNC_CRYPT */
|
|
340
|
+
#if defined(WOLFSSL_AES_COUNTER) || defined(WOLFSSL_AES_CFB) || \
|
|
341
|
+
defined(WOLFSSL_AES_OFB) || defined(WOLFSSL_AES_XTS) || \
|
|
342
|
+
defined(WOLFSSL_AES_CTS)
|
|
343
|
+
word32 left; /* unused bytes left from last call */
|
|
344
|
+
#endif
|
|
345
|
+
#ifdef WOLFSSL_XILINX_CRYPT
|
|
346
|
+
#ifdef WOLFSSL_XILINX_CRYPT_VERSAL
|
|
347
|
+
wc_Xsecure xSec;
|
|
348
|
+
XSecure_AesKeySize xKeySize;
|
|
349
|
+
int aadStyle;
|
|
350
|
+
byte keyInit[WOLFSSL_XSECURE_AES_KEY_SIZE] ALIGN64;
|
|
351
|
+
#else
|
|
352
|
+
XSecure_Aes xilAes;
|
|
353
|
+
XCsuDma dma;
|
|
354
|
+
word32 keyInit[8];
|
|
355
|
+
#endif
|
|
356
|
+
word32 kup;
|
|
357
|
+
#endif
|
|
358
|
+
#if defined(WOLFSSL_AFALG) || defined(WOLFSSL_AFALG_XILINX_AES)
|
|
359
|
+
int alFd; /* server socket to bind to */
|
|
360
|
+
int rdFd; /* socket to read from */
|
|
361
|
+
struct msghdr msg;
|
|
362
|
+
int dir; /* flag for encrypt or decrypt */
|
|
363
|
+
#ifdef WOLFSSL_AFALG_XILINX_AES
|
|
364
|
+
word32 msgBuf[CMSG_SPACE(4) + CMSG_SPACE(sizeof(struct af_alg_iv) +
|
|
365
|
+
GCM_NONCE_MID_SZ)];
|
|
366
|
+
#endif
|
|
367
|
+
#endif
|
|
368
|
+
#if defined(WOLFSSL_KCAPI_AES)
|
|
369
|
+
struct kcapi_handle* handle;
|
|
370
|
+
int init;
|
|
371
|
+
#endif
|
|
372
|
+
#if defined(WOLF_CRYPTO_CB) || (defined(WOLFSSL_DEVCRYPTO) && \
|
|
373
|
+
(defined(WOLFSSL_DEVCRYPTO_AES) || defined(WOLFSSL_DEVCRYPTO_CBC))) || \
|
|
374
|
+
(defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_AES)) || \
|
|
375
|
+
defined(WOLFSSL_KCAPI_AES)
|
|
376
|
+
word32 devKey[AES_MAX_KEY_SIZE/WOLFSSL_BIT_SIZE/sizeof(word32)]; /* raw key */
|
|
377
|
+
#ifdef HAVE_CAVIUM_OCTEON_SYNC
|
|
378
|
+
int keySet;
|
|
379
|
+
#endif
|
|
380
|
+
#endif
|
|
381
|
+
#if defined(WOLFSSL_DEVCRYPTO) && \
|
|
382
|
+
(defined(WOLFSSL_DEVCRYPTO_AES) || defined(WOLFSSL_DEVCRYPTO_CBC))
|
|
383
|
+
WC_CRYPTODEV ctx;
|
|
384
|
+
#endif
|
|
385
|
+
#if defined(WOLFSSL_CRYPTOCELL)
|
|
386
|
+
aes_context_t ctx;
|
|
387
|
+
#endif
|
|
388
|
+
#if (defined(WOLFSSL_RENESAS_TSIP_TLS) && \
|
|
389
|
+
defined(WOLFSSL_RENESAS_TSIP_TLS_AES_CRYPT)) ||\
|
|
390
|
+
defined(WOLFSSL_RENESAS_TSIP_CRYPTONLY)
|
|
391
|
+
TSIP_AES_CTX ctx;
|
|
392
|
+
#endif
|
|
393
|
+
#if defined(WOLFSSL_RENESAS_FSPSM)
|
|
394
|
+
FSPSM_AES_CTX ctx;
|
|
395
|
+
#endif
|
|
396
|
+
#if defined(WOLFSSL_IMXRT_DCP)
|
|
397
|
+
dcp_handle_t handle;
|
|
398
|
+
#endif
|
|
399
|
+
#if defined(WOLFSSL_SILABS_SE_ACCEL)
|
|
400
|
+
silabs_aes_t ctx;
|
|
401
|
+
#endif
|
|
402
|
+
#ifdef WOLFSSL_MAXQ10XX_CRYPTO
|
|
403
|
+
maxq_aes_t maxq_ctx;
|
|
404
|
+
#endif
|
|
405
|
+
#if defined(WOLFSSL_HAVE_PSA) && !defined(WOLFSSL_PSA_NO_AES)
|
|
406
|
+
psa_key_id_t key_id;
|
|
407
|
+
psa_cipher_operation_t psa_ctx;
|
|
408
|
+
int ctx_initialized;
|
|
409
|
+
int key_need_importing;
|
|
410
|
+
#endif
|
|
411
|
+
void* heap; /* memory hint to use */
|
|
412
|
+
#ifdef WOLFSSL_AESGCM_STREAM
|
|
413
|
+
#if !defined(WOLFSSL_SMALL_STACK) || defined(WOLFSSL_AESNI)
|
|
414
|
+
ALIGN16 byte streamData[5 * WC_AES_BLOCK_SIZE];
|
|
415
|
+
#else
|
|
416
|
+
byte* streamData;
|
|
417
|
+
word32 streamData_sz;
|
|
418
|
+
#endif
|
|
419
|
+
word32 aSz;
|
|
420
|
+
word32 cSz;
|
|
421
|
+
byte over;
|
|
422
|
+
byte aOver;
|
|
423
|
+
byte cOver;
|
|
424
|
+
WC_BITFIELD gcmKeySet:1;
|
|
425
|
+
WC_BITFIELD nonceSet:1;
|
|
426
|
+
WC_BITFIELD ctrSet:1;
|
|
427
|
+
#endif
|
|
428
|
+
#ifdef WC_DEBUG_CIPHER_LIFECYCLE
|
|
429
|
+
void *CipherLifecycleTag; /* used for dummy allocation and initialization,
|
|
430
|
+
* trackable by sanitizers.
|
|
431
|
+
*/
|
|
432
|
+
#endif
|
|
433
|
+
#ifdef WOLFSSL_AES_CTS
|
|
434
|
+
byte ctsBlock[WC_AES_BLOCK_SIZE * 2];
|
|
435
|
+
#endif
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
#ifndef WC_AES_TYPE_DEFINED
|
|
439
|
+
typedef struct Aes Aes;
|
|
440
|
+
#define WC_AES_TYPE_DEFINED
|
|
441
|
+
#endif
|
|
442
|
+
|
|
443
|
+
#ifdef WOLFSSL_AES_XTS
|
|
444
|
+
#if FIPS_VERSION3_GE(6,0,0)
|
|
445
|
+
/* SP800-38E - Restrict data unit to 2^20 blocks per key. A block is
|
|
446
|
+
* WC_AES_BLOCK_SIZE or 16-bytes (128-bits). So each key may only be used to
|
|
447
|
+
* protect up to 1,048,576 blocks of WC_AES_BLOCK_SIZE (16,777,216 bytes)
|
|
448
|
+
*/
|
|
449
|
+
#define FIPS_AES_XTS_MAX_BYTES_PER_TWEAK 16777216
|
|
450
|
+
#endif
|
|
451
|
+
struct XtsAes {
|
|
452
|
+
Aes aes;
|
|
453
|
+
#ifdef WC_AES_XTS_SUPPORT_SIMULTANEOUS_ENC_AND_DEC_KEYS
|
|
454
|
+
Aes aes_decrypt;
|
|
455
|
+
#endif
|
|
456
|
+
Aes tweak;
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
#ifdef WOLFSSL_AESXTS_STREAM
|
|
460
|
+
struct XtsAesStreamData {
|
|
461
|
+
byte tweak_block[WC_AES_BLOCK_SIZE];
|
|
462
|
+
word32 bytes_crypted_with_this_tweak;
|
|
463
|
+
};
|
|
464
|
+
#endif
|
|
465
|
+
|
|
466
|
+
#ifndef WC_AESXTS_TYPE_DEFINED
|
|
467
|
+
typedef struct XtsAes XtsAes;
|
|
468
|
+
typedef struct XtsAesStreamData XtsAesStreamData;
|
|
469
|
+
#define WC_AESXTS_TYPE_DEFINED
|
|
470
|
+
#endif
|
|
471
|
+
|
|
472
|
+
#endif
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
#if (!defined(WC_AESFREE_IS_MANDATORY)) && \
|
|
476
|
+
(defined(WC_DEBUG_CIPHER_LIFECYCLE) || \
|
|
477
|
+
(defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_AES)) || \
|
|
478
|
+
defined(WOLFSSL_AFALG) || defined(WOLFSSL_AFALG_XILINX_AES) || \
|
|
479
|
+
defined(WOLFSSL_KCAPI_AES) || \
|
|
480
|
+
(defined(WOLFSSL_DEVCRYPTO) && \
|
|
481
|
+
(defined(WOLFSSL_DEVCRYPTO_AES) || \
|
|
482
|
+
defined(WOLFSSL_DEVCRYPTO_CBC))) || \
|
|
483
|
+
defined(WOLFSSL_IMXRT_DCP) || \
|
|
484
|
+
(defined(WOLFSSL_AESGCM_STREAM) && defined(WOLFSSL_SMALL_STACK) && \
|
|
485
|
+
!defined(WOLFSSL_AESNI)) || \
|
|
486
|
+
(defined(WOLFSSL_SE050) && defined(WOLFSSL_SE050_CRYPT)) || \
|
|
487
|
+
(defined(WOLFSSL_HAVE_PSA) && !defined(WOLFSSL_PSA_NO_AES)) || \
|
|
488
|
+
defined(WOLFSSL_MAXQ10XX_CRYPTO) || \
|
|
489
|
+
((defined(WOLFSSL_RENESAS_FSPSM_TLS) || \
|
|
490
|
+
defined(WOLFSSL_RENESAS_FSPSM_CRYPTONLY)) && \
|
|
491
|
+
!defined(NO_WOLFSSL_RENESAS_FSPSM_AES)))
|
|
492
|
+
#define WC_AESFREE_IS_MANDATORY
|
|
493
|
+
#endif
|
|
494
|
+
|
|
495
|
+
#ifdef HAVE_AESGCM
|
|
496
|
+
struct Gmac {
|
|
497
|
+
Aes aes;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
#ifndef WC_AESGCM_TYPE_DEFINED
|
|
501
|
+
typedef struct Gmac Gmac;
|
|
502
|
+
#define WC_AESGCM_TYPE_DEFINED
|
|
503
|
+
#endif
|
|
504
|
+
|
|
505
|
+
#endif /* HAVE_AESGCM */
|
|
506
|
+
#endif /* HAVE_FIPS */
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
/* Authenticate cipher function prototypes */
|
|
510
|
+
typedef int (*wc_AesAuthEncryptFunc)(Aes* aes, byte* out,
|
|
511
|
+
const byte* in, word32 sz,
|
|
512
|
+
const byte* iv, word32 ivSz,
|
|
513
|
+
byte* authTag, word32 authTagSz,
|
|
514
|
+
const byte* authIn, word32 authInSz);
|
|
515
|
+
typedef int (*wc_AesAuthDecryptFunc)(Aes* aes, byte* out,
|
|
516
|
+
const byte* in, word32 sz,
|
|
517
|
+
const byte* iv, word32 ivSz,
|
|
518
|
+
const byte* authTag, word32 authTagSz,
|
|
519
|
+
const byte* authIn, word32 authInSz);
|
|
520
|
+
|
|
521
|
+
/* AES-CBC */
|
|
522
|
+
WOLFSSL_API int wc_AesSetKey(Aes* aes, const byte* key, word32 len,
|
|
523
|
+
const byte* iv, int dir);
|
|
524
|
+
WOLFSSL_API int wc_AesSetIV(Aes* aes, const byte* iv);
|
|
525
|
+
|
|
526
|
+
#ifdef HAVE_AES_CBC
|
|
527
|
+
WOLFSSL_API int wc_AesCbcEncrypt(Aes* aes, byte* out,
|
|
528
|
+
const byte* in, word32 sz);
|
|
529
|
+
WOLFSSL_API int wc_AesCbcDecrypt(Aes* aes, byte* out,
|
|
530
|
+
const byte* in, word32 sz);
|
|
531
|
+
#endif
|
|
532
|
+
|
|
533
|
+
#ifdef WOLFSSL_AES_CFB
|
|
534
|
+
WOLFSSL_API int wc_AesCfbEncrypt(Aes* aes, byte* out,
|
|
535
|
+
const byte* in, word32 sz);
|
|
536
|
+
WOLFSSL_API int wc_AesCfb1Encrypt(Aes* aes, byte* out,
|
|
537
|
+
const byte* in, word32 sz);
|
|
538
|
+
WOLFSSL_API int wc_AesCfb8Encrypt(Aes* aes, byte* out,
|
|
539
|
+
const byte* in, word32 sz);
|
|
540
|
+
#ifdef HAVE_AES_DECRYPT
|
|
541
|
+
WOLFSSL_API int wc_AesCfbDecrypt(Aes* aes, byte* out,
|
|
542
|
+
const byte* in, word32 sz);
|
|
543
|
+
WOLFSSL_API int wc_AesCfb1Decrypt(Aes* aes, byte* out,
|
|
544
|
+
const byte* in, word32 sz);
|
|
545
|
+
WOLFSSL_API int wc_AesCfb8Decrypt(Aes* aes, byte* out,
|
|
546
|
+
const byte* in, word32 sz);
|
|
547
|
+
#endif /* HAVE_AES_DECRYPT */
|
|
548
|
+
#endif /* WOLFSSL_AES_CFB */
|
|
549
|
+
|
|
550
|
+
#ifdef WOLFSSL_AES_OFB
|
|
551
|
+
WOLFSSL_API int wc_AesOfbEncrypt(Aes* aes, byte* out,
|
|
552
|
+
const byte* in, word32 sz);
|
|
553
|
+
#ifdef HAVE_AES_DECRYPT
|
|
554
|
+
WOLFSSL_API int wc_AesOfbDecrypt(Aes* aes, byte* out,
|
|
555
|
+
const byte* in, word32 sz);
|
|
556
|
+
#endif /* HAVE_AES_DECRYPT */
|
|
557
|
+
#endif /* WOLFSSL_AES_OFB */
|
|
558
|
+
|
|
559
|
+
#ifdef HAVE_AES_ECB
|
|
560
|
+
WOLFSSL_API int wc_AesEcbEncrypt(Aes* aes, byte* out,
|
|
561
|
+
const byte* in, word32 sz);
|
|
562
|
+
WOLFSSL_API int wc_AesEcbDecrypt(Aes* aes, byte* out,
|
|
563
|
+
const byte* in, word32 sz);
|
|
564
|
+
#endif
|
|
565
|
+
|
|
566
|
+
/* AES-CTR */
|
|
567
|
+
#ifdef WOLFSSL_AES_COUNTER
|
|
568
|
+
WOLFSSL_API int wc_AesCtrEncrypt(Aes* aes, byte* out,
|
|
569
|
+
const byte* in, word32 sz);
|
|
570
|
+
WOLFSSL_API int wc_AesCtrSetKey(Aes* aes, const byte* key, word32 len,
|
|
571
|
+
const byte* iv, int dir);
|
|
572
|
+
|
|
573
|
+
#endif
|
|
574
|
+
/* AES-DIRECT */
|
|
575
|
+
#if defined(WOLFSSL_AES_DIRECT)
|
|
576
|
+
#if defined(BUILDING_WOLFSSL)
|
|
577
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesEncryptDirect(Aes* aes, byte* out,
|
|
578
|
+
const byte* in);
|
|
579
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesDecryptDirect(Aes* aes, byte* out,
|
|
580
|
+
const byte* in);
|
|
581
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesSetKeyDirect(Aes* aes,
|
|
582
|
+
const byte* key,
|
|
583
|
+
word32 len,
|
|
584
|
+
const byte* iv, int dir);
|
|
585
|
+
#else
|
|
586
|
+
WOLFSSL_API int wc_AesEncryptDirect(Aes* aes, byte* out, const byte* in);
|
|
587
|
+
WOLFSSL_API int wc_AesDecryptDirect(Aes* aes, byte* out, const byte* in);
|
|
588
|
+
WOLFSSL_API int wc_AesSetKeyDirect(Aes* aes, const byte* key, word32 len,
|
|
589
|
+
const byte* iv, int dir);
|
|
590
|
+
#endif
|
|
591
|
+
#endif
|
|
592
|
+
|
|
593
|
+
#ifdef HAVE_AESGCM
|
|
594
|
+
#ifdef WOLFSSL_XILINX_CRYPT
|
|
595
|
+
WOLFSSL_API int wc_AesGcmSetKey_ex(Aes* aes, const byte* key, word32 len,
|
|
596
|
+
word32 kup);
|
|
597
|
+
#elif defined(WOLFSSL_AFALG_XILINX_AES)
|
|
598
|
+
WOLFSSL_LOCAL int wc_AesGcmSetKey_ex(Aes* aes, const byte* key, word32 len,
|
|
599
|
+
word32 kup);
|
|
600
|
+
#endif
|
|
601
|
+
WOLFSSL_API int wc_AesGcmSetKey(Aes* aes, const byte* key, word32 len);
|
|
602
|
+
WOLFSSL_API int wc_AesGcmEncrypt(Aes* aes, byte* out,
|
|
603
|
+
const byte* in, word32 sz,
|
|
604
|
+
const byte* iv, word32 ivSz,
|
|
605
|
+
byte* authTag, word32 authTagSz,
|
|
606
|
+
const byte* authIn, word32 authInSz);
|
|
607
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesGcmDecrypt(Aes* aes, byte* out,
|
|
608
|
+
const byte* in, word32 sz,
|
|
609
|
+
const byte* iv, word32 ivSz,
|
|
610
|
+
const byte* authTag, word32 authTagSz,
|
|
611
|
+
const byte* authIn, word32 authInSz);
|
|
612
|
+
#ifdef WOLFSSL_AESGCM_STREAM
|
|
613
|
+
WOLFSSL_API int wc_AesGcmInit(Aes* aes, const byte* key, word32 len,
|
|
614
|
+
const byte* iv, word32 ivSz);
|
|
615
|
+
|
|
616
|
+
WOLFSSL_API int wc_AesGcmEncryptInit(Aes* aes, const byte* key, word32 len,
|
|
617
|
+
const byte* iv, word32 ivSz);
|
|
618
|
+
WOLFSSL_API int wc_AesGcmEncryptInit_ex(Aes* aes, const byte* key, word32 len,
|
|
619
|
+
byte* ivOut, word32 ivOutSz);
|
|
620
|
+
WOLFSSL_API int wc_AesGcmEncryptUpdate(Aes* aes, byte* out, const byte* in,
|
|
621
|
+
word32 sz, const byte* authIn, word32 authInSz);
|
|
622
|
+
WOLFSSL_API int wc_AesGcmEncryptFinal(Aes* aes, byte* authTag,
|
|
623
|
+
word32 authTagSz);
|
|
624
|
+
|
|
625
|
+
WOLFSSL_API int wc_AesGcmDecryptInit(Aes* aes, const byte* key, word32 len,
|
|
626
|
+
const byte* iv, word32 ivSz);
|
|
627
|
+
WOLFSSL_API int wc_AesGcmDecryptUpdate(Aes* aes, byte* out, const byte* in,
|
|
628
|
+
word32 sz, const byte* authIn, word32 authInSz);
|
|
629
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesGcmDecryptFinal(Aes* aes,
|
|
630
|
+
const byte* authTag, word32 authTagSz);
|
|
631
|
+
#endif
|
|
632
|
+
|
|
633
|
+
#ifndef WC_NO_RNG
|
|
634
|
+
WOLFSSL_API int wc_AesGcmSetExtIV(Aes* aes, const byte* iv, word32 ivSz);
|
|
635
|
+
WOLFSSL_API int wc_AesGcmSetIV(Aes* aes, word32 ivSz,
|
|
636
|
+
const byte* ivFixed, word32 ivFixedSz,
|
|
637
|
+
WC_RNG* rng);
|
|
638
|
+
WOLFSSL_API int wc_AesGcmEncrypt_ex(Aes* aes, byte* out,
|
|
639
|
+
const byte* in, word32 sz,
|
|
640
|
+
byte* ivOut, word32 ivOutSz,
|
|
641
|
+
byte* authTag, word32 authTagSz,
|
|
642
|
+
const byte* authIn, word32 authInSz);
|
|
643
|
+
#endif /* WC_NO_RNG */
|
|
644
|
+
|
|
645
|
+
WOLFSSL_API int wc_GmacSetKey(Gmac* gmac, const byte* key, word32 len);
|
|
646
|
+
WOLFSSL_API int wc_GmacUpdate(Gmac* gmac, const byte* iv, word32 ivSz,
|
|
647
|
+
const byte* authIn, word32 authInSz,
|
|
648
|
+
byte* authTag, word32 authTagSz);
|
|
649
|
+
#ifndef WC_NO_RNG
|
|
650
|
+
WOLFSSL_API int wc_Gmac(const byte* key, word32 keySz, byte* iv, word32 ivSz,
|
|
651
|
+
const byte* authIn, word32 authInSz,
|
|
652
|
+
byte* authTag, word32 authTagSz, WC_RNG* rng);
|
|
653
|
+
WOLFSSL_API int wc_GmacVerify(const byte* key, word32 keySz,
|
|
654
|
+
const byte* iv, word32 ivSz,
|
|
655
|
+
const byte* authIn, word32 authInSz,
|
|
656
|
+
const byte* authTag, word32 authTagSz);
|
|
657
|
+
#endif /* WC_NO_RNG */
|
|
658
|
+
#endif /* HAVE_AESGCM */
|
|
659
|
+
#ifdef HAVE_AESCCM
|
|
660
|
+
WOLFSSL_LOCAL int wc_AesCcmCheckTagSize(int sz);
|
|
661
|
+
WOLFSSL_API int wc_AesCcmSetKey(Aes* aes, const byte* key, word32 keySz);
|
|
662
|
+
WOLFSSL_API int wc_AesCcmEncrypt(Aes* aes, byte* out,
|
|
663
|
+
const byte* in, word32 inSz,
|
|
664
|
+
const byte* nonce, word32 nonceSz,
|
|
665
|
+
byte* authTag, word32 authTagSz,
|
|
666
|
+
const byte* authIn, word32 authInSz);
|
|
667
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesCcmDecrypt(Aes* aes, byte* out,
|
|
668
|
+
const byte* in, word32 inSz,
|
|
669
|
+
const byte* nonce, word32 nonceSz,
|
|
670
|
+
const byte* authTag, word32 authTagSz,
|
|
671
|
+
const byte* authIn, word32 authInSz);
|
|
672
|
+
WOLFSSL_API int wc_AesCcmSetNonce(Aes* aes,
|
|
673
|
+
const byte* nonce, word32 nonceSz);
|
|
674
|
+
WOLFSSL_API int wc_AesCcmEncrypt_ex(Aes* aes, byte* out,
|
|
675
|
+
const byte* in, word32 sz,
|
|
676
|
+
byte* ivOut, word32 ivOutSz,
|
|
677
|
+
byte* authTag, word32 authTagSz,
|
|
678
|
+
const byte* authIn, word32 authInSz);
|
|
679
|
+
#endif /* HAVE_AESCCM */
|
|
680
|
+
|
|
681
|
+
#ifdef HAVE_AES_KEYWRAP
|
|
682
|
+
WOLFSSL_API int wc_AesKeyWrap(const byte* key, word32 keySz,
|
|
683
|
+
const byte* in, word32 inSz,
|
|
684
|
+
byte* out, word32 outSz,
|
|
685
|
+
const byte* iv);
|
|
686
|
+
WOLFSSL_API int wc_AesKeyWrap_ex(Aes *aes,
|
|
687
|
+
const byte* in, word32 inSz,
|
|
688
|
+
byte* out, word32 outSz,
|
|
689
|
+
const byte* iv);
|
|
690
|
+
WOLFSSL_API int wc_AesKeyUnWrap(const byte* key, word32 keySz,
|
|
691
|
+
const byte* in, word32 inSz,
|
|
692
|
+
byte* out, word32 outSz,
|
|
693
|
+
const byte* iv);
|
|
694
|
+
WOLFSSL_API int wc_AesKeyUnWrap_ex(Aes *aes,
|
|
695
|
+
const byte* in, word32 inSz,
|
|
696
|
+
byte* out, word32 outSz,
|
|
697
|
+
const byte* iv);
|
|
698
|
+
#endif /* HAVE_AES_KEYWRAP */
|
|
699
|
+
|
|
700
|
+
#ifdef WOLFSSL_AES_XTS
|
|
701
|
+
|
|
702
|
+
WOLFSSL_API int wc_AesXtsInit(XtsAes* aes, void* heap, int devId);
|
|
703
|
+
|
|
704
|
+
WOLFSSL_API int wc_AesXtsSetKeyNoInit(XtsAes* aes, const byte* key,
|
|
705
|
+
word32 len, int dir);
|
|
706
|
+
|
|
707
|
+
WOLFSSL_API int wc_AesXtsSetKey(XtsAes* aes, const byte* key,
|
|
708
|
+
word32 len, int dir, void* heap, int devId);
|
|
709
|
+
|
|
710
|
+
WOLFSSL_API int wc_AesXtsEncryptSector(XtsAes* aes, byte* out,
|
|
711
|
+
const byte* in, word32 sz, word64 sector);
|
|
712
|
+
|
|
713
|
+
WOLFSSL_API int wc_AesXtsDecryptSector(XtsAes* aes, byte* out,
|
|
714
|
+
const byte* in, word32 sz, word64 sector);
|
|
715
|
+
|
|
716
|
+
WOLFSSL_API int wc_AesXtsEncrypt(XtsAes* aes, byte* out,
|
|
717
|
+
const byte* in, word32 sz, const byte* i, word32 iSz);
|
|
718
|
+
|
|
719
|
+
WOLFSSL_API int wc_AesXtsDecrypt(XtsAes* aes, byte* out,
|
|
720
|
+
const byte* in, word32 sz, const byte* i, word32 iSz);
|
|
721
|
+
|
|
722
|
+
WOLFSSL_API int wc_AesXtsEncryptConsecutiveSectors(XtsAes* aes,
|
|
723
|
+
byte* out, const byte* in, word32 sz, word64 sector,
|
|
724
|
+
word32 sectorSz);
|
|
725
|
+
|
|
726
|
+
WOLFSSL_API int wc_AesXtsDecryptConsecutiveSectors(XtsAes* aes,
|
|
727
|
+
byte* out, const byte* in, word32 sz, word64 sector,
|
|
728
|
+
word32 sectorSz);
|
|
729
|
+
|
|
730
|
+
#ifdef WOLFSSL_AESXTS_STREAM
|
|
731
|
+
|
|
732
|
+
WOLFSSL_API int wc_AesXtsEncryptInit(XtsAes* aes, const byte* i, word32 iSz,
|
|
733
|
+
struct XtsAesStreamData *stream);
|
|
734
|
+
|
|
735
|
+
WOLFSSL_API int wc_AesXtsDecryptInit(XtsAes* aes, const byte* i, word32 iSz,
|
|
736
|
+
struct XtsAesStreamData *stream);
|
|
737
|
+
|
|
738
|
+
WOLFSSL_API int wc_AesXtsEncryptUpdate(XtsAes* aes, byte* out,
|
|
739
|
+
const byte* in, word32 sz, struct XtsAesStreamData *stream);
|
|
740
|
+
|
|
741
|
+
WOLFSSL_API int wc_AesXtsDecryptUpdate(XtsAes* aes, byte* out,
|
|
742
|
+
const byte* in, word32 sz, struct XtsAesStreamData *stream);
|
|
743
|
+
|
|
744
|
+
WOLFSSL_API int wc_AesXtsEncryptFinal(XtsAes* aes, byte* out,
|
|
745
|
+
const byte* in, word32 sz, struct XtsAesStreamData *stream);
|
|
746
|
+
|
|
747
|
+
WOLFSSL_API int wc_AesXtsDecryptFinal(XtsAes* aes, byte* out,
|
|
748
|
+
const byte* in, word32 sz, struct XtsAesStreamData *stream);
|
|
749
|
+
|
|
750
|
+
#endif /* WOLFSSL_AESXTS_STREAM */
|
|
751
|
+
|
|
752
|
+
WOLFSSL_API int wc_AesXtsFree(XtsAes* aes);
|
|
753
|
+
#endif
|
|
754
|
+
|
|
755
|
+
WOLFSSL_API int wc_AesGetKeySize(Aes* aes, word32* keySize);
|
|
756
|
+
|
|
757
|
+
WOLFSSL_API int wc_AesInit(Aes* aes, void* heap, int devId);
|
|
758
|
+
#ifdef WOLF_PRIVATE_KEY_ID
|
|
759
|
+
WOLFSSL_API int wc_AesInit_Id(Aes* aes, unsigned char* id, int len, void* heap,
|
|
760
|
+
int devId);
|
|
761
|
+
WOLFSSL_API int wc_AesInit_Label(Aes* aes, const char* label, void* heap,
|
|
762
|
+
int devId);
|
|
763
|
+
#endif
|
|
764
|
+
WOLFSSL_API void wc_AesFree(Aes* aes);
|
|
765
|
+
#ifndef WC_NO_CONSTRUCTORS
|
|
766
|
+
WOLFSSL_API Aes* wc_AesNew(void* heap, int devId, int *result_code);
|
|
767
|
+
WOLFSSL_API int wc_AesDelete(Aes* aes, Aes** aes_p);
|
|
768
|
+
#endif
|
|
769
|
+
|
|
770
|
+
#ifdef WOLFSSL_AES_SIV
|
|
771
|
+
typedef struct AesSivAssoc {
|
|
772
|
+
const byte* assoc;
|
|
773
|
+
word32 assocSz;
|
|
774
|
+
} AesSivAssoc;
|
|
775
|
+
|
|
776
|
+
WOLFSSL_API
|
|
777
|
+
int wc_AesSivEncrypt(const byte* key, word32 keySz, const byte* assoc,
|
|
778
|
+
word32 assocSz, const byte* nonce, word32 nonceSz,
|
|
779
|
+
const byte* in, word32 inSz, byte* siv, byte* out);
|
|
780
|
+
WOLFSSL_API WARN_UNUSED_RESULT
|
|
781
|
+
int wc_AesSivDecrypt(const byte* key, word32 keySz, const byte* assoc,
|
|
782
|
+
word32 assocSz, const byte* nonce, word32 nonceSz,
|
|
783
|
+
const byte* in, word32 inSz, byte* siv, byte* out);
|
|
784
|
+
|
|
785
|
+
WOLFSSL_API
|
|
786
|
+
int wc_AesSivEncrypt_ex(const byte* key, word32 keySz, const AesSivAssoc* assoc,
|
|
787
|
+
word32 numAssoc, const byte* nonce, word32 nonceSz,
|
|
788
|
+
const byte* in, word32 inSz, byte* siv, byte* out);
|
|
789
|
+
WOLFSSL_API WARN_UNUSED_RESULT
|
|
790
|
+
int wc_AesSivDecrypt_ex(const byte* key, word32 keySz, const AesSivAssoc* assoc,
|
|
791
|
+
word32 numAssoc, const byte* nonce, word32 nonceSz,
|
|
792
|
+
const byte* in, word32 inSz, byte* siv, byte* out);
|
|
793
|
+
#endif
|
|
794
|
+
|
|
795
|
+
#ifdef WOLFSSL_AES_EAX
|
|
796
|
+
|
|
797
|
+
/* Because of the circular dependency between AES and CMAC, we need to prevent
|
|
798
|
+
* inclusion of AES EAX from CMAC to avoid a recursive inclusion */
|
|
799
|
+
#ifndef WOLF_CRYPT_CMAC_H
|
|
800
|
+
#include <wolfssl/wolfcrypt/cmac.h>
|
|
801
|
+
struct AesEax {
|
|
802
|
+
Aes aes;
|
|
803
|
+
Cmac nonceCmac;
|
|
804
|
+
Cmac aadCmac;
|
|
805
|
+
Cmac ciphertextCmac;
|
|
806
|
+
byte nonceCmacFinal[WC_AES_BLOCK_SIZE];
|
|
807
|
+
byte aadCmacFinal[WC_AES_BLOCK_SIZE];
|
|
808
|
+
byte ciphertextCmacFinal[WC_AES_BLOCK_SIZE];
|
|
809
|
+
byte prefixBuf[WC_AES_BLOCK_SIZE];
|
|
810
|
+
};
|
|
811
|
+
#endif /* !defined(WOLF_CRYPT_CMAC_H) */
|
|
812
|
+
|
|
813
|
+
typedef struct AesEax AesEax;
|
|
814
|
+
|
|
815
|
+
/* One-shot API */
|
|
816
|
+
WOLFSSL_API int wc_AesEaxEncryptAuth(const byte* key, word32 keySz, byte* out,
|
|
817
|
+
const byte* in, word32 inSz,
|
|
818
|
+
const byte* nonce, word32 nonceSz,
|
|
819
|
+
/* output computed auth tag */
|
|
820
|
+
byte* authTag, word32 authTagSz,
|
|
821
|
+
/* input data to authenticate (header) */
|
|
822
|
+
const byte* authIn, word32 authInSz);
|
|
823
|
+
|
|
824
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesEaxDecryptAuth(const byte* key,
|
|
825
|
+
word32 keySz, byte* out,
|
|
826
|
+
const byte* in, word32 inSz,
|
|
827
|
+
const byte* nonce, word32 nonceSz,
|
|
828
|
+
/* auth tag to verify against */
|
|
829
|
+
const byte* authTag, word32 authTagSz,
|
|
830
|
+
/* input data to authenticate (header) */
|
|
831
|
+
const byte* authIn, word32 authInSz);
|
|
832
|
+
|
|
833
|
+
/* Incremental API */
|
|
834
|
+
WOLFSSL_API int wc_AesEaxInit(AesEax* eax,
|
|
835
|
+
const byte* key, word32 keySz,
|
|
836
|
+
const byte* nonce, word32 nonceSz,
|
|
837
|
+
const byte* authIn, word32 authInSz);
|
|
838
|
+
|
|
839
|
+
WOLFSSL_API int wc_AesEaxEncryptUpdate(AesEax* eax, byte* out,
|
|
840
|
+
const byte* in, word32 inSz,
|
|
841
|
+
const byte* authIn, word32 authInSz);
|
|
842
|
+
|
|
843
|
+
WOLFSSL_API int wc_AesEaxDecryptUpdate(AesEax* eax, byte* out,
|
|
844
|
+
const byte* in, word32 inSz,
|
|
845
|
+
const byte* authIn, word32 authInSz);
|
|
846
|
+
|
|
847
|
+
WOLFSSL_API int wc_AesEaxAuthDataUpdate(AesEax* eax,
|
|
848
|
+
const byte* authIn, word32 authInSz);
|
|
849
|
+
|
|
850
|
+
WOLFSSL_API int wc_AesEaxEncryptFinal(AesEax* eax,
|
|
851
|
+
byte* authTag, word32 authTagSz);
|
|
852
|
+
|
|
853
|
+
WOLFSSL_API WARN_UNUSED_RESULT int wc_AesEaxDecryptFinal(AesEax* eax,
|
|
854
|
+
const byte* authIn, word32 authInSz);
|
|
855
|
+
|
|
856
|
+
WOLFSSL_API int wc_AesEaxFree(AesEax* eax);
|
|
857
|
+
|
|
858
|
+
#endif /* WOLFSSL_AES_EAX */
|
|
859
|
+
|
|
860
|
+
#ifdef WOLFSSL_AES_CTS
|
|
861
|
+
/* Ciphertext stealing encryption compatible with RFC2040 and RFC3962. */
|
|
862
|
+
|
|
863
|
+
/* One-shot API */
|
|
864
|
+
WOLFSSL_API int wc_AesCtsEncrypt(const byte* key, word32 keySz, byte* out,
|
|
865
|
+
const byte* in, word32 inSz,
|
|
866
|
+
const byte* iv);
|
|
867
|
+
WOLFSSL_API int wc_AesCtsDecrypt(const byte* key, word32 keySz, byte* out,
|
|
868
|
+
const byte* in, word32 inSz,
|
|
869
|
+
const byte* iv);
|
|
870
|
+
|
|
871
|
+
/* Incremental API */
|
|
872
|
+
WOLFSSL_API int wc_AesCtsEncryptUpdate(Aes* aes, byte* out, word32* outSz,
|
|
873
|
+
const byte* in, word32 inSz);
|
|
874
|
+
WOLFSSL_API int wc_AesCtsDecryptUpdate(Aes* aes, byte* out, word32* outSz,
|
|
875
|
+
const byte* in, word32 inSz);
|
|
876
|
+
WOLFSSL_API int wc_AesCtsEncryptFinal(Aes* aes, byte* out, word32* outSz);
|
|
877
|
+
WOLFSSL_API int wc_AesCtsDecryptFinal(Aes* aes, byte* out, word32* outSz);
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
#endif
|
|
881
|
+
|
|
882
|
+
#if defined(__aarch64__) && defined(WOLFSSL_ARMASM) && \
|
|
883
|
+
!defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
|
|
884
|
+
|
|
885
|
+
WOLFSSL_LOCAL void AES_set_key_AARCH64(const byte* userKey, int keylen,
|
|
886
|
+
byte* key, int dir);
|
|
887
|
+
|
|
888
|
+
WOLFSSL_LOCAL void AES_encrypt_AARCH64(const byte* inBlock, byte* outBlock,
|
|
889
|
+
byte* key, int nr);
|
|
890
|
+
WOLFSSL_LOCAL void AES_decrypt_AARCH64(const byte* inBlock, byte* outBlock,
|
|
891
|
+
byte* key, int nr);
|
|
892
|
+
WOLFSSL_LOCAL void AES_encrypt_blocks_AARCH64(const byte* in, byte* out,
|
|
893
|
+
word32 sz, byte* key, int nr);
|
|
894
|
+
WOLFSSL_LOCAL void AES_decrypt_blocks_AARCH64(const byte* in, byte* out,
|
|
895
|
+
word32 sz, byte* key, int nr);
|
|
896
|
+
|
|
897
|
+
WOLFSSL_LOCAL void AES_CBC_encrypt_AARCH64(const byte* in, byte* out, word32 sz,
|
|
898
|
+
byte* reg, byte* key, int rounds);
|
|
899
|
+
WOLFSSL_LOCAL void AES_CBC_decrypt_AARCH64(const byte* in, byte* out, word32 sz,
|
|
900
|
+
byte* reg, byte* key, int rounds);
|
|
901
|
+
|
|
902
|
+
WOLFSSL_LOCAL void AES_CTR_encrypt_AARCH64(const byte* in, byte* out, word32 sz,
|
|
903
|
+
byte* reg, byte* key, byte* tmp, word32* left, word32 rounds);
|
|
904
|
+
|
|
905
|
+
WOLFSSL_LOCAL void AES_GCM_set_key_AARCH64(const byte* nonce, const byte* key,
|
|
906
|
+
byte* gcm_h, int nr);
|
|
907
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_AARCH64(const byte* in, byte* out,
|
|
908
|
+
word32 sz, const byte* nonce, word32 nonceSz, byte* tag, word32 tagSz,
|
|
909
|
+
const byte* aad, word32 aadSz, byte* key, byte* gcm_h, byte* tmp, byte* reg,
|
|
910
|
+
int nr);
|
|
911
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_AARCH64_EOR3(const byte* in, byte* out,
|
|
912
|
+
word32 sz, const byte* nonce, word32 nonceSz, byte* tag, word32 tagSz,
|
|
913
|
+
const byte* aad, word32 aadSz, byte* key, byte* gcm_h, byte* tmp, byte* reg,
|
|
914
|
+
int nr);
|
|
915
|
+
WOLFSSL_LOCAL int AES_GCM_decrypt_AARCH64(const byte* in, byte* out,
|
|
916
|
+
word32 sz, const byte* nonce, word32 nonceSz, const byte* tag, word32 tagSz,
|
|
917
|
+
const byte* aad, word32 aadSz, byte* key, byte* gcm_h, byte* tmp, byte* reg,
|
|
918
|
+
int nr);
|
|
919
|
+
WOLFSSL_LOCAL int AES_GCM_decrypt_AARCH64_EOR3(const byte* in, byte* out,
|
|
920
|
+
word32 sz, const byte* nonce, word32 nonceSz, const byte* tag, word32 tagSz,
|
|
921
|
+
const byte* aad, word32 aadSz, byte* key, byte* gcm_h, byte* tmp, byte* reg,
|
|
922
|
+
int nr);
|
|
923
|
+
|
|
924
|
+
#ifdef WOLFSSL_AESGCM_STREAM
|
|
925
|
+
WOLFSSL_LOCAL void AES_GCM_init_AARCH64(byte* key, int nr, const byte* nonce,
|
|
926
|
+
word32 nonceSz, byte* gcm_h, byte* counter, byte* initCtr);
|
|
927
|
+
WOLFSSL_LOCAL void AES_GCM_init_AARCH64_EOR3(byte* key, int nr,
|
|
928
|
+
const byte* nonce, word32 nonceSz, byte* gcm_h, byte* counter,
|
|
929
|
+
byte* initCtr);
|
|
930
|
+
|
|
931
|
+
WOLFSSL_LOCAL void AES_GCM_ghash_block_AARCH64(const byte* data, byte* tag,
|
|
932
|
+
byte* gcm_h);
|
|
933
|
+
WOLFSSL_LOCAL void AES_GCM_ghash_block_AARCH64_EOR3(const byte* data, byte* tag,
|
|
934
|
+
byte* gcm_h);
|
|
935
|
+
|
|
936
|
+
WOLFSSL_LOCAL void AES_GCM_aad_update_AARCH64(const byte* addt, word32 abytes,
|
|
937
|
+
byte* tag, byte* h);
|
|
938
|
+
WOLFSSL_LOCAL void AES_GCM_aad_update_AARCH64_EOR3(const byte* addt,
|
|
939
|
+
word32 abytes, byte* tag, byte* h);
|
|
940
|
+
|
|
941
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_block_AARCH64(const byte* key, int nr,
|
|
942
|
+
byte* out, const byte* in, byte* counter);
|
|
943
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_block_AARCH64_EOR3(const byte* key, int nr,
|
|
944
|
+
byte* out, const byte* in, byte* counter);
|
|
945
|
+
|
|
946
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_update_AARCH64(const byte* key, int nr,
|
|
947
|
+
byte* out, const byte* in, word32 nbytes, byte* tag, byte* h,
|
|
948
|
+
byte* counter);
|
|
949
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_update_AARCH64_EOR3(const byte* key, int nr,
|
|
950
|
+
byte* out, const byte* in, word32 nbytes, byte* tag, byte* h,
|
|
951
|
+
byte* counter);
|
|
952
|
+
|
|
953
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_final_AARCH64(byte* tag, byte* authTag,
|
|
954
|
+
word32 tbytes, word32 nbytes, word32 abytes, byte* h, byte* initCtr);
|
|
955
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_final_AARCH64_EOR3(byte* tag, byte* authTag,
|
|
956
|
+
word32 tbytes, word32 nbytes, word32 abytes, byte* h, byte* initCtr);
|
|
957
|
+
|
|
958
|
+
#if defined(HAVE_AES_DECRYPT) || defined(HAVE_AESGCM_DECRYPT)
|
|
959
|
+
WOLFSSL_LOCAL void AES_GCM_decrypt_update_AARCH64(const byte* key, int nr,
|
|
960
|
+
byte* out, const byte* in, word32 nbytes, byte* tag, byte* h,
|
|
961
|
+
byte* counter);
|
|
962
|
+
WOLFSSL_LOCAL void AES_GCM_decrypt_update_AARCH64_EOR3(const byte* key, int nr,
|
|
963
|
+
byte* out, const byte* in, word32 nbytes, byte* tag, byte* h,
|
|
964
|
+
byte* counter);
|
|
965
|
+
|
|
966
|
+
WOLFSSL_LOCAL void AES_GCM_decrypt_final_AARCH64(byte* tag, const byte* authTag,
|
|
967
|
+
word32 tbytes, word32 nbytes, word32 abytes, byte* h, byte* initCtr,
|
|
968
|
+
int* res);
|
|
969
|
+
WOLFSSL_LOCAL void AES_GCM_decrypt_final_AARCH64_EOR3(byte* tag,
|
|
970
|
+
const byte* authTag, word32 tbytes, word32 nbytes, word32 abytes, byte* h,
|
|
971
|
+
byte* initCtr, int* res);
|
|
972
|
+
#endif
|
|
973
|
+
#endif
|
|
974
|
+
|
|
975
|
+
#ifdef WOLFSSL_AES_XTS
|
|
976
|
+
WOLFSSL_LOCAL void AES_XTS_encrypt_AARCH64(const byte* in, byte* out,
|
|
977
|
+
word32 sz, const byte* i, byte* key, byte* key2, byte* tmp, int nr);
|
|
978
|
+
WOLFSSL_LOCAL void AES_XTS_decrypt_AARCH64(const byte* in, byte* out,
|
|
979
|
+
word32 sz, const byte* i, byte* key, byte* key2, byte* tmp, int nr);
|
|
980
|
+
#endif /* WOLFSSL_AES_XTS */
|
|
981
|
+
#endif /* __aarch64__ && WOLFSSL_ARMASM && !WOLFSSL_ARMASM_NO_HW_CRYPTO */
|
|
982
|
+
|
|
983
|
+
#if !defined(__aarch64__) && defined(WOLFSSL_ARMASM)
|
|
984
|
+
#if !defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
|
|
985
|
+
WOLFSSL_LOCAL void AES_set_key_AARCH32(const byte* userKey, int keylen,
|
|
986
|
+
byte* key, int dir);
|
|
987
|
+
|
|
988
|
+
WOLFSSL_LOCAL void AES_encrypt_AARCH32(const byte* inBlock, byte* outBlock,
|
|
989
|
+
byte* key, int nr);
|
|
990
|
+
WOLFSSL_LOCAL void AES_decrypt_AARCH32(const byte* inBlock, byte* outBlock,
|
|
991
|
+
byte* key, int nr);
|
|
992
|
+
WOLFSSL_LOCAL void AES_encrypt_blocks_AARCH32(const byte* in, byte* out,
|
|
993
|
+
word32 sz, byte* key, int nr);
|
|
994
|
+
#endif
|
|
995
|
+
|
|
996
|
+
#ifdef WOLFSSL_AES_XTS
|
|
997
|
+
WOLFSSL_LOCAL void AES_XTS_encrypt_AARCH64(const byte* in, byte* out,
|
|
998
|
+
word32 sz, const byte* i, byte* key, byte* key2, byte* tmp, int nr);
|
|
999
|
+
WOLFSSL_LOCAL void AES_XTS_decrypt_AARCH64(const byte* in, byte* out,
|
|
1000
|
+
word32 sz, const byte* i, byte* key, byte* key2, byte* tmp, int nr);
|
|
1001
|
+
#endif /* WOLFSSL_AES_XTS */
|
|
1002
|
+
#endif /* __aarch64__ && WOLFSSL_ARMASM && !WOLFSSL_ARMASM_NO_HW_CRYPTO */
|
|
1003
|
+
|
|
1004
|
+
#if !defined(__aarch64__) && defined(WOLFSSL_ARMASM)
|
|
1005
|
+
#if !defined(WOLFSSL_ARMASM_NO_HW_CRYPTO)
|
|
1006
|
+
WOLFSSL_LOCAL void AES_set_key_AARCH32(const byte* userKey, int keylen,
|
|
1007
|
+
byte* key, int dir);
|
|
1008
|
+
|
|
1009
|
+
WOLFSSL_LOCAL void AES_encrypt_AARCH32(const byte* inBlock, byte* outBlock,
|
|
1010
|
+
byte* key, int nr);
|
|
1011
|
+
WOLFSSL_LOCAL void AES_decrypt_AARCH32(const byte* inBlock, byte* outBlock,
|
|
1012
|
+
byte* key, int nr);
|
|
1013
|
+
WOLFSSL_LOCAL void AES_encrypt_blocks_AARCH32(const byte* in, byte* out,
|
|
1014
|
+
word32 sz, byte* key, int nr);
|
|
1015
|
+
WOLFSSL_LOCAL void AES_decrypt_blocks_AARCH32(const byte* in, byte* out,
|
|
1016
|
+
word32 sz, byte* key, int nr);
|
|
1017
|
+
|
|
1018
|
+
WOLFSSL_LOCAL void AES_CBC_encrypt_AARCH32(const byte* in, byte* out, word32 sz,
|
|
1019
|
+
byte* reg, byte* key, int rounds);
|
|
1020
|
+
WOLFSSL_LOCAL void AES_CBC_decrypt_AARCH32(const byte* in, byte* out, word32 sz,
|
|
1021
|
+
byte* reg, byte* key, int rounds);
|
|
1022
|
+
|
|
1023
|
+
WOLFSSL_LOCAL void AES_CTR_encrypt_AARCH32(const byte* in, byte* out, word32 sz,
|
|
1024
|
+
byte* reg, byte* key, byte* tmp, word32* left, word32 rounds);
|
|
1025
|
+
|
|
1026
|
+
WOLFSSL_LOCAL void AES_GCM_set_key_AARCH32(const byte* nonce, const byte* key,
|
|
1027
|
+
byte* gcm_h, int nr);
|
|
1028
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt_AARCH32(const byte* in, byte* out,
|
|
1029
|
+
word32 sz, const byte* nonce, word32 nonceSz, byte* tag, word32 tagSz,
|
|
1030
|
+
const byte* aad, word32 aadSz, byte* key, byte* gcm_h, byte* tmp, byte* reg,
|
|
1031
|
+
int nr);
|
|
1032
|
+
WOLFSSL_LOCAL int AES_GCM_decrypt_AARCH32(const byte* in, byte* out,
|
|
1033
|
+
word32 sz, const byte* nonce, word32 nonceSz, const byte* tag, word32 tagSz,
|
|
1034
|
+
const byte* aad, word32 aadSz, byte* key, byte* gcm_h, byte* tmp, byte* reg,
|
|
1035
|
+
int nr);
|
|
1036
|
+
|
|
1037
|
+
#ifdef WOLFSSL_AES_XTS
|
|
1038
|
+
WOLFSSL_LOCAL void AES_XTS_encrypt_AARCH32(const byte* in, byte* out,
|
|
1039
|
+
word32 sz, const byte* i, byte* key, byte* key2, byte* tmp, int nr);
|
|
1040
|
+
WOLFSSL_LOCAL void AES_XTS_decrypt_AARCH32(const byte* in, byte* out,
|
|
1041
|
+
word32 sz, const byte* i, byte* key, byte* key2, byte* tmp, int nr);
|
|
1042
|
+
#endif /* WOLFSSL_AES_XTS */
|
|
1043
|
+
#else
|
|
1044
|
+
WOLFSSL_LOCAL void AES_set_encrypt_key(const unsigned char* key, word32 len,
|
|
1045
|
+
unsigned char* ks);
|
|
1046
|
+
WOLFSSL_LOCAL void AES_invert_key(unsigned char* ks, word32 rounds);
|
|
1047
|
+
WOLFSSL_LOCAL void AES_ECB_encrypt(const unsigned char* in, unsigned char* out,
|
|
1048
|
+
unsigned long len, const unsigned char* ks, int nr);
|
|
1049
|
+
WOLFSSL_LOCAL void AES_ECB_decrypt(const unsigned char* in, unsigned char* out,
|
|
1050
|
+
unsigned long len, const unsigned char* ks, int nr);
|
|
1051
|
+
WOLFSSL_LOCAL void AES_CBC_encrypt(const unsigned char* in, unsigned char* out,
|
|
1052
|
+
unsigned long len, const unsigned char* ks, int nr, unsigned char* iv);
|
|
1053
|
+
WOLFSSL_LOCAL void AES_CBC_decrypt(const unsigned char* in, unsigned char* out,
|
|
1054
|
+
unsigned long len, const unsigned char* ks, int nr, unsigned char* iv);
|
|
1055
|
+
WOLFSSL_LOCAL void AES_CTR_encrypt(const unsigned char* in, unsigned char* out,
|
|
1056
|
+
unsigned long len, const unsigned char* ks, int nr, unsigned char* ctr);
|
|
1057
|
+
#if defined(GCM_TABLE) || defined(GCM_TABLE_4BIT)
|
|
1058
|
+
/* in pre-C2x C, constness conflicts for dimensioned arrays can't be resolved.
|
|
1059
|
+
*/
|
|
1060
|
+
WOLFSSL_LOCAL void GCM_gmult_len(byte* x, const byte** m,
|
|
1061
|
+
const unsigned char* data, unsigned long len);
|
|
1062
|
+
#endif
|
|
1063
|
+
WOLFSSL_LOCAL void AES_GCM_encrypt(const unsigned char* in, unsigned char* out,
|
|
1064
|
+
unsigned long len, const unsigned char* ks, int nr, unsigned char* ctr);
|
|
1065
|
+
#endif /* !WOLFSSL_ARMASM_NO_HW_CRYPTO */
|
|
1066
|
+
#endif
|
|
1067
|
+
|
|
1068
|
+
#ifdef __cplusplus
|
|
1069
|
+
} /* extern "C" */
|
|
1070
|
+
#endif
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
#endif /* NO_AES */
|
|
1074
|
+
#endif /* WOLF_CRYPT_AES_H */
|