├── .gitignore ├── .gradle ├── 7.5.1 │ ├── checksums │ │ ├── checksums.lock │ │ ├── md5-checksums.bin │ │ └── sha1-checksums.bin │ ├── dependencies-accessors │ │ ├── dependencies-accessors.lock │ │ └── gc.properties │ ├── executionHistory │ │ ├── executionHistory.bin │ │ └── executionHistory.lock │ ├── fileChanges │ │ └── last-build.bin │ ├── fileHashes │ │ ├── fileHashes.bin │ │ ├── fileHashes.lock │ │ └── resourceHashesCache.bin │ └── gc.properties ├── buildOutputCleanup │ ├── buildOutputCleanup.lock │ ├── cache.properties │ └── outputFiles.bin └── vcs-1 │ └── gc.properties ├── LICENSE ├── README.md ├── app ├── .gitignore ├── build.gradle ├── libs │ └── XposedBridgeAPI-89.jar └── src │ └── main │ ├── AndroidManifest.xml │ ├── assets │ ├── native_init │ └── xposed_init │ ├── java │ └── com │ │ └── easy │ │ ├── Pointer.java │ │ └── tgPlus │ │ ├── HookImpl │ │ ├── AntiRetraction.java │ │ ├── Repeater.java │ │ └── UnlockCopySave.java │ │ ├── HookLeader.java │ │ ├── HookModule.java │ │ ├── MainActivity.java │ │ └── ModuleConfigs.java │ ├── jni │ ├── ALog.h │ ├── CMakeLists.txt │ ├── LSPosedNativeHookApi.h │ ├── TgPlus.c │ └── openssl │ │ ├── crypto │ │ ├── __DECC_INCLUDE_EPILOGUE.H │ │ ├── __DECC_INCLUDE_PROLOGUE.H │ │ ├── aes_platform.h │ │ ├── aria.h │ │ ├── asn1.h │ │ ├── asn1_dsa.h │ │ ├── asn1err.h │ │ ├── async.h │ │ ├── asyncerr.h │ │ ├── bioerr.h │ │ ├── bn.h │ │ ├── bn_conf.h │ │ ├── bn_conf.h.in │ │ ├── bn_dh.h │ │ ├── bn_srp.h │ │ ├── bnerr.h │ │ ├── buffererr.h │ │ ├── chacha.h │ │ ├── cmll_platform.h │ │ ├── cmperr.h │ │ ├── cmserr.h │ │ ├── comperr.h │ │ ├── conferr.h │ │ ├── context.h │ │ ├── crmferr.h │ │ ├── cryptlib.h │ │ ├── cryptoerr.h │ │ ├── cterr.h │ │ ├── ctype.h │ │ ├── decoder.h │ │ ├── decodererr.h │ │ ├── des_platform.h │ │ ├── dh.h │ │ ├── dherr.h │ │ ├── dsa.h │ │ ├── dsaerr.h │ │ ├── dso_conf.h │ │ ├── dso_conf.h.in │ │ ├── ec.h │ │ ├── ecerr.h │ │ ├── ecx.h │ │ ├── encoder.h │ │ ├── encodererr.h │ │ ├── engine.h │ │ ├── engineerr.h │ │ ├── err.h │ │ ├── ess.h │ │ ├── esserr.h │ │ ├── evp.h │ │ ├── evperr.h │ │ ├── httperr.h │ │ ├── lhash.h │ │ ├── md32_common.h │ │ ├── modes.h │ │ ├── objects.h │ │ ├── objectserr.h │ │ ├── ocsperr.h │ │ ├── pem.h │ │ ├── pemerr.h │ │ ├── pkcs12err.h │ │ ├── pkcs7.h │ │ ├── pkcs7err.h │ │ ├── poly1305.h │ │ ├── ppc_arch.h │ │ ├── punycode.h │ │ ├── rand.h │ │ ├── rand_pool.h │ │ ├── randerr.h │ │ ├── riscv_arch.def │ │ ├── riscv_arch.h │ │ ├── rsa.h │ │ ├── rsaerr.h │ │ ├── security_bits.h │ │ ├── sha.h │ │ ├── siphash.h │ │ ├── siv.h │ │ ├── sm2.h │ │ ├── sm2err.h │ │ ├── sm4.h │ │ ├── sm4_platform.h │ │ ├── sparc_arch.h │ │ ├── sparse_array.h │ │ ├── store.h │ │ ├── storeerr.h │ │ ├── tserr.h │ │ ├── types.h │ │ ├── uierr.h │ │ ├── x509.h │ │ ├── x509err.h │ │ └── x509v3err.h │ │ ├── internal │ │ ├── __DECC_INCLUDE_EPILOGUE.H │ │ ├── __DECC_INCLUDE_PROLOGUE.H │ │ ├── asn1.h │ │ ├── bio.h │ │ ├── bio_addr.h │ │ ├── bio_tfo.h │ │ ├── common.h │ │ ├── comp.h │ │ ├── conf.h │ │ ├── constant_time.h │ │ ├── core.h │ │ ├── cryptlib.h │ │ ├── dane.h │ │ ├── deprecated.h │ │ ├── der.h │ │ ├── deterministic_nonce.h │ │ ├── dso.h │ │ ├── dsoerr.h │ │ ├── e_os.h │ │ ├── endian.h │ │ ├── err.h │ │ ├── event_queue.h │ │ ├── ffc.h │ │ ├── hpke_util.h │ │ ├── ktls.h │ │ ├── list.h │ │ ├── namemap.h │ │ ├── nelem.h │ │ ├── numbers.h │ │ ├── o_dir.h │ │ ├── packet.h │ │ ├── packet_quic.h │ │ ├── param_build_set.h │ │ ├── passphrase.h │ │ ├── priority_queue.h │ │ ├── property.h │ │ ├── propertyerr.h │ │ ├── provider.h │ │ ├── quic_ackm.h │ │ ├── quic_cc.h │ │ ├── quic_cfq.h │ │ ├── quic_channel.h │ │ ├── quic_demux.h │ │ ├── quic_error.h │ │ ├── quic_fc.h │ │ ├── quic_fifd.h │ │ ├── quic_reactor.h │ │ ├── quic_record_rx.h │ │ ├── quic_record_tx.h │ │ ├── quic_record_util.h │ │ ├── quic_rx_depack.h │ │ ├── quic_sf_list.h │ │ ├── quic_ssl.h │ │ ├── quic_statm.h │ │ ├── quic_stream.h │ │ ├── quic_stream_map.h │ │ ├── quic_tls.h │ │ ├── quic_tserver.h │ │ ├── quic_txp.h │ │ ├── quic_txpim.h │ │ ├── quic_types.h │ │ ├── quic_vlint.h │ │ ├── quic_wire.h │ │ ├── quic_wire_pkt.h │ │ ├── recordmethod.h │ │ ├── refcount.h │ │ ├── ring_buf.h │ │ ├── safe_math.h │ │ ├── sha3.h │ │ ├── sizes.h │ │ ├── sm3.h │ │ ├── sockets.h │ │ ├── ssl3_cbc.h │ │ ├── sslconf.h │ │ ├── statem.h │ │ ├── symhacks.h │ │ ├── thread.h │ │ ├── thread_arch.h │ │ ├── thread_once.h │ │ ├── time.h │ │ ├── tlsgroups.h │ │ ├── tsan_assist.h │ │ ├── uint_set.h │ │ └── unicode.h │ │ ├── lib │ │ ├── libcrypto_arm64-v8a.a │ │ ├── libcrypto_armeabi-v7a.a │ │ ├── libcrypto_x86.a │ │ ├── libcrypto_x86_64.a │ │ ├── libssl_arm64-v8a.a │ │ ├── libssl_armeabi-v7a.a │ │ ├── libssl_x86.a │ │ └── libssl_x86_64.a │ │ └── openssl │ │ ├── __DECC_INCLUDE_EPILOGUE.H │ │ ├── __DECC_INCLUDE_PROLOGUE.H │ │ ├── aes.h │ │ ├── asn1.h │ │ ├── asn1.h.in │ │ ├── asn1_mac.h │ │ ├── asn1err.h │ │ ├── asn1t.h │ │ ├── asn1t.h.in │ │ ├── async.h │ │ ├── asyncerr.h │ │ ├── bio.h │ │ ├── bio.h.in │ │ ├── bioerr.h │ │ ├── blowfish.h │ │ ├── bn.h │ │ ├── bnerr.h │ │ ├── buffer.h │ │ ├── buffererr.h │ │ ├── camellia.h │ │ ├── cast.h │ │ ├── cmac.h │ │ ├── cmp.h │ │ ├── cmp.h.in │ │ ├── cmp_util.h │ │ ├── cmperr.h │ │ ├── cms.h │ │ ├── cms.h.in │ │ ├── cmserr.h │ │ ├── comp.h │ │ ├── comperr.h │ │ ├── conf.h │ │ ├── conf.h.in │ │ ├── conf_api.h │ │ ├── conferr.h │ │ ├── configuration.h │ │ ├── configuration.h.in │ │ ├── conftypes.h │ │ ├── core.h │ │ ├── core_dispatch.h │ │ ├── core_names.h │ │ ├── core_object.h │ │ ├── crmf.h │ │ ├── crmf.h.in │ │ ├── crmferr.h │ │ ├── crypto.h │ │ ├── crypto.h.in │ │ ├── cryptoerr.h │ │ ├── cryptoerr_legacy.h │ │ ├── ct.h │ │ ├── ct.h.in │ │ ├── cterr.h │ │ ├── decoder.h │ │ ├── decodererr.h │ │ ├── des.h │ │ ├── dh.h │ │ ├── dherr.h │ │ ├── dsa.h │ │ ├── dsaerr.h │ │ ├── dtls1.h │ │ ├── e_os2.h │ │ ├── ebcdic.h │ │ ├── ec.h │ │ ├── ecdh.h │ │ ├── ecdsa.h │ │ ├── ecerr.h │ │ ├── encoder.h │ │ ├── encodererr.h │ │ ├── engine.h │ │ ├── engineerr.h │ │ ├── err.h │ │ ├── err.h.in │ │ ├── ess.h │ │ ├── ess.h.in │ │ ├── esserr.h │ │ ├── evp.h │ │ ├── evperr.h │ │ ├── fips_names.h │ │ ├── fipskey.h │ │ ├── fipskey.h.in │ │ ├── hmac.h │ │ ├── hpke.h │ │ ├── http.h │ │ ├── httperr.h │ │ ├── idea.h │ │ ├── kdf.h │ │ ├── kdferr.h │ │ ├── lhash.h │ │ ├── lhash.h.in │ │ ├── macros.h │ │ ├── md2.h │ │ ├── md4.h │ │ ├── md5.h │ │ ├── mdc2.h │ │ ├── modes.h │ │ ├── obj_mac.h │ │ ├── objects.h │ │ ├── objectserr.h │ │ ├── ocsp.h │ │ ├── ocsp.h.in │ │ ├── ocsperr.h │ │ ├── opensslconf.h │ │ ├── opensslv.h │ │ ├── opensslv.h.in │ │ ├── ossl_typ.h │ │ ├── param_build.h │ │ ├── params.h │ │ ├── pem.h │ │ ├── pem2.h │ │ ├── pemerr.h │ │ ├── pkcs12.h │ │ ├── pkcs12.h.in │ │ ├── pkcs12err.h │ │ ├── pkcs7.h │ │ ├── pkcs7.h.in │ │ ├── pkcs7err.h │ │ ├── prov_ssl.h │ │ ├── proverr.h │ │ ├── provider.h │ │ ├── quic.h │ │ ├── rand.h │ │ ├── randerr.h │ │ ├── rc2.h │ │ ├── rc4.h │ │ ├── rc5.h │ │ ├── ripemd.h │ │ ├── rsa.h │ │ ├── rsaerr.h │ │ ├── safestack.h │ │ ├── safestack.h.in │ │ ├── seed.h │ │ ├── self_test.h │ │ ├── sha.h │ │ ├── srp.h │ │ ├── srp.h.in │ │ ├── srtp.h │ │ ├── ssl.h │ │ ├── ssl.h.in │ │ ├── ssl2.h │ │ ├── ssl3.h │ │ ├── sslerr.h │ │ ├── sslerr_legacy.h │ │ ├── stack.h │ │ ├── store.h │ │ ├── storeerr.h │ │ ├── symhacks.h │ │ ├── thread.h │ │ ├── tls1.h │ │ ├── trace.h │ │ ├── ts.h │ │ ├── tserr.h │ │ ├── txt_db.h │ │ ├── types.h │ │ ├── ui.h │ │ ├── ui.h.in │ │ ├── uierr.h │ │ ├── whrlpool.h │ │ ├── x509.h │ │ ├── x509.h.in │ │ ├── x509_vfy.h │ │ ├── x509_vfy.h.in │ │ ├── x509err.h │ │ ├── x509v3.h │ │ ├── x509v3.h.in │ │ └── x509v3err.h │ └── res │ ├── drawable │ └── ic_launcher.png │ ├── values-v21 │ └── styles.xml │ └── values │ ├── AuthScope.xml │ ├── colors.xml │ ├── ids.xml │ ├── strings.xml │ └── styles.xml ├── build.gradle ├── gradle.properties ├── gradlew ├── gradlew.bat ├── local.properties └── settings.gradle /.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /.gradle/7.5.1/checksums/checksums.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/checksums/checksums.lock -------------------------------------------------------------------------------- /.gradle/7.5.1/checksums/md5-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/checksums/md5-checksums.bin -------------------------------------------------------------------------------- /.gradle/7.5.1/checksums/sha1-checksums.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/checksums/sha1-checksums.bin -------------------------------------------------------------------------------- /.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock -------------------------------------------------------------------------------- /.gradle/7.5.1/dependencies-accessors/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/dependencies-accessors/gc.properties -------------------------------------------------------------------------------- /.gradle/7.5.1/executionHistory/executionHistory.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/executionHistory/executionHistory.bin -------------------------------------------------------------------------------- /.gradle/7.5.1/executionHistory/executionHistory.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/executionHistory/executionHistory.lock -------------------------------------------------------------------------------- /.gradle/7.5.1/fileChanges/last-build.bin: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gradle/7.5.1/fileHashes/fileHashes.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/fileHashes/fileHashes.bin -------------------------------------------------------------------------------- /.gradle/7.5.1/fileHashes/fileHashes.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/fileHashes/fileHashes.lock -------------------------------------------------------------------------------- /.gradle/7.5.1/fileHashes/resourceHashesCache.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/fileHashes/resourceHashesCache.bin -------------------------------------------------------------------------------- /.gradle/7.5.1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/7.5.1/gc.properties -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/buildOutputCleanup.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/buildOutputCleanup/buildOutputCleanup.lock -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/cache.properties: -------------------------------------------------------------------------------- 1 | #Sun Jul 16 12:05:04 GMT 2023 2 | gradle.version=7.5.1 3 | -------------------------------------------------------------------------------- /.gradle/buildOutputCleanup/outputFiles.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/buildOutputCleanup/outputFiles.bin -------------------------------------------------------------------------------- /.gradle/vcs-1/gc.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/.gradle/vcs-1/gc.properties -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TgPlus 2 | 3 | [![Xposed](https://img.shields.io/badge/-Xposed-green?style=flat&logo=Android&logoColor=white)](#) 4 | [![GitHub all releases](https://img.shields.io/github/downloads/EasyAuthorize/TgPlus/total?label=Downloads)](https://github.com/EasyAuthorize/TgPlus/releases) 5 | Xposed-Modules-Repo 6 | [![GitHub all releases](https://img.shields.io/github/downloads/Xposed-Modules-Repo/com.easy.tgPlus/total?label=Downloads)](https://github.com/Xposed-Modules-Repo/com.easy.tgPlus/releases) 7 | 8 | ## 模块简介 9 | 这是一个Xposed模块 10 | ***此项目使用GPLv3许可证*** 11 | 12 | ## 食用方法 13 | 请提前准备好Xposed环境 14 | 激活此模块后根据实际情况 15 | 勾选Telegram为作用域并 16 | 重新启动Telegram 17 | 18 | ## 功能介绍 19 | * 1.解除内容保护 20 | 允许复制,保存消息内容 21 | 22 | * 2.复读机 23 | 弹出菜单增加"+1"选项 24 | 选择后将重复发送该消息的文本内容 25 | 26 | * 3.防撤回 27 | 对方删除消息时阻止删除 28 | 并标记消息为已删除 29 | *删除标记实现为自定义flag* 30 | ```public static final int FLAG_DELETED = 1 << 28;``` 31 | ***版本更新时可能会丢失全部聊天记录*** 32 | 33 | ## 写在后面 34 | 模块完全开源 35 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | /.cxx 3 | proguard-rules.pro 4 | 原神.txt 5 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 29 5 | //buildToolsVersion "29.0.3" 6 | 7 | //设置NDK版本,需要先在高级设置中安装NDK 8 | ndkVersion "24.0.8215888" 9 | 10 | externalNativeBuild { 11 | cmake { 12 | path "src/main/jni/CMakeLists.txt" 13 | version "3.17.2" 14 | 15 | } 16 | } 17 | 18 | defaultConfig { 19 | applicationId "com.easy.tgPlus" 20 | minSdkVersion 19 21 | targetSdkVersion 29 22 | versionCode 10003 23 | versionName "1.0.3" 24 | 25 | externalNativeBuild { 26 | cmake { 27 | arguments '-DANDROID_ARM_NEON=TRUE', 28 | '-DANDROID_TOOLCHAIN=clang' 29 | } 30 | ndk { 31 | abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64' 32 | } 33 | } 34 | } 35 | 36 | buildTypes { 37 | release { 38 | minifyEnabled true 39 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' 40 | } 41 | } 42 | } 43 | 44 | dependencies { 45 | compileOnly files('libs/XposedBridgeAPI-89.jar') 46 | //implementation fileTree(dir: "libs", include: ["*.jar"]) 47 | } 48 | -------------------------------------------------------------------------------- /app/libs/XposedBridgeAPI-89.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/libs/XposedBridgeAPI-89.jar -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /app/src/main/assets/native_init: -------------------------------------------------------------------------------- 1 | libTgPlus.so 2 | -------------------------------------------------------------------------------- /app/src/main/assets/xposed_init: -------------------------------------------------------------------------------- 1 | com.easy.tgPlus.HookLeader 2 | -------------------------------------------------------------------------------- /app/src/main/java/com/easy/Pointer.java: -------------------------------------------------------------------------------- 1 | package com.easy; 2 | 3 | public class Pointer { 4 | 5 | public static final String TAG = "Pointer"; 6 | 7 | public Object obj; 8 | 9 | public Pointer(Object obj){ 10 | this.obj = obj; 11 | } 12 | 13 | public Pointer() {} 14 | 15 | public void setObj(Object obj) { 16 | this.obj = obj; 17 | } 18 | 19 | public Object getObj() { 20 | return obj; 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /app/src/main/java/com/easy/tgPlus/HookImpl/UnlockCopySave.java: -------------------------------------------------------------------------------- 1 | package com.easy.tgPlus.HookImpl; 2 | 3 | import com.easy.tgPlus.HookModule; 4 | import com.easy.tgPlus.ModuleConfigs; 5 | import de.robv.android.xposed.XC_MethodHook; 6 | import de.robv.android.xposed.XposedBridge; 7 | import de.robv.android.xposed.XposedHelpers; 8 | import de.robv.android.xposed.callbacks.XC_LoadPackage; 9 | 10 | public class UnlockCopySave extends HookModule { 11 | 12 | @Override 13 | public boolean isHideModule() { 14 | return false; 15 | } 16 | 17 | //模块标签 18 | public static final String ModuleId = "UnlockCopySave"; 19 | //模块名称 20 | public static final String ModuleName = "解锁复制保存"; 21 | //模块描述 22 | public static final String ModuleDoc = "解除内容保护,允许复制保存消息"; 23 | 24 | @Override 25 | public String getModuleId(){ 26 | return ModuleId; 27 | } 28 | 29 | @Override 30 | public String getModuleName(){ 31 | return ModuleName; 32 | } 33 | 34 | @Override 35 | public String getModuleDoc(){ 36 | return ModuleDoc; 37 | } 38 | 39 | @Override 40 | public boolean init() throws Throwable{ 41 | //解锁复制保存 42 | ModuleConfigs modConf = this.getModuleConfigs(); 43 | XC_LoadPackage.LoadPackageParam lpparam = modConf.getLoadPackageParam(); 44 | try{ 45 | XposedHelpers.findAndHookMethod("org.telegram.messenger.MessagesController", 46 | lpparam.classLoader, 47 | "isChatNoForwards", 48 | lpparam.classLoader.loadClass("org.telegram.tgnet.TLRPC$Chat"), 49 | new XC_MethodHook(){ 50 | @Override 51 | public void afterHookedMethod(MethodHookParam param){ 52 | if(getSwitchOn()){ 53 | param.setResult(false); 54 | } 55 | } 56 | }); 57 | //加载成功 58 | return true; 59 | }catch (ClassNotFoundException e){ 60 | XposedBridge.log(e); 61 | } 62 | return false; 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /app/src/main/java/com/easy/tgPlus/HookModule.java: -------------------------------------------------------------------------------- 1 | package com.easy.tgPlus; 2 | import de.robv.android.xposed.XposedBridge; 3 | 4 | public abstract class HookModule { 5 | 6 | public static final String TAG = "HookModule"; 7 | 8 | //是否加载成功 9 | private boolean loadSuccess; 10 | //是否启用 11 | private boolean switchOn; 12 | 13 | private ModuleConfigs conf; 14 | 15 | public void setSwitchOn(boolean switchOn) { 16 | this.switchOn = switchOn; 17 | } 18 | 19 | public final boolean getSwitchOn() { 20 | return this.switchOn; 21 | } 22 | 23 | public final boolean isLoadSuccess() { 24 | return loadSuccess; 25 | } 26 | 27 | public ModuleConfigs getModuleConfigs(){ 28 | return this.conf; 29 | } 30 | 31 | public void setModuleConfigs(ModuleConfigs conf){ 32 | this.conf = conf; 33 | } 34 | 35 | public void load() throws Throwable{ 36 | loadSuccess = init(); 37 | } 38 | 39 | public abstract String getModuleId(); 40 | public abstract String getModuleName(); 41 | public abstract String getModuleDoc(); 42 | public abstract boolean init() throws Throwable; 43 | public abstract boolean isHideModule(); 44 | 45 | //感觉接口不好用 46 | public interface Impl{ 47 | public abstract String getModuleId(); 48 | public abstract String getModuleName(); 49 | public abstract String getModuleDoc(); 50 | public abstract boolean init(ModuleConfigs mConf) throws Throwable; 51 | public abstract boolean isHideModule(); 52 | public abstract void switchCallBack(); 53 | } 54 | 55 | } 56 | -------------------------------------------------------------------------------- /app/src/main/jni/ALog.h: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #define LOGI(...) (__android_log_print(ANDROID_LOG_INFO, TAG, __VA_ARGS__)) 4 | #define LOGW(...) (__android_log_print(ANDROID_LOG_WARN, TAG, __VA_ARGS__)) 5 | #define LOGE(...) (__android_log_print(ANDROID_LOG_ERROR, TAG, __VA_ARGS__)) 6 | 7 | #ifdef NDEBUG 8 | #define LOGV(...) 9 | #define LOGD(...) 10 | #else 11 | #define LOGV(...) (__android_log_print(ANDROID_LOG_VERBOSE, TAG, __VA_ARGS__)) 12 | #define LOGD(...) (__android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__)) 13 | #endif 14 | -------------------------------------------------------------------------------- /app/src/main/jni/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.17) 2 | 3 | project(TgPlus) 4 | 5 | include_directories(openssl) 6 | 7 | add_library( # lib name 8 | TgPlus 9 | 10 | # SHARED library 11 | SHARED 12 | 13 | # source file 14 | TgPlus.c ) 15 | 16 | target_link_libraries(TgPlus 17 | #crypto 18 | #ssl 19 | log) 20 | -------------------------------------------------------------------------------- /app/src/main/jni/LSPosedNativeHookApi.h: -------------------------------------------------------------------------------- 1 | #ifndef LSPosed_Native_Hook_API_h 2 | #define LSPosed_Native_Hook_API_h 3 | 4 | #include 5 | 6 | typedef int (*HookFunType)(void *func, void *replace, void **backup); 7 | 8 | typedef int (*UnhookFunType)(void *func); 9 | 10 | typedef void (*NativeOnModuleLoaded)(const char *name, void *handle); 11 | 12 | typedef struct { 13 | uint32_t version; 14 | HookFunType hook_func; 15 | UnhookFunType unhook_func; 16 | } NativeAPIEntries; 17 | 18 | typedef NativeOnModuleLoaded (*NativeInit)(const NativeAPIEntries *entries); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/__DECC_INCLUDE_EPILOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* restore state. Must correspond to the save in __decc_include_prologue.h */ 16 | #pragma names restore 17 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/__DECC_INCLUDE_PROLOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* save state */ 16 | #pragma names save 17 | /* have the compiler shorten symbols larger than 31 chars to 23 chars 18 | * followed by a 8 hex char CRC 19 | */ 20 | #pragma names as_is,shortened 21 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/aria.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2006-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | /* Copyright (c) 2017 National Security Research Institute. All rights reserved. */ 12 | 13 | #ifndef OSSL_CRYPTO_ARIA_H 14 | # define OSSL_CRYPTO_ARIA_H 15 | # pragma once 16 | 17 | # include 18 | 19 | # ifdef OPENSSL_NO_ARIA 20 | # error ARIA is disabled. 21 | # endif 22 | 23 | # define ARIA_ENCRYPT 1 24 | # define ARIA_DECRYPT 0 25 | 26 | # define ARIA_BLOCK_SIZE 16 /* Size of each encryption/decryption block */ 27 | # define ARIA_MAX_KEYS 17 /* Number of keys needed in the worst case */ 28 | 29 | typedef union { 30 | unsigned char c[ARIA_BLOCK_SIZE]; 31 | unsigned int u[ARIA_BLOCK_SIZE / sizeof(unsigned int)]; 32 | } ARIA_u128; 33 | 34 | typedef unsigned char ARIA_c128[ARIA_BLOCK_SIZE]; 35 | 36 | struct aria_key_st { 37 | ARIA_u128 rd_key[ARIA_MAX_KEYS]; 38 | unsigned int rounds; 39 | }; 40 | typedef struct aria_key_st ARIA_KEY; 41 | 42 | 43 | int ossl_aria_set_encrypt_key(const unsigned char *userKey, const int bits, 44 | ARIA_KEY *key); 45 | int ossl_aria_set_decrypt_key(const unsigned char *userKey, const int bits, 46 | ARIA_KEY *key); 47 | 48 | void ossl_aria_encrypt(const unsigned char *in, unsigned char *out, 49 | const ARIA_KEY *key); 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/asn1_dsa.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_ASN1_DSA_H 11 | # define OSSL_CRYPTO_ASN1_DSA_H 12 | # pragma once 13 | 14 | #include "internal/packet.h" 15 | 16 | int ossl_encode_der_length(WPACKET *pkt, size_t cont_len); 17 | int ossl_encode_der_integer(WPACKET *pkt, const BIGNUM *n); 18 | int ossl_encode_der_dsa_sig(WPACKET *pkt, const BIGNUM *r, const BIGNUM *s); 19 | int ossl_decode_der_length(PACKET *pkt, PACKET *subpkt); 20 | int ossl_decode_der_integer(PACKET *pkt, BIGNUM *n); 21 | size_t ossl_decode_der_dsa_sig(BIGNUM *r, BIGNUM *s, const unsigned char **ppin, 22 | size_t len); 23 | 24 | #endif 25 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/asn1err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_ASN1ERR_H 12 | # define OSSL_CRYPTO_ASN1ERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_ASN1_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/async.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_ASYNC_H 11 | # define OSSL_CRYPTO_ASYNC_H 12 | # pragma once 13 | 14 | # include 15 | 16 | int async_init(void); 17 | void async_deinit(void); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/asyncerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_ASYNCERR_H 12 | # define OSSL_CRYPTO_ASYNCERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_ASYNC_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/bioerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_BIOERR_H 12 | # define OSSL_CRYPTO_BIOERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_BIO_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/bn_conf.h: -------------------------------------------------------------------------------- 1 | /* WARNING: do not edit! */ 2 | /* Generated by Makefile from include/crypto/bn_conf.h.in */ 3 | /* 4 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 5 | * 6 | * Licensed under the Apache License 2.0 (the "License"). You may not use 7 | * this file except in compliance with the License. You can obtain a copy 8 | * in the file LICENSE in the source distribution or at 9 | * https://www.openssl.org/source/license.html 10 | */ 11 | 12 | #ifndef OSSL_CRYPTO_BN_CONF_H 13 | # define OSSL_CRYPTO_BN_CONF_H 14 | # pragma once 15 | 16 | /* 17 | * The contents of this file are not used in the UEFI build, as 18 | * both 32-bit and 64-bit builds are supported from a single run 19 | * of the Configure script. 20 | */ 21 | 22 | /* Should we define BN_DIV2W here? */ 23 | 24 | /* Only one for the following should be defined */ 25 | #define SIXTY_FOUR_BIT_LONG 26 | #undef SIXTY_FOUR_BIT 27 | #undef THIRTY_TWO_BIT 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/bn_conf.h.in: -------------------------------------------------------------------------------- 1 | {- join("\n",map { "/* $_ */" } @autowarntext) -} 2 | /* 3 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_BN_CONF_H 12 | # define OSSL_CRYPTO_BN_CONF_H 13 | # pragma once 14 | 15 | /* 16 | * The contents of this file are not used in the UEFI build, as 17 | * both 32-bit and 64-bit builds are supported from a single run 18 | * of the Configure script. 19 | */ 20 | 21 | /* Should we define BN_DIV2W here? */ 22 | 23 | /* Only one for the following should be defined */ 24 | {- $config{b64l} ? "#define" : "#undef" -} SIXTY_FOUR_BIT_LONG 25 | {- $config{b64} ? "#define" : "#undef" -} SIXTY_FOUR_BIT 26 | {- $config{b32} ? "#define" : "#undef" -} THIRTY_TWO_BIT 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/bn_dh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #define declare_dh_bn(x) \ 11 | extern const BIGNUM ossl_bignum_dh##x##_p; \ 12 | extern const BIGNUM ossl_bignum_dh##x##_q; \ 13 | extern const BIGNUM ossl_bignum_dh##x##_g; \ 14 | 15 | declare_dh_bn(1024_160) 16 | declare_dh_bn(2048_224) 17 | declare_dh_bn(2048_256) 18 | 19 | extern const BIGNUM ossl_bignum_const_2; 20 | 21 | extern const BIGNUM ossl_bignum_ffdhe2048_p; 22 | extern const BIGNUM ossl_bignum_ffdhe3072_p; 23 | extern const BIGNUM ossl_bignum_ffdhe4096_p; 24 | extern const BIGNUM ossl_bignum_ffdhe6144_p; 25 | extern const BIGNUM ossl_bignum_ffdhe8192_p; 26 | extern const BIGNUM ossl_bignum_ffdhe2048_q; 27 | extern const BIGNUM ossl_bignum_ffdhe3072_q; 28 | extern const BIGNUM ossl_bignum_ffdhe4096_q; 29 | extern const BIGNUM ossl_bignum_ffdhe6144_q; 30 | extern const BIGNUM ossl_bignum_ffdhe8192_q; 31 | 32 | extern const BIGNUM ossl_bignum_modp_1536_p; 33 | extern const BIGNUM ossl_bignum_modp_2048_p; 34 | extern const BIGNUM ossl_bignum_modp_3072_p; 35 | extern const BIGNUM ossl_bignum_modp_4096_p; 36 | extern const BIGNUM ossl_bignum_modp_6144_p; 37 | extern const BIGNUM ossl_bignum_modp_8192_p; 38 | extern const BIGNUM ossl_bignum_modp_1536_q; 39 | extern const BIGNUM ossl_bignum_modp_2048_q; 40 | extern const BIGNUM ossl_bignum_modp_3072_q; 41 | extern const BIGNUM ossl_bignum_modp_4096_q; 42 | extern const BIGNUM ossl_bignum_modp_6144_q; 43 | extern const BIGNUM ossl_bignum_modp_8192_q; 44 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/bn_srp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_NO_SRP 11 | 12 | extern const BIGNUM ossl_bn_group_1024; 13 | 14 | extern const BIGNUM ossl_bn_group_1536; 15 | 16 | extern const BIGNUM ossl_bn_group_2048; 17 | 18 | extern const BIGNUM ossl_bn_group_3072; 19 | 20 | extern const BIGNUM ossl_bn_group_4096; 21 | 22 | extern const BIGNUM ossl_bn_group_6144; 23 | 24 | extern const BIGNUM ossl_bn_group_8192; 25 | 26 | extern const BIGNUM ossl_bn_generator_19; 27 | 28 | extern const BIGNUM ossl_bn_generator_5; 29 | 30 | extern const BIGNUM ossl_bn_generator_2; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/bnerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_BNERR_H 12 | # define OSSL_CRYPTO_BNERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_BN_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/buffererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_BUFFERERR_H 12 | # define OSSL_CRYPTO_BUFFERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_BUF_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/chacha.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_CHACHA_H 11 | #define OSSL_CRYPTO_CHACHA_H 12 | # pragma once 13 | 14 | #include 15 | 16 | /* 17 | * ChaCha20_ctr32 encrypts |len| bytes from |inp| with the given key and 18 | * nonce and writes the result to |out|, which may be equal to |inp|. 19 | * The |key| is not 32 bytes of verbatim key material though, but the 20 | * said material collected into 8 32-bit elements array in host byte 21 | * order. Same approach applies to nonce: the |counter| argument is 22 | * pointer to concatenated nonce and counter values collected into 4 23 | * 32-bit elements. This, passing crypto material collected into 32-bit 24 | * elements as opposite to passing verbatim byte vectors, is chosen for 25 | * efficiency in multi-call scenarios. 26 | */ 27 | void ChaCha20_ctr32(unsigned char *out, const unsigned char *inp, 28 | size_t len, const unsigned int key[8], 29 | const unsigned int counter[4]); 30 | /* 31 | * You can notice that there is no key setup procedure. Because it's 32 | * as trivial as collecting bytes into 32-bit elements, it's reckoned 33 | * that below macro is sufficient. 34 | */ 35 | #define CHACHA_U8TOU32(p) ( \ 36 | ((unsigned int)(p)[0]) | ((unsigned int)(p)[1]<<8) | \ 37 | ((unsigned int)(p)[2]<<16) | ((unsigned int)(p)[3]<<24) ) 38 | 39 | #define CHACHA_KEY_SIZE 32 40 | #define CHACHA_CTR_SIZE 16 41 | #define CHACHA_BLK_SIZE 64 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/cmperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_CMPERR_H 12 | # define OSSL_CRYPTO_CMPERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_CMP 23 | 24 | int ossl_err_load_CMP_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/cmserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_CMSERR_H 12 | # define OSSL_CRYPTO_CMSERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_CMS 23 | 24 | int ossl_err_load_CMS_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/comperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_COMPERR_H 12 | # define OSSL_CRYPTO_COMPERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_COMP 23 | 24 | int ossl_err_load_COMP_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/conferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_CONFERR_H 12 | # define OSSL_CRYPTO_CONFERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_CONF_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/context.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | 12 | void *ossl_provider_store_new(OSSL_LIB_CTX *); 13 | void *ossl_property_string_data_new(OSSL_LIB_CTX *); 14 | void *ossl_stored_namemap_new(OSSL_LIB_CTX *); 15 | void *ossl_property_defns_new(OSSL_LIB_CTX *); 16 | void *ossl_ctx_global_properties_new(OSSL_LIB_CTX *); 17 | void *ossl_rand_ctx_new(OSSL_LIB_CTX *); 18 | void *ossl_prov_conf_ctx_new(OSSL_LIB_CTX *); 19 | void *ossl_bio_core_globals_new(OSSL_LIB_CTX *); 20 | void *ossl_child_prov_ctx_new(OSSL_LIB_CTX *); 21 | void *ossl_prov_drbg_nonce_ctx_new(OSSL_LIB_CTX *); 22 | void *ossl_self_test_set_callback_new(OSSL_LIB_CTX *); 23 | void *ossl_rand_crng_ctx_new(OSSL_LIB_CTX *); 24 | void *ossl_thread_event_ctx_new(OSSL_LIB_CTX *); 25 | void *ossl_fips_prov_ossl_ctx_new(OSSL_LIB_CTX *); 26 | #if defined(OPENSSL_THREADS) 27 | void *ossl_threads_ctx_new(OSSL_LIB_CTX *); 28 | #endif 29 | 30 | void ossl_provider_store_free(void *); 31 | void ossl_property_string_data_free(void *); 32 | void ossl_stored_namemap_free(void *); 33 | void ossl_property_defns_free(void *); 34 | void ossl_ctx_global_properties_free(void *); 35 | void ossl_rand_ctx_free(void *); 36 | void ossl_prov_conf_ctx_free(void *); 37 | void ossl_bio_core_globals_free(void *); 38 | void ossl_child_prov_ctx_free(void *); 39 | void ossl_prov_drbg_nonce_ctx_free(void *); 40 | void ossl_self_test_set_callback_free(void *); 41 | void ossl_rand_crng_ctx_free(void *); 42 | void ossl_thread_event_ctx_free(void *); 43 | void ossl_fips_prov_ossl_ctx_free(void *); 44 | void ossl_release_default_drbg_ctx(void); 45 | #if defined(OPENSSL_THREADS) 46 | void ossl_threads_ctx_free(void *); 47 | #endif 48 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/crmferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_CRMFERR_H 12 | # define OSSL_CRYPTO_CRMFERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_CRMF 23 | 24 | int ossl_err_load_CRMF_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/cryptlib.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_CRYPTLIB_H 11 | # define OSSL_CRYPTO_CRYPTLIB_H 12 | # pragma once 13 | 14 | # include 15 | # include "internal/cryptlib.h" 16 | 17 | /* This file is not scanned by mkdef.pl, whereas cryptlib.h is */ 18 | 19 | int ossl_init_thread_start(const void *index, void *arg, 20 | OSSL_thread_stop_handler_fn handfn); 21 | int ossl_init_thread_deregister(void *index); 22 | int ossl_init_thread(void); 23 | void ossl_cleanup_thread(void); 24 | void ossl_ctx_thread_stop(OSSL_LIB_CTX *ctx); 25 | 26 | /* 27 | * OPENSSL_INIT flags. The primary list of these is in crypto.h. Flags below 28 | * are those omitted from crypto.h because they are "reserved for internal 29 | * use". 30 | */ 31 | # define OPENSSL_INIT_BASE_ONLY 0x00040000L 32 | 33 | void ossl_trace_cleanup(void); 34 | void ossl_malloc_setup_failures(void); 35 | 36 | int ossl_crypto_alloc_ex_data_intern(int class_index, void *obj, 37 | CRYPTO_EX_DATA *ad, int idx); 38 | 39 | #endif /* OSSL_CRYPTO_CRYPTLIB_H */ 40 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/cryptoerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_CRYPTOERR_H 12 | # define OSSL_CRYPTO_CRYPTOERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_CRYPTO_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/cterr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_CTERR_H 12 | # define OSSL_CRYPTO_CTERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_CT 23 | 24 | int ossl_err_load_CT_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/decoder.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_DECODER_H 11 | # define OSSL_CRYPTO_DECODER_H 12 | # pragma once 13 | 14 | # include 15 | 16 | /* 17 | * These are specially made for the 'file:' provider-native loader, which 18 | * uses this to install a DER to anything decoder, which doesn't do much 19 | * except read a DER blob and pass it on as a provider object abstraction 20 | * (provider-object(7)). 21 | */ 22 | void *ossl_decoder_from_algorithm(int id, const OSSL_ALGORITHM *algodef, 23 | OSSL_PROVIDER *prov); 24 | 25 | OSSL_DECODER_INSTANCE * 26 | ossl_decoder_instance_new(OSSL_DECODER *decoder, void *decoderctx); 27 | void ossl_decoder_instance_free(OSSL_DECODER_INSTANCE *decoder_inst); 28 | int ossl_decoder_ctx_add_decoder_inst(OSSL_DECODER_CTX *ctx, 29 | OSSL_DECODER_INSTANCE *di); 30 | 31 | int ossl_decoder_ctx_setup_for_pkey(OSSL_DECODER_CTX *ctx, 32 | EVP_PKEY **pkey, const char *keytype, 33 | OSSL_LIB_CTX *libctx, 34 | const char *propquery); 35 | 36 | int ossl_decoder_get_number(const OSSL_DECODER *encoder); 37 | int ossl_decoder_store_cache_flush(OSSL_LIB_CTX *libctx); 38 | int ossl_decoder_store_remove_all_provided(const OSSL_PROVIDER *prov); 39 | 40 | #endif 41 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/decodererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_DECODERERR_H 12 | # define OSSL_CRYPTO_DECODERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_OSSL_DECODER_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/des_platform.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_DES_PLATFORM_H 11 | # define OSSL_DES_PLATFORM_H 12 | # pragma once 13 | 14 | # if defined(DES_ASM) && (defined(__sparc) || defined(__sparc__)) 15 | 16 | /* Fujitsu SPARC64 X support */ 17 | # include "crypto/sparc_arch.h" 18 | 19 | # ifndef OPENSSL_NO_DES 20 | # define SPARC_DES_CAPABLE (OPENSSL_sparcv9cap_P[1] & CFR_DES) 21 | # include 22 | void des_t4_key_expand(const void *key, DES_key_schedule *ks); 23 | void des_t4_ede3_cbc_encrypt(const void *inp, void *out, size_t len, 24 | const DES_key_schedule ks[3], unsigned char iv[8]); 25 | void des_t4_ede3_cbc_decrypt(const void *inp, void *out, size_t len, 26 | const DES_key_schedule ks[3], unsigned char iv[8]); 27 | void des_t4_cbc_encrypt(const void *inp, void *out, size_t len, 28 | const DES_key_schedule *ks, unsigned char iv[8]); 29 | void des_t4_cbc_decrypt(const void *inp, void *out, size_t len, 30 | const DES_key_schedule *ks, unsigned char iv[8]); 31 | # endif /* OPENSSL_NO_DES */ 32 | 33 | # endif /* DES_ASM && sparc */ 34 | 35 | #endif /* OSSL_CRYPTO_CIPHERMODE_PLATFORM_H */ 36 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/dherr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_DHERR_H 12 | # define OSSL_CRYPTO_DHERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_DH 23 | 24 | int ossl_err_load_DH_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/dsa.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_DSA_H 11 | # define OSSL_CRYPTO_DSA_H 12 | # pragma once 13 | 14 | # include 15 | # include 16 | # include "internal/ffc.h" 17 | 18 | #define DSA_PARAMGEN_TYPE_FIPS_186_4 0 /* Use FIPS186-4 standard */ 19 | #define DSA_PARAMGEN_TYPE_FIPS_186_2 1 /* Use legacy FIPS186-2 standard */ 20 | #define DSA_PARAMGEN_TYPE_FIPS_DEFAULT 2 21 | 22 | DSA *ossl_dsa_new(OSSL_LIB_CTX *libctx); 23 | void ossl_dsa_set0_libctx(DSA *d, OSSL_LIB_CTX *libctx); 24 | 25 | int ossl_dsa_generate_ffc_parameters(DSA *dsa, int type, int pbits, int qbits, 26 | BN_GENCB *cb); 27 | 28 | int ossl_dsa_sign_int(int type, const unsigned char *dgst, int dlen, 29 | unsigned char *sig, unsigned int *siglen, DSA *dsa, 30 | unsigned int nonce_type, const char *digestname, 31 | OSSL_LIB_CTX *libctx, const char *propq); 32 | 33 | FFC_PARAMS *ossl_dsa_get0_params(DSA *dsa); 34 | int ossl_dsa_ffc_params_fromdata(DSA *dsa, const OSSL_PARAM params[]); 35 | int ossl_dsa_key_fromdata(DSA *dsa, const OSSL_PARAM params[], 36 | int include_private); 37 | DSA *ossl_dsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, 38 | OSSL_LIB_CTX *libctx, const char *propq); 39 | 40 | int ossl_dsa_generate_public_key(BN_CTX *ctx, const DSA *dsa, 41 | const BIGNUM *priv_key, BIGNUM *pub_key); 42 | int ossl_dsa_check_params(const DSA *dsa, int checktype, int *ret); 43 | int ossl_dsa_check_pub_key(const DSA *dsa, const BIGNUM *pub_key, int *ret); 44 | int ossl_dsa_check_pub_key_partial(const DSA *dsa, const BIGNUM *pub_key, 45 | int *ret); 46 | int ossl_dsa_check_priv_key(const DSA *dsa, const BIGNUM *priv_key, int *ret); 47 | int ossl_dsa_check_pairwise(const DSA *dsa); 48 | int ossl_dsa_is_foreign(const DSA *dsa); 49 | DSA *ossl_dsa_dup(const DSA *dsa, int selection); 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/dsaerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_DSAERR_H 12 | # define OSSL_CRYPTO_DSAERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_DSA 23 | 24 | int ossl_err_load_DSA_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/dso_conf.h: -------------------------------------------------------------------------------- 1 | /* WARNING: do not edit! */ 2 | /* Generated by Makefile from include/crypto/dso_conf.h.in */ 3 | /* 4 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 5 | * 6 | * Licensed under the Apache License 2.0 (the "License"). You may not use 7 | * this file except in compliance with the License. You can obtain a copy 8 | * in the file LICENSE in the source distribution or at 9 | * https://www.openssl.org/source/license.html 10 | */ 11 | 12 | #ifndef OSSL_CRYPTO_DSO_CONF_H 13 | # define OSSL_CRYPTO_DSO_CONF_H 14 | # pragma once 15 | 16 | # define DSO_DLFCN 17 | # define HAVE_DLFCN_H 18 | # define DSO_EXTENSION ".so" 19 | #endif 20 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/dso_conf.h.in: -------------------------------------------------------------------------------- 1 | {- join("\n",map { "/* $_ */" } @autowarntext) -} 2 | /* 3 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_DSO_CONF_H 12 | # define OSSL_CRYPTO_DSO_CONF_H 13 | # pragma once 14 | 15 | {- # The DSO code currently always implements all functions so that no 16 | # applications will have to worry about that from a compilation point 17 | # of view. However, the "method"s may return zero unless that platform 18 | # has support compiled in for them. Currently each method is enabled 19 | # by a define "DSO_" ... we translate the "dso_scheme" config 20 | # string entry into using the following logic; 21 | my $scheme = $disabled{dso} ? undef : uc $target{dso_scheme}; 22 | if (!$scheme) { 23 | $scheme = "NONE"; 24 | } 25 | my @macros = ( "DSO_$scheme" ); 26 | if ($scheme eq 'DLFCN') { 27 | @macros = ( "DSO_DLFCN", "HAVE_DLFCN_H" ); 28 | } elsif ($scheme eq "DLFCN_NO_H") { 29 | @macros = ( "DSO_DLFCN" ); 30 | } 31 | join("\n", map { "# define $_" } @macros); -} 32 | # define DSO_EXTENSION "{- platform->dsoext() -}" 33 | #endif 34 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/ecerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_ECERR_H 12 | # define OSSL_CRYPTO_ECERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_EC 23 | 24 | int ossl_err_load_EC_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/encoder.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_ENCODER_H 11 | # define OSSL_CRYPTO_ENCODER_H 12 | # pragma once 13 | 14 | # include 15 | 16 | int ossl_encoder_get_number(const OSSL_ENCODER *encoder); 17 | int ossl_encoder_store_cache_flush(OSSL_LIB_CTX *libctx); 18 | int ossl_encoder_store_remove_all_provided(const OSSL_PROVIDER *prov); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/encodererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_ENCODERERR_H 12 | # define OSSL_CRYPTO_ENCODERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_OSSL_ENCODER_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/engine.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | 12 | void engine_load_openssl_int(void); 13 | void engine_load_devcrypto_int(void); 14 | void engine_load_rdrand_int(void); 15 | void engine_load_dynamic_int(void); 16 | void engine_load_padlock_int(void); 17 | void engine_load_capi_int(void); 18 | void engine_load_dasync_int(void); 19 | void engine_load_afalg_int(void); 20 | void engine_cleanup_int(void); 21 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/engineerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_ENGINEERR_H 12 | # define OSSL_CRYPTO_ENGINEERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_ENGINE 23 | 24 | int ossl_err_load_ENGINE_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_ERR_H 11 | # define OSSL_CRYPTO_ERR_H 12 | # pragma once 13 | 14 | int ossl_err_load_ERR_strings(void); 15 | int ossl_err_load_crypto_strings(void); 16 | void err_cleanup(void); 17 | int err_shelve_state(void **); 18 | void err_unshelve_state(void *); 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/ess.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_ESS_H 11 | # define OSSL_CRYPTO_ESS_H 12 | # pragma once 13 | 14 | /*- 15 | * IssuerSerial ::= SEQUENCE { 16 | * issuer GeneralNames, 17 | * serialNumber CertificateSerialNumber 18 | * } 19 | */ 20 | 21 | struct ESS_issuer_serial { 22 | STACK_OF(GENERAL_NAME) *issuer; 23 | ASN1_INTEGER *serial; 24 | }; 25 | 26 | /*- 27 | * ESSCertID ::= SEQUENCE { 28 | * certHash Hash, 29 | * issuerSerial IssuerSerial OPTIONAL 30 | * } 31 | */ 32 | 33 | struct ESS_cert_id { 34 | ASN1_OCTET_STRING *hash; /* Always SHA-1 digest. */ 35 | ESS_ISSUER_SERIAL *issuer_serial; 36 | }; 37 | 38 | /*- 39 | * SigningCertificate ::= SEQUENCE { 40 | * certs SEQUENCE OF ESSCertID, 41 | * policies SEQUENCE OF PolicyInformation OPTIONAL 42 | * } 43 | */ 44 | 45 | struct ESS_signing_cert { 46 | STACK_OF(ESS_CERT_ID) *cert_ids; 47 | STACK_OF(POLICYINFO) *policy_info; 48 | }; 49 | 50 | /*- 51 | * ESSCertIDv2 ::= SEQUENCE { 52 | * hashAlgorithm AlgorithmIdentifier DEFAULT id-sha256, 53 | * certHash Hash, 54 | * issuerSerial IssuerSerial OPTIONAL 55 | * } 56 | */ 57 | 58 | struct ESS_cert_id_v2_st { 59 | X509_ALGOR *hash_alg; /* Default: SHA-256 */ 60 | ASN1_OCTET_STRING *hash; 61 | ESS_ISSUER_SERIAL *issuer_serial; 62 | }; 63 | 64 | /*- 65 | * SigningCertificateV2 ::= SEQUENCE { 66 | * certs SEQUENCE OF ESSCertIDv2, 67 | * policies SEQUENCE OF PolicyInformation OPTIONAL 68 | * } 69 | */ 70 | 71 | struct ESS_signing_cert_v2_st { 72 | STACK_OF(ESS_CERT_ID_V2) *cert_ids; 73 | STACK_OF(POLICYINFO) *policy_info; 74 | }; 75 | 76 | #endif /* OSSL_CRYPTO_ESS_H */ 77 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/esserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_ESSERR_H 12 | # define OSSL_CRYPTO_ESSERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_ESS_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/evperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_EVPERR_H 12 | # define OSSL_CRYPTO_EVPERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_EVP_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/httperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_HTTPERR_H 12 | # define OSSL_CRYPTO_HTTPERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_HTTP_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/lhash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_LHASH_H 11 | # define OSSL_CRYPTO_LHASH_H 12 | # pragma once 13 | 14 | unsigned long ossl_lh_strcasehash(const char *); 15 | 16 | #endif /* OSSL_CRYPTO_LHASH_H */ 17 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/objects.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | 12 | void ossl_obj_cleanup_int(void); 13 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/objectserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_OBJECTSERR_H 12 | # define OSSL_CRYPTO_OBJECTSERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_OBJ_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/ocsperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_OCSPERR_H 12 | # define OSSL_CRYPTO_OCSPERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_OCSP 23 | 24 | int ossl_err_load_OCSP_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/pem.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_PEM_H 11 | # define OSSL_INTERNAL_PEM_H 12 | # pragma once 13 | 14 | # include 15 | # include "crypto/types.h" 16 | 17 | /* Found in crypto/pem/pvkfmt.c */ 18 | 19 | /* Maximum length of a blob after header */ 20 | # define BLOB_MAX_LENGTH 102400 21 | 22 | int ossl_do_blob_header(const unsigned char **in, unsigned int length, 23 | unsigned int *pmagic, unsigned int *pbitlen, 24 | int *pisdss, int *pispub); 25 | unsigned int ossl_blob_length(unsigned bitlen, int isdss, int ispub); 26 | int ossl_do_PVK_header(const unsigned char **in, unsigned int length, 27 | int skip_magic, 28 | unsigned int *psaltlen, unsigned int *pkeylen); 29 | # ifndef OPENSSL_NO_DEPRECATED_3_0 30 | # ifndef OPENSSL_NO_DSA 31 | DSA *ossl_b2i_DSA_after_header(const unsigned char **in, unsigned int bitlen, 32 | int ispub); 33 | # endif 34 | RSA *ossl_b2i_RSA_after_header(const unsigned char **in, unsigned int bitlen, 35 | int ispub); 36 | # endif 37 | EVP_PKEY *ossl_b2i(const unsigned char **in, unsigned int length, int *ispub); 38 | EVP_PKEY *ossl_b2i_bio(BIO *in, int *ispub); 39 | 40 | # ifndef OPENSSL_NO_DEPRECATED_3_0 41 | # ifndef OPENSSL_NO_DSA 42 | DSA *b2i_DSA_PVK_bio(BIO *in, pem_password_cb *cb, void *u); 43 | DSA *b2i_DSA_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u, 44 | OSSL_LIB_CTX *libctx, const char *propq); 45 | # endif 46 | RSA *b2i_RSA_PVK_bio(BIO *in, pem_password_cb *cb, void *u); 47 | RSA *b2i_RSA_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u, 48 | OSSL_LIB_CTX *libctx, const char *propq); 49 | # endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/pemerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_PEMERR_H 12 | # define OSSL_CRYPTO_PEMERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_PEM_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/pkcs12err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_PKCS12ERR_H 12 | # define OSSL_CRYPTO_PKCS12ERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_PKCS12_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/pkcs7.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_PKCS7_H 11 | # define OSSL_CRYPTO_PKCS7_H 12 | # pragma once 13 | 14 | void ossl_pkcs7_resolve_libctx(PKCS7 *p7); 15 | 16 | void ossl_pkcs7_set0_libctx(PKCS7 *p7, OSSL_LIB_CTX *ctx); 17 | int ossl_pkcs7_set1_propq(PKCS7 *p7, const char *propq); 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/pkcs7err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_PKCS7ERR_H 12 | # define OSSL_CRYPTO_PKCS7ERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_PKCS7_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/poly1305.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_POLY1305_H 11 | # define OSSL_CRYPTO_POLY1305_H 12 | # pragma once 13 | 14 | #include 15 | 16 | #define POLY1305_BLOCK_SIZE 16 17 | #define POLY1305_DIGEST_SIZE 16 18 | #define POLY1305_KEY_SIZE 32 19 | 20 | typedef struct poly1305_context POLY1305; 21 | 22 | typedef void (*poly1305_blocks_f) (void *ctx, const unsigned char *inp, 23 | size_t len, unsigned int padbit); 24 | typedef void (*poly1305_emit_f) (void *ctx, unsigned char mac[16], 25 | const unsigned int nonce[4]); 26 | 27 | struct poly1305_context { 28 | double opaque[24]; /* large enough to hold internal state, declared 29 | * 'double' to ensure at least 64-bit invariant 30 | * alignment across all platforms and 31 | * configurations */ 32 | unsigned int nonce[4]; 33 | unsigned char data[POLY1305_BLOCK_SIZE]; 34 | size_t num; 35 | struct { 36 | poly1305_blocks_f blocks; 37 | poly1305_emit_f emit; 38 | } func; 39 | }; 40 | 41 | size_t Poly1305_ctx_size(void); 42 | void Poly1305_Init(POLY1305 *ctx, const unsigned char key[32]); 43 | void Poly1305_Update(POLY1305 *ctx, const unsigned char *inp, size_t len); 44 | void Poly1305_Final(POLY1305 *ctx, unsigned char mac[16]); 45 | 46 | #endif /* OSSL_CRYPTO_POLY1305_H */ 47 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/ppc_arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014-2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_PPC_ARCH_H 11 | # define OSSL_CRYPTO_PPC_ARCH_H 12 | 13 | extern unsigned int OPENSSL_ppccap_P; 14 | 15 | /* 16 | * Flags' usage can appear ambiguous, because they are set rather 17 | * to reflect OpenSSL performance preferences than actual processor 18 | * capabilities. 19 | */ 20 | # define PPC_FPU64 (1<<0) 21 | # define PPC_ALTIVEC (1<<1) 22 | # define PPC_CRYPTO207 (1<<2) 23 | # define PPC_FPU (1<<3) 24 | # define PPC_MADD300 (1<<4) 25 | # define PPC_MFTB (1<<5) 26 | # define PPC_MFSPR268 (1<<6) 27 | # define PPC_BRD31 (1<<7) 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/punycode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_PUNYCODE_H 11 | # define OSSL_CRYPTO_PUNYCODE_H 12 | # pragma once 13 | 14 | # include /* for size_t */ 15 | 16 | int ossl_punycode_decode ( 17 | const char *pEncoded, 18 | const size_t enc_len, 19 | unsigned int *pDecoded, 20 | unsigned int *pout_length 21 | ); 22 | 23 | int ossl_a2ulabel(const char *in, char *out, size_t outlen); 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/randerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_RANDERR_H 12 | # define OSSL_CRYPTO_RANDERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_RAND_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/riscv_arch.def: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* X Macro Definitions for Specification of RISC-V Arch Capabilities */ 11 | 12 | /* 13 | * Each RISC-V capability ends up encoded as a single set bit in an array of 14 | * words. When specifying a new capability, write a new RISCV_DEFINE_CAP 15 | * statement, with an argument as the extension name in all-caps, 16 | * second argument as the index in the array where the capability will be stored 17 | * and third argument as the index of the bit to be used to encode the 18 | * capability. 19 | * RISCV_DEFINE_CAP(EXTENSION NAME, array index, bit index) */ 20 | 21 | RISCV_DEFINE_CAP(ZBA, 0, 0) 22 | RISCV_DEFINE_CAP(ZBB, 0, 1) 23 | RISCV_DEFINE_CAP(ZBC, 0, 2) 24 | RISCV_DEFINE_CAP(ZBS, 0, 3) 25 | RISCV_DEFINE_CAP(ZBKB, 0, 4) 26 | RISCV_DEFINE_CAP(ZBKC, 0, 5) 27 | RISCV_DEFINE_CAP(ZBKX, 0, 6) 28 | RISCV_DEFINE_CAP(ZKND, 0, 7) 29 | RISCV_DEFINE_CAP(ZKNE, 0, 8) 30 | RISCV_DEFINE_CAP(ZKNH, 0, 9) 31 | RISCV_DEFINE_CAP(ZKSED, 0, 10) 32 | RISCV_DEFINE_CAP(ZKSH, 0, 11) 33 | RISCV_DEFINE_CAP(ZKR, 0, 12) 34 | RISCV_DEFINE_CAP(ZKT, 0, 13) 35 | 36 | /* 37 | * In the future ... 38 | * RISCV_DEFINE_CAP(ZFOO, 0, 31) 39 | * RISCV_DEFINE_CAP(ZBAR, 1, 0) 40 | * ... and so on. 41 | */ 42 | 43 | #undef RISCV_DEFINE_CAP 44 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/riscv_arch.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_RISCV_ARCH_H 11 | # define OSSL_CRYPTO_RISCV_ARCH_H 12 | 13 | # include 14 | # include 15 | 16 | # define RISCV_DEFINE_CAP(NAME, INDEX, BIT_INDEX) +1 17 | extern uint32_t OPENSSL_riscvcap_P[ (( 18 | # include "riscv_arch.def" 19 | ) + sizeof(uint32_t) - 1) / sizeof(uint32_t) ]; 20 | 21 | # ifdef OPENSSL_RISCVCAP_IMPL 22 | # define RISCV_DEFINE_CAP(NAME, INDEX, BIT_INDEX) +1 23 | uint32_t OPENSSL_riscvcap_P[ (( 24 | # include "riscv_arch.def" 25 | ) + sizeof(uint32_t) - 1) / sizeof(uint32_t) ]; 26 | # endif 27 | 28 | # define RISCV_DEFINE_CAP(NAME, INDEX, BIT_INDEX) \ 29 | static inline int RISCV_HAS_##NAME(void) \ 30 | { \ 31 | return (OPENSSL_riscvcap_P[INDEX] & (1 << BIT_INDEX)) != 0; \ 32 | } 33 | # include "riscv_arch.def" 34 | 35 | struct RISCV_capability_s { 36 | const char *name; 37 | size_t index; 38 | size_t bit_offset; 39 | }; 40 | 41 | # define RISCV_DEFINE_CAP(NAME, INDEX, BIT_INDEX) +1 42 | extern const struct RISCV_capability_s RISCV_capabilities[ 43 | # include "riscv_arch.def" 44 | ]; 45 | 46 | # ifdef OPENSSL_RISCVCAP_IMPL 47 | # define RISCV_DEFINE_CAP(NAME, INDEX, BIT_INDEX) \ 48 | { #NAME, INDEX, BIT_INDEX }, 49 | const struct RISCV_capability_s RISCV_capabilities[] = { 50 | # include "riscv_arch.def" 51 | }; 52 | # endif 53 | 54 | # define RISCV_DEFINE_CAP(NAME, INDEX, BIT_INDEX) +1 55 | static const size_t kRISCVNumCaps = 56 | # include "riscv_arch.def" 57 | ; 58 | 59 | #endif 60 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/rsaerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_RSAERR_H 12 | # define OSSL_CRYPTO_RSAERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_RSA_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/security_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_SECURITY_BITS_H 11 | # define OSSL_SECURITY_BITS_H 12 | # pragma once 13 | 14 | uint16_t ossl_ifc_ffc_compute_security_bits(int n); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/sha.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_SHA_H 12 | # define OSSL_CRYPTO_SHA_H 13 | # pragma once 14 | 15 | # include 16 | 17 | int sha512_224_init(SHA512_CTX *); 18 | int sha512_256_init(SHA512_CTX *); 19 | int ossl_sha1_ctrl(SHA_CTX *ctx, int cmd, int mslen, void *ms); 20 | unsigned char *ossl_sha1(const unsigned char *d, size_t n, unsigned char *md); 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/siphash.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_SIPHASH_H 11 | # define OSSL_CRYPTO_SIPHASH_H 12 | # pragma once 13 | 14 | # include 15 | 16 | # define SIPHASH_BLOCK_SIZE 8 17 | # define SIPHASH_KEY_SIZE 16 18 | # define SIPHASH_MIN_DIGEST_SIZE 8 19 | # define SIPHASH_MAX_DIGEST_SIZE 16 20 | 21 | typedef struct siphash_st SIPHASH; 22 | 23 | size_t SipHash_ctx_size(void); 24 | size_t SipHash_hash_size(SIPHASH *ctx); 25 | int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size); 26 | int SipHash_Init(SIPHASH *ctx, const unsigned char *k, 27 | int crounds, int drounds); 28 | void SipHash_Update(SIPHASH *ctx, const unsigned char *in, size_t inlen); 29 | int SipHash_Final(SIPHASH *ctx, unsigned char *out, size_t outlen); 30 | 31 | /* Based on https://131002.net/siphash C reference implementation */ 32 | 33 | struct siphash_st { 34 | uint64_t total_inlen; 35 | uint64_t v0; 36 | uint64_t v1; 37 | uint64_t v2; 38 | uint64_t v3; 39 | unsigned int len; 40 | unsigned int hash_size; 41 | unsigned int crounds; 42 | unsigned int drounds; 43 | unsigned char leavings[SIPHASH_BLOCK_SIZE]; 44 | }; 45 | 46 | /* default: SipHash-2-4 */ 47 | # define SIPHASH_C_ROUNDS 2 48 | # define SIPHASH_D_ROUNDS 4 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/siv.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_NO_SIV 11 | 12 | typedef struct siv128_context SIV128_CONTEXT; 13 | 14 | SIV128_CONTEXT *ossl_siv128_new(const unsigned char *key, int klen, 15 | EVP_CIPHER *cbc, EVP_CIPHER *ctr, 16 | OSSL_LIB_CTX *libctx, const char *propq); 17 | int ossl_siv128_init(SIV128_CONTEXT *ctx, const unsigned char *key, int klen, 18 | const EVP_CIPHER *cbc, const EVP_CIPHER *ctr, 19 | OSSL_LIB_CTX *libctx, const char *propq); 20 | int ossl_siv128_copy_ctx(SIV128_CONTEXT *dest, SIV128_CONTEXT *src); 21 | int ossl_siv128_aad(SIV128_CONTEXT *ctx, const unsigned char *aad, size_t len); 22 | int ossl_siv128_encrypt(SIV128_CONTEXT *ctx, 23 | const unsigned char *in, unsigned char *out, size_t len); 24 | int ossl_siv128_decrypt(SIV128_CONTEXT *ctx, 25 | const unsigned char *in, unsigned char *out, size_t len); 26 | int ossl_siv128_finish(SIV128_CONTEXT *ctx); 27 | int ossl_siv128_set_tag(SIV128_CONTEXT *ctx, const unsigned char *tag, 28 | size_t len); 29 | int ossl_siv128_get_tag(SIV128_CONTEXT *ctx, unsigned char *tag, size_t len); 30 | int ossl_siv128_cleanup(SIV128_CONTEXT *ctx); 31 | int ossl_siv128_speed(SIV128_CONTEXT *ctx, int arg); 32 | 33 | #endif /* OPENSSL_NO_SIV */ 34 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/sm2err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_SM2ERR_H 12 | # define OSSL_CRYPTO_SM2ERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_SM2 23 | 24 | int ossl_err_load_SM2_strings(void); 25 | 26 | /* 27 | * SM2 reason codes. 28 | */ 29 | # define SM2_R_ASN1_ERROR 100 30 | # define SM2_R_BAD_SIGNATURE 101 31 | # define SM2_R_BUFFER_TOO_SMALL 107 32 | # define SM2_R_DIST_ID_TOO_LARGE 110 33 | # define SM2_R_ID_NOT_SET 112 34 | # define SM2_R_ID_TOO_LARGE 111 35 | # define SM2_R_INVALID_CURVE 108 36 | # define SM2_R_INVALID_DIGEST 102 37 | # define SM2_R_INVALID_DIGEST_TYPE 103 38 | # define SM2_R_INVALID_ENCODING 104 39 | # define SM2_R_INVALID_FIELD 105 40 | # define SM2_R_INVALID_PRIVATE_KEY 113 41 | # define SM2_R_NO_PARAMETERS_SET 109 42 | # define SM2_R_USER_ID_TOO_LARGE 106 43 | 44 | # endif 45 | 46 | # ifdef __cplusplus 47 | } 48 | # endif 49 | #endif 50 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/sm4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright 2017 Ribose Inc. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_SM4_H 12 | # define OSSL_CRYPTO_SM4_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef OPENSSL_NO_SM4 19 | # error SM4 is disabled. 20 | # endif 21 | 22 | # define SM4_ENCRYPT 1 23 | # define SM4_DECRYPT 0 24 | 25 | # define SM4_BLOCK_SIZE 16 26 | # define SM4_KEY_SCHEDULE 32 27 | 28 | typedef struct SM4_KEY_st { 29 | uint32_t rk[SM4_KEY_SCHEDULE]; 30 | } SM4_KEY; 31 | 32 | int ossl_sm4_set_key(const uint8_t *key, SM4_KEY *ks); 33 | 34 | void ossl_sm4_encrypt(const uint8_t *in, uint8_t *out, const SM4_KEY *ks); 35 | 36 | void ossl_sm4_decrypt(const uint8_t *in, uint8_t *out, const SM4_KEY *ks); 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/store.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_CRYPTO_STORE_H 11 | # define OSSL_CRYPTO_STORE_H 12 | # pragma once 13 | 14 | # include 15 | # include 16 | # include 17 | 18 | void ossl_store_cleanup_int(void); 19 | int ossl_store_loader_get_number(const OSSL_STORE_LOADER *loader); 20 | int ossl_store_loader_store_cache_flush(OSSL_LIB_CTX *libctx); 21 | int ossl_store_loader_store_remove_all_provided(const OSSL_PROVIDER *prov); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/storeerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_STOREERR_H 12 | # define OSSL_CRYPTO_STOREERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_OSSL_STORE_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/tserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_TSERR_H 12 | # define OSSL_CRYPTO_TSERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | # ifndef OPENSSL_NO_TS 23 | 24 | int ossl_err_load_TS_strings(void); 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | } 29 | # endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/types.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* When removal is simulated, we still need the type internally */ 11 | 12 | #ifndef OSSL_CRYPTO_TYPES_H 13 | # define OSSL_CRYPTO_TYPES_H 14 | # pragma once 15 | 16 | # ifdef OPENSSL_NO_DEPRECATED_3_0 17 | typedef struct rsa_st RSA; 18 | typedef struct rsa_meth_st RSA_METHOD; 19 | # ifndef OPENSSL_NO_EC 20 | typedef struct ec_key_st EC_KEY; 21 | typedef struct ec_key_method_st EC_KEY_METHOD; 22 | # endif 23 | # ifndef OPENSSL_NO_DSA 24 | typedef struct dsa_st DSA; 25 | # endif 26 | # endif 27 | 28 | # ifndef OPENSSL_NO_EC 29 | typedef struct ecx_key_st ECX_KEY; 30 | # endif 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/uierr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_UIERR_H 12 | # define OSSL_CRYPTO_UIERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_UI_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/x509err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_X509ERR_H 12 | # define OSSL_CRYPTO_X509ERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_X509_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/crypto/x509v3err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_CRYPTO_X509V3ERR_H 12 | # define OSSL_CRYPTO_X509V3ERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_X509V3_strings(void); 23 | 24 | # ifdef __cplusplus 25 | } 26 | # endif 27 | #endif 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/__DECC_INCLUDE_EPILOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* restore state. Must correspond to the save in __decc_include_prologue.h */ 16 | #pragma names restore 17 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/__DECC_INCLUDE_PROLOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* save state */ 16 | #pragma names save 17 | /* have the compiler shorten symbols larger than 31 chars to 23 chars 18 | * followed by a 8 hex char CRC 19 | */ 20 | #pragma names as_is,shortened 21 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/asn1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_ASN1_H 11 | # define OSSL_INTERNAL_ASN1_H 12 | # pragma once 13 | 14 | # include 15 | 16 | int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/bio_addr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_BIO_ADDR_H 11 | # define OSSL_BIO_ADDR_H 12 | 13 | # include "internal/e_os.h" 14 | # include "internal/sockets.h" 15 | 16 | # ifndef OPENSSL_NO_SOCK 17 | union bio_addr_st { 18 | struct sockaddr sa; 19 | # if OPENSSL_USE_IPV6 20 | struct sockaddr_in6 s_in6; 21 | # endif 22 | struct sockaddr_in s_in; 23 | # ifndef OPENSSL_NO_UNIX_SOCK 24 | struct sockaddr_un s_un; 25 | # endif 26 | }; 27 | # endif 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/comp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | 12 | void ossl_comp_zlib_cleanup(void); 13 | void ossl_comp_brotli_cleanup(void); 14 | void ossl_comp_zstd_cleanup(void); 15 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/conf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_CONF_H 11 | # define OSSL_INTERNAL_CONF_H 12 | # pragma once 13 | 14 | # include 15 | 16 | # define DEFAULT_CONF_MFLAGS \ 17 | (CONF_MFLAGS_DEFAULT_SECTION | \ 18 | CONF_MFLAGS_IGNORE_MISSING_FILE | \ 19 | CONF_MFLAGS_IGNORE_RETURN_CODES) 20 | 21 | struct ossl_init_settings_st { 22 | char *filename; 23 | char *appname; 24 | unsigned long flags; 25 | }; 26 | 27 | int ossl_config_int(const OPENSSL_INIT_SETTINGS *); 28 | void ossl_no_config_int(void); 29 | void ossl_config_modules_free(void); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/deprecated.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This header file should be included by internal code that needs to use APIs 12 | * that have been deprecated for public use, but where those symbols will still 13 | * be available internally. For example the EVP and provider code needs to use 14 | * low level APIs that are otherwise deprecated. 15 | * 16 | * This header *must* be the first OpenSSL header included by a source file. 17 | */ 18 | 19 | #ifndef OSSL_INTERNAL_DEPRECATED_H 20 | # define OSSL_INTERNAL_DEPRECATED_H 21 | # pragma once 22 | 23 | # include 24 | 25 | # undef OPENSSL_NO_DEPRECATED 26 | # define OPENSSL_SUPPRESS_DEPRECATED 27 | 28 | # include 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/deterministic_nonce.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_DETERMINISTIC_NONCE_H 11 | # define OSSL_INTERNAL_DETERMINISTIC_NONCE_H 12 | # pragma once 13 | 14 | # include 15 | 16 | int ossl_gen_deterministic_nonce_rfc6979(BIGNUM *out, const BIGNUM *q, 17 | const BIGNUM *priv, 18 | const unsigned char *message, 19 | size_t message_len, 20 | const char *digestname, 21 | OSSL_LIB_CTX *libctx, 22 | const char *propq); 23 | 24 | #endif /*OSSL_INTERNAL_DETERMINISTIC_NONCE_H */ 25 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/dsoerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_INTERNAL_DSOERR_H 12 | # define OSSL_INTERNAL_DSOERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_DSO_strings(void); 23 | 24 | /* 25 | * DSO reason codes. 26 | */ 27 | # define DSO_R_CTRL_FAILED 100 28 | # define DSO_R_DSO_ALREADY_LOADED 110 29 | # define DSO_R_EMPTY_FILE_STRUCTURE 113 30 | # define DSO_R_FAILURE 114 31 | # define DSO_R_FILENAME_TOO_BIG 101 32 | # define DSO_R_FINISH_FAILED 102 33 | # define DSO_R_INCORRECT_FILE_SYNTAX 115 34 | # define DSO_R_LOAD_FAILED 103 35 | # define DSO_R_NAME_TRANSLATION_FAILED 109 36 | # define DSO_R_NO_FILENAME 111 37 | # define DSO_R_NULL_HANDLE 104 38 | # define DSO_R_SET_FILENAME_FAILED 112 39 | # define DSO_R_STACK_ERROR 105 40 | # define DSO_R_SYM_FAILURE 106 41 | # define DSO_R_UNLOAD_FAILED 107 42 | # define DSO_R_UNSUPPORTED 108 43 | 44 | 45 | # ifdef __cplusplus 46 | } 47 | # endif 48 | #endif 49 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/endian.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_ENDIAN_H 11 | # define OSSL_INTERNAL_ENDIAN_H 12 | # pragma once 13 | 14 | /* 15 | * IS_LITTLE_ENDIAN and IS_BIG_ENDIAN can be used to detect the endiannes 16 | * at compile time. To use it, DECLARE_IS_ENDIAN must be used to declare 17 | * a variable. 18 | * 19 | * L_ENDIAN and B_ENDIAN can be used at preprocessor time. They can be set 20 | * in the configarion using the lib_cppflags variable. If neither is 21 | * set, it will fall back to code works with either endianness. 22 | */ 23 | 24 | # if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) 25 | # define DECLARE_IS_ENDIAN const int ossl_is_little_endian = __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ 26 | # define IS_LITTLE_ENDIAN (ossl_is_little_endian) 27 | # define IS_BIG_ENDIAN (!ossl_is_little_endian) 28 | # if defined(L_ENDIAN) && (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__) 29 | # error "L_ENDIAN defined on a big endian machine" 30 | # endif 31 | # if defined(B_ENDIAN) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) 32 | # error "B_ENDIAN defined on a little endian machine" 33 | # endif 34 | # if !defined(L_ENDIAN) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) 35 | # define L_ENDIAN 36 | # endif 37 | # if !defined(B_ENDIAN) && (__BYTE_ORDER__ != __ORDER_LITTLE_ENDIAN__) 38 | # define B_ENDIAN 39 | # endif 40 | # else 41 | # define DECLARE_IS_ENDIAN \ 42 | const union { \ 43 | long one; \ 44 | char little; \ 45 | } ossl_is_endian = { 1 } 46 | 47 | # define IS_LITTLE_ENDIAN (ossl_is_endian.little != 0) 48 | # define IS_BIG_ENDIAN (ossl_is_endian.little == 0) 49 | # endif 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_ERR_H 11 | # define OSSL_INTERNAL_ERR_H 12 | # pragma once 13 | 14 | void err_free_strings_int(void); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/namemap.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include "internal/cryptlib.h" 11 | 12 | typedef struct ossl_namemap_st OSSL_NAMEMAP; 13 | 14 | OSSL_NAMEMAP *ossl_namemap_stored(OSSL_LIB_CTX *libctx); 15 | 16 | OSSL_NAMEMAP *ossl_namemap_new(void); 17 | void ossl_namemap_free(OSSL_NAMEMAP *namemap); 18 | int ossl_namemap_empty(OSSL_NAMEMAP *namemap); 19 | 20 | int ossl_namemap_add_name(OSSL_NAMEMAP *namemap, int number, const char *name); 21 | 22 | /* 23 | * The number<->name relationship is 1<->many 24 | * Therefore, the name->number mapping is a simple function, while the 25 | * number->name mapping is an iterator. 26 | */ 27 | int ossl_namemap_name2num(const OSSL_NAMEMAP *namemap, const char *name); 28 | int ossl_namemap_name2num_n(const OSSL_NAMEMAP *namemap, 29 | const char *name, size_t name_len); 30 | const char *ossl_namemap_num2name(const OSSL_NAMEMAP *namemap, int number, 31 | size_t idx); 32 | int ossl_namemap_doall_names(const OSSL_NAMEMAP *namemap, int number, 33 | void (*fn)(const char *name, void *data), 34 | void *data); 35 | 36 | /* 37 | * A utility that handles several names in a string, divided by a given 38 | * separator. 39 | */ 40 | int ossl_namemap_add_names(OSSL_NAMEMAP *namemap, int number, 41 | const char *names, const char separator); 42 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/nelem.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_NELEM_H 11 | # define OSSL_INTERNAL_NELEM_H 12 | # pragma once 13 | 14 | # define OSSL_NELEM(x) (sizeof(x)/sizeof((x)[0])) 15 | #endif 16 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/o_dir.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2004-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is dual-licensed and is also available under the following 12 | * terms: 13 | * 14 | * Copyright (c) 2004, Richard Levitte 15 | * All rights reserved. 16 | * 17 | * Redistribution and use in source and binary forms, with or without 18 | * modification, are permitted provided that the following conditions 19 | * are met: 20 | * 1. Redistributions of source code must retain the above copyright 21 | * notice, this list of conditions and the following disclaimer. 22 | * 2. Redistributions in binary form must reproduce the above copyright 23 | * notice, this list of conditions and the following disclaimer in the 24 | * documentation and/or other materials provided with the distribution. 25 | * 26 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 27 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 28 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 29 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 30 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 | * SUCH DAMAGE. 37 | */ 38 | 39 | #ifndef OSSL_INTERNAL_O_DIR_H 40 | # define OSSL_INTERNAL_O_DIR_H 41 | # pragma once 42 | 43 | typedef struct OPENSSL_dir_context_st OPENSSL_DIR_CTX; 44 | 45 | /* 46 | * returns NULL on error or end-of-directory. If it is end-of-directory, 47 | * errno will be zero 48 | */ 49 | const char *OPENSSL_DIR_read(OPENSSL_DIR_CTX **ctx, const char *directory); 50 | /* returns 1 on success, 0 on error */ 51 | int OPENSSL_DIR_end(OPENSSL_DIR_CTX **ctx); 52 | 53 | #endif /* LPDIR_H */ 54 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/propertyerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OSSL_INTERNAL_PROPERTYERR_H 12 | # define OSSL_INTERNAL_PROPERTYERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # ifdef __cplusplus 19 | extern "C" { 20 | # endif 21 | 22 | int ossl_err_load_PROP_strings(void); 23 | 24 | /* 25 | * PROP reason codes. 26 | */ 27 | # define PROP_R_NAME_TOO_LONG 100 28 | # define PROP_R_NOT_AN_ASCII_CHARACTER 101 29 | # define PROP_R_NOT_AN_HEXADECIMAL_DIGIT 102 30 | # define PROP_R_NOT_AN_IDENTIFIER 103 31 | # define PROP_R_NOT_AN_OCTAL_DIGIT 104 32 | # define PROP_R_NOT_A_DECIMAL_DIGIT 105 33 | # define PROP_R_NO_MATCHING_STRING_DELIMITER 106 34 | # define PROP_R_NO_VALUE 107 35 | # define PROP_R_PARSE_FAILED 108 36 | # define PROP_R_STRING_TOO_LONG 109 37 | # define PROP_R_TRAILING_CHARACTERS 110 38 | 39 | 40 | # ifdef __cplusplus 41 | } 42 | # endif 43 | #endif 44 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/quic_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_QUIC_ERROR_H 11 | # define OSSL_QUIC_ERROR_H 12 | 13 | # include 14 | 15 | # ifndef OPENSSL_NO_QUIC 16 | 17 | /* RFC 9000 Section 20.1 */ 18 | # define QUIC_ERR_NO_ERROR 0x00 19 | # define QUIC_ERR_INTERNAL_ERROR 0x01 20 | # define QUIC_ERR_CONNECTION_REFUSED 0x02 21 | # define QUIC_ERR_FLOW_CONTROL_ERROR 0x03 22 | # define QUIC_ERR_STREAM_LIMIT_ERROR 0x04 23 | # define QUIC_ERR_STREAM_STATE_ERROR 0x05 24 | # define QUIC_ERR_FINAL_SIZE_ERROR 0x06 25 | # define QUIC_ERR_FRAME_ENCODING_ERROR 0x07 26 | # define QUIC_ERR_TRANSPORT_PARAMETER_ERROR 0x08 27 | # define QUIC_ERR_CONNECTION_ID_LIMIT_ERROR 0x09 28 | # define QUIC_ERR_PROTOCOL_VIOLATION 0x0A 29 | # define QUIC_ERR_INVALID_TOKEN 0x0B 30 | # define QUIC_ERR_APPLICATION_ERROR 0x0C 31 | # define QUIC_ERR_CRYPTO_BUFFER_EXCEEDED 0x0D 32 | # define QUIC_ERR_KEY_UPDATE_ERROR 0x0E 33 | # define QUIC_ERR_AEAD_LIMIT_REACHED 0x0F 34 | # define QUIC_ERR_NO_VIABLE_PATH 0x10 35 | 36 | /* Inclusive range for handshake-specific errors. */ 37 | # define QUIC_ERR_CRYPTO_ERR_BEGIN 0x0100 38 | # define QUUC_ERR_CRYPTO_ERR_END 0x01FF 39 | 40 | # endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/quic_rx_depack.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_QUIC_RX_DEPACK_H 11 | # define OSSL_QUIC_RX_DEPACK_H 12 | 13 | # include "internal/quic_channel.h" 14 | 15 | # ifndef OPENSSL_NO_QUIC 16 | 17 | int ossl_quic_handle_frames(QUIC_CHANNEL *qc, OSSL_QRX_PKT *qpacket); 18 | 19 | # endif 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/quic_statm.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_QUIC_STATS_H 11 | # define OSSL_QUIC_STATS_H 12 | 13 | # include 14 | # include "internal/time.h" 15 | 16 | # ifndef OPENSSL_NO_QUIC 17 | 18 | typedef struct ossl_statm_st { 19 | OSSL_TIME smoothed_rtt, latest_rtt, min_rtt, rtt_variance, max_ack_delay; 20 | char have_first_sample; 21 | } OSSL_STATM; 22 | 23 | typedef struct ossl_rtt_info_st { 24 | /* As defined in RFC 9002. */ 25 | OSSL_TIME smoothed_rtt, latest_rtt, rtt_variance, min_rtt, max_ack_delay; 26 | } OSSL_RTT_INFO; 27 | 28 | int ossl_statm_init(OSSL_STATM *statm); 29 | 30 | void ossl_statm_destroy(OSSL_STATM *statm); 31 | 32 | void ossl_statm_get_rtt_info(OSSL_STATM *statm, OSSL_RTT_INFO *rtt_info); 33 | 34 | void ossl_statm_update_rtt(OSSL_STATM *statm, 35 | OSSL_TIME ack_delay, 36 | OSSL_TIME override_latest_rtt); 37 | 38 | void ossl_statm_set_max_ack_delay(OSSL_STATM *statm, OSSL_TIME max_ack_delay); 39 | 40 | # endif 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/sha3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* This header can move into provider when legacy support is removed */ 11 | #ifndef OSSL_INTERNAL_SHA3_H 12 | # define OSSL_INTERNAL_SHA3_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | 18 | # define KECCAK1600_WIDTH 1600 19 | # define SHA3_MDSIZE(bitlen) (bitlen / 8) 20 | # define KMAC_MDSIZE(bitlen) 2 * (bitlen / 8) 21 | # define SHA3_BLOCKSIZE(bitlen) (KECCAK1600_WIDTH - bitlen * 2) / 8 22 | 23 | typedef struct keccak_st KECCAK1600_CTX; 24 | 25 | typedef size_t (sha3_absorb_fn)(void *vctx, const void *inp, size_t len); 26 | typedef int (sha3_final_fn)(unsigned char *md, void *vctx); 27 | 28 | typedef struct prov_sha3_meth_st 29 | { 30 | sha3_absorb_fn *absorb; 31 | sha3_final_fn *final; 32 | } PROV_SHA3_METHOD; 33 | 34 | struct keccak_st { 35 | uint64_t A[5][5]; 36 | size_t block_size; /* cached ctx->digest->block_size */ 37 | size_t md_size; /* output length, variable in XOF */ 38 | size_t bufsz; /* used bytes in below buffer */ 39 | unsigned char buf[KECCAK1600_WIDTH / 8 - 32]; 40 | unsigned char pad; 41 | PROV_SHA3_METHOD meth; 42 | }; 43 | 44 | void ossl_sha3_reset(KECCAK1600_CTX *ctx); 45 | int ossl_sha3_init(KECCAK1600_CTX *ctx, unsigned char pad, size_t bitlen); 46 | int ossl_keccak_kmac_init(KECCAK1600_CTX *ctx, unsigned char pad, 47 | size_t bitlen); 48 | int ossl_sha3_update(KECCAK1600_CTX *ctx, const void *_inp, size_t len); 49 | int ossl_sha3_final(unsigned char *md, KECCAK1600_CTX *ctx); 50 | 51 | size_t SHA3_absorb(uint64_t A[5][5], const unsigned char *inp, size_t len, 52 | size_t r); 53 | 54 | #endif /* OSSL_INTERNAL_SHA3_H */ 55 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/sizes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_SIZES_H 11 | # define OSSL_INTERNAL_SIZES_H 12 | # pragma once 13 | 14 | /* 15 | * Max sizes used to allocate buffers with a fixed sizes, for example for 16 | * stack allocations, structure fields, ... 17 | */ 18 | # define OSSL_MAX_NAME_SIZE 50 /* Algorithm name */ 19 | # define OSSL_MAX_PROPQUERY_SIZE 256 /* Property query strings */ 20 | # define OSSL_MAX_ALGORITHM_ID_SIZE 256 /* AlgorithmIdentifier DER */ 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/sm3.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2017-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright 2017 Ribose Inc. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | /* This header can move into provider when legacy support is removed */ 12 | #ifndef OSSL_INTERNAL_SM3_H 13 | # define OSSL_INTERNAL_SM3_H 14 | # pragma once 15 | 16 | # include 17 | 18 | # ifdef OPENSSL_NO_SM3 19 | # error SM3 is disabled. 20 | # endif 21 | 22 | # define SM3_DIGEST_LENGTH 32 23 | # define SM3_WORD unsigned int 24 | 25 | # define SM3_CBLOCK 64 26 | # define SM3_LBLOCK (SM3_CBLOCK/4) 27 | 28 | typedef struct SM3state_st { 29 | SM3_WORD A, B, C, D, E, F, G, H; 30 | SM3_WORD Nl, Nh; 31 | SM3_WORD data[SM3_LBLOCK]; 32 | unsigned int num; 33 | } SM3_CTX; 34 | 35 | int ossl_sm3_init(SM3_CTX *c); 36 | int ossl_sm3_update(SM3_CTX *c, const void *data, size_t len); 37 | int ossl_sm3_final(unsigned char *md, SM3_CTX *c); 38 | 39 | #endif /* OSSL_INTERNAL_SM3_H */ 40 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/ssl3_cbc.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | 12 | /* tls_pad.c */ 13 | int ssl3_cbc_remove_padding_and_mac(size_t *reclen, 14 | size_t origreclen, 15 | unsigned char *recdata, 16 | unsigned char **mac, 17 | int *alloced, 18 | size_t block_size, size_t mac_size, 19 | OSSL_LIB_CTX *libctx); 20 | 21 | int tls1_cbc_remove_padding_and_mac(size_t *reclen, 22 | size_t origreclen, 23 | unsigned char *recdata, 24 | unsigned char **mac, 25 | int *alloced, 26 | size_t block_size, size_t mac_size, 27 | int aead, 28 | OSSL_LIB_CTX *libctx); 29 | 30 | /* ssl3_cbc.c */ 31 | __owur char ssl3_cbc_record_digest_supported(const EVP_MD_CTX *ctx); 32 | __owur int ssl3_cbc_digest_record(const EVP_MD *md, 33 | unsigned char *md_out, 34 | size_t *md_out_size, 35 | const unsigned char *header, 36 | const unsigned char *data, 37 | size_t data_size, 38 | size_t data_plus_mac_plus_padding_size, 39 | const unsigned char *mac_secret, 40 | size_t mac_secret_length, char is_sslv3); 41 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/sslconf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_SSLCONF_H 11 | # define OSSL_INTERNAL_SSLCONF_H 12 | # pragma once 13 | 14 | typedef struct ssl_conf_cmd_st SSL_CONF_CMD; 15 | 16 | const SSL_CONF_CMD *conf_ssl_get(size_t idx, const char **name, size_t *cnt); 17 | int conf_ssl_name_find(const char *name, size_t *idx); 18 | void conf_ssl_get_cmd(const SSL_CONF_CMD *cmd, size_t idx, char **cmdstr, 19 | char **arg); 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/symhacks.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_SYMHACKS_H 11 | # define OSSL_INTERNAL_SYMHACKS_H 12 | # pragma once 13 | 14 | # include 15 | 16 | # if defined(OPENSSL_SYS_VMS) 17 | 18 | /* ossl_provider_gettable_params vs OSSL_PROVIDER_gettable_params */ 19 | # undef ossl_provider_gettable_params 20 | # define ossl_provider_gettable_params ossl_int_prov_gettable_params 21 | /* ossl_provider_get_params vs OSSL_PROVIDER_get_params */ 22 | # undef ossl_provider_get_params 23 | # define ossl_provider_get_params ossl_int_prov_get_params 24 | 25 | # endif 26 | 27 | #endif /* ! defined HEADER_VMS_IDHACKS_H */ 28 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/thread.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_INTERNAL_THREAD_H 11 | # define OPENSSL_INTERNAL_THREAD_H 12 | # include 13 | # include 14 | # include 15 | # include 16 | # include 17 | # include "crypto/context.h" 18 | 19 | void *ossl_crypto_thread_start(OSSL_LIB_CTX *ctx, CRYPTO_THREAD_ROUTINE start, 20 | void *data); 21 | int ossl_crypto_thread_join(void *task, CRYPTO_THREAD_RETVAL *retval); 22 | int ossl_crypto_thread_clean(void *vhandle); 23 | uint64_t ossl_get_avail_threads(OSSL_LIB_CTX *ctx); 24 | 25 | # if defined(OPENSSL_THREADS) 26 | 27 | # define OSSL_LIB_CTX_GET_THREADS(CTX) \ 28 | ossl_lib_ctx_get_data(CTX, OSSL_LIB_CTX_THREAD_INDEX); 29 | 30 | typedef struct openssl_threads_st { 31 | uint64_t max_threads; 32 | uint64_t active_threads; 33 | CRYPTO_MUTEX *lock; 34 | CRYPTO_CONDVAR *cond_finished; 35 | } OSSL_LIB_CTX_THREADS; 36 | 37 | # endif /* defined(OPENSSL_THREADS) */ 38 | 39 | #endif /* OPENSSL_INTERNAL_THREAD_H */ 40 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/uint_set.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | #ifndef OSSL_UINT_SET_H 10 | # define OSSL_UINT_SET_H 11 | 12 | #include "openssl/params.h" 13 | #include "internal/list.h" 14 | 15 | /* 16 | * uint64_t Integer Sets 17 | * ===================== 18 | * 19 | * Utilities for managing a logical set of unsigned 64-bit integers. The 20 | * structure tracks each contiguous range of integers using one allocation and 21 | * is thus optimised for cases where integers tend to appear consecutively. 22 | * Queries are optimised under the assumption that they will generally be made 23 | * on integers near the end of the set. 24 | * 25 | * Discussion of implementation details can be found in uint_set.c. 26 | */ 27 | typedef struct uint_range_st { 28 | uint64_t start, end; 29 | } UINT_RANGE; 30 | 31 | typedef struct uint_set_item_st UINT_SET_ITEM; 32 | struct uint_set_item_st { 33 | OSSL_LIST_MEMBER(uint_set, UINT_SET_ITEM); 34 | UINT_RANGE range; 35 | }; 36 | 37 | DEFINE_LIST_OF(uint_set, UINT_SET_ITEM); 38 | 39 | typedef OSSL_LIST(uint_set) UINT_SET; 40 | 41 | void ossl_uint_set_init(UINT_SET *s); 42 | void ossl_uint_set_destroy(UINT_SET *s); 43 | 44 | /* 45 | * Insert a range into a integer set. Returns 0 on allocation failure, in which 46 | * case the integer set is in a valid but undefined state. Otherwise, returns 1. 47 | * Ranges can overlap existing ranges without limitation. If a range is a subset 48 | * of an existing range in the set, this is a no-op and returns 1. 49 | */ 50 | int ossl_uint_set_insert(UINT_SET *s, const UINT_RANGE *range); 51 | 52 | /* 53 | * Remove a range from the set. Returns 0 on allocation failure, in which case 54 | * the integer set is unchanged. Otherwise, returns 1. Ranges which are not 55 | * already in the set can be removed without issue. If a passed range is not in 56 | * the integer set at all, this is a no-op and returns 1. 57 | */ 58 | int ossl_uint_set_remove(UINT_SET *s, const UINT_RANGE *range); 59 | 60 | /* Returns 1 iff the given integer is in the integer set. */ 61 | int ossl_uint_set_query(const UINT_SET *s, uint64_t v); 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/internal/unicode.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OSSL_INTERNAL_UNICODE_H 11 | # define OSSL_INTERNAL_UNICODE_H 12 | # pragma once 13 | 14 | typedef enum { 15 | SURROGATE_MIN = 0xd800UL, 16 | SURROGATE_MAX = 0xdfffUL, 17 | UNICODE_MAX = 0x10ffffUL, 18 | UNICODE_LIMIT 19 | } UNICODE_CONSTANTS; 20 | 21 | static ossl_unused ossl_inline int is_unicode_surrogate(unsigned long value) 22 | { 23 | return value >= SURROGATE_MIN && value <= SURROGATE_MAX; 24 | } 25 | 26 | static ossl_unused ossl_inline int is_unicode_valid(unsigned long value) 27 | { 28 | return value <= UNICODE_MAX && !is_unicode_surrogate(value); 29 | } 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libcrypto_arm64-v8a.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libcrypto_arm64-v8a.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libcrypto_armeabi-v7a.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libcrypto_armeabi-v7a.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libcrypto_x86.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libcrypto_x86.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libcrypto_x86_64.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libcrypto_x86_64.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libssl_arm64-v8a.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libssl_arm64-v8a.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libssl_armeabi-v7a.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libssl_armeabi-v7a.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libssl_x86.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libssl_x86.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/lib/libssl_x86_64.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/jni/openssl/lib/libssl_x86_64.a -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/__DECC_INCLUDE_EPILOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C/C++ on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* 16 | * The C++ compiler doesn't understand these pragmas, even though it 17 | * understands the corresponding command line qualifier. 18 | */ 19 | #ifndef __cplusplus 20 | /* restore state. Must correspond to the save in __decc_include_prologue.h */ 21 | # pragma names restore 22 | #endif 23 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/__DECC_INCLUDE_PROLOGUE.H: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * This file is only used by HP C/C++ on VMS, and is included automatically 12 | * after each header file from this directory 13 | */ 14 | 15 | /* 16 | * The C++ compiler doesn't understand these pragmas, even though it 17 | * understands the corresponding command line qualifier. 18 | */ 19 | #ifndef __cplusplus 20 | /* save state */ 21 | # pragma names save 22 | /* have the compiler shorten symbols larger than 31 chars to 23 chars 23 | * followed by a 8 hex char CRC 24 | */ 25 | # pragma names as_is,shortened 26 | #endif 27 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/asn1_mac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #error "This file is obsolete; please update your software." 11 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/asyncerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_ASYNCERR_H 12 | # define OPENSSL_ASYNCERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * ASYNC reason codes. 23 | */ 24 | # define ASYNC_R_FAILED_TO_SET_POOL 101 25 | # define ASYNC_R_FAILED_TO_SWAP_CONTEXT 102 26 | # define ASYNC_R_INIT_FAILED 105 27 | # define ASYNC_R_INVALID_POOL_SIZE 103 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/bnerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_BNERR_H 12 | # define OPENSSL_BNERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * BN reason codes. 23 | */ 24 | # define BN_R_ARG2_LT_ARG3 100 25 | # define BN_R_BAD_RECIPROCAL 101 26 | # define BN_R_BIGNUM_TOO_LONG 114 27 | # define BN_R_BITS_TOO_SMALL 118 28 | # define BN_R_CALLED_WITH_EVEN_MODULUS 102 29 | # define BN_R_DIV_BY_ZERO 103 30 | # define BN_R_ENCODING_ERROR 104 31 | # define BN_R_EXPAND_ON_STATIC_BIGNUM_DATA 105 32 | # define BN_R_INPUT_NOT_REDUCED 110 33 | # define BN_R_INVALID_LENGTH 106 34 | # define BN_R_INVALID_RANGE 115 35 | # define BN_R_INVALID_SHIFT 119 36 | # define BN_R_NOT_A_SQUARE 111 37 | # define BN_R_NOT_INITIALIZED 107 38 | # define BN_R_NO_INVERSE 108 39 | # define BN_R_NO_PRIME_CANDIDATE 121 40 | # define BN_R_NO_SOLUTION 116 41 | # define BN_R_NO_SUITABLE_DIGEST 120 42 | # define BN_R_PRIVATE_KEY_TOO_LARGE 117 43 | # define BN_R_P_IS_NOT_PRIME 112 44 | # define BN_R_TOO_MANY_ITERATIONS 113 45 | # define BN_R_TOO_MANY_TEMPORARY_VARIABLES 109 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/buffer.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_BUFFER_H 11 | # define OPENSSL_BUFFER_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_BUFFER_H 17 | # endif 18 | 19 | # include 20 | # ifndef OPENSSL_CRYPTO_H 21 | # include 22 | # endif 23 | # include 24 | 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | # include 31 | # include 32 | 33 | # ifndef OPENSSL_NO_DEPRECATED_3_0 34 | # define BUF_strdup(s) OPENSSL_strdup(s) 35 | # define BUF_strndup(s, size) OPENSSL_strndup(s, size) 36 | # define BUF_memdup(data, size) OPENSSL_memdup(data, size) 37 | # define BUF_strlcpy(dst, src, size) OPENSSL_strlcpy(dst, src, size) 38 | # define BUF_strlcat(dst, src, size) OPENSSL_strlcat(dst, src, size) 39 | # define BUF_strnlen(str, maxlen) OPENSSL_strnlen(str, maxlen) 40 | # endif 41 | 42 | struct buf_mem_st { 43 | size_t length; /* current number of bytes */ 44 | char *data; 45 | size_t max; /* size of buffer */ 46 | unsigned long flags; 47 | }; 48 | 49 | # define BUF_MEM_FLAG_SECURE 0x01 50 | 51 | BUF_MEM *BUF_MEM_new(void); 52 | BUF_MEM *BUF_MEM_new_ex(unsigned long flags); 53 | void BUF_MEM_free(BUF_MEM *a); 54 | size_t BUF_MEM_grow(BUF_MEM *str, size_t len); 55 | size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len); 56 | void BUF_reverse(unsigned char *out, const unsigned char *in, size_t siz); 57 | 58 | 59 | # ifdef __cplusplus 60 | } 61 | # endif 62 | #endif 63 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/buffererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_BUFFERERR_H 12 | # define OPENSSL_BUFFERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * BUF reason codes. 23 | */ 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/cast.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_CAST_H 11 | # define OPENSSL_CAST_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_CAST_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_CAST 22 | # ifdef __cplusplus 23 | extern "C" { 24 | # endif 25 | 26 | # define CAST_BLOCK 8 27 | # define CAST_KEY_LENGTH 16 28 | 29 | # ifndef OPENSSL_NO_DEPRECATED_3_0 30 | 31 | # define CAST_ENCRYPT 1 32 | # define CAST_DECRYPT 0 33 | 34 | # define CAST_LONG unsigned int 35 | 36 | typedef struct cast_key_st { 37 | CAST_LONG data[32]; 38 | int short_key; /* Use reduced rounds for short key */ 39 | } CAST_KEY; 40 | 41 | # endif /* OPENSSL_NO_DEPRECATED_3_0 */ 42 | # ifndef OPENSSL_NO_DEPRECATED_3_0 43 | OSSL_DEPRECATEDIN_3_0 44 | void CAST_set_key(CAST_KEY *key, int len, const unsigned char *data); 45 | OSSL_DEPRECATEDIN_3_0 46 | void CAST_ecb_encrypt(const unsigned char *in, unsigned char *out, 47 | const CAST_KEY *key, int enc); 48 | OSSL_DEPRECATEDIN_3_0 49 | void CAST_encrypt(CAST_LONG *data, const CAST_KEY *key); 50 | OSSL_DEPRECATEDIN_3_0 51 | void CAST_decrypt(CAST_LONG *data, const CAST_KEY *key); 52 | OSSL_DEPRECATEDIN_3_0 53 | void CAST_cbc_encrypt(const unsigned char *in, unsigned char *out, 54 | long length, const CAST_KEY *ks, unsigned char *iv, 55 | int enc); 56 | OSSL_DEPRECATEDIN_3_0 57 | void CAST_cfb64_encrypt(const unsigned char *in, unsigned char *out, 58 | long length, const CAST_KEY *schedule, 59 | unsigned char *ivec, int *num, int enc); 60 | OSSL_DEPRECATEDIN_3_0 61 | void CAST_ofb64_encrypt(const unsigned char *in, unsigned char *out, 62 | long length, const CAST_KEY *schedule, 63 | unsigned char *ivec, int *num); 64 | # endif 65 | 66 | # ifdef __cplusplus 67 | } 68 | # endif 69 | # endif 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/cmac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_CMAC_H 11 | # define OPENSSL_CMAC_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_CMAC_H 17 | # endif 18 | 19 | # ifndef OPENSSL_NO_CMAC 20 | 21 | # ifdef __cplusplus 22 | extern "C" { 23 | # endif 24 | 25 | # include 26 | 27 | # ifndef OPENSSL_NO_DEPRECATED_3_0 28 | /* Opaque */ 29 | typedef struct CMAC_CTX_st CMAC_CTX; 30 | # endif 31 | # ifndef OPENSSL_NO_DEPRECATED_3_0 32 | OSSL_DEPRECATEDIN_3_0 CMAC_CTX *CMAC_CTX_new(void); 33 | OSSL_DEPRECATEDIN_3_0 void CMAC_CTX_cleanup(CMAC_CTX *ctx); 34 | OSSL_DEPRECATEDIN_3_0 void CMAC_CTX_free(CMAC_CTX *ctx); 35 | OSSL_DEPRECATEDIN_3_0 EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx); 36 | OSSL_DEPRECATEDIN_3_0 int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in); 37 | OSSL_DEPRECATEDIN_3_0 int CMAC_Init(CMAC_CTX *ctx, 38 | const void *key, size_t keylen, 39 | const EVP_CIPHER *cipher, ENGINE *impl); 40 | OSSL_DEPRECATEDIN_3_0 int CMAC_Update(CMAC_CTX *ctx, 41 | const void *data, size_t dlen); 42 | OSSL_DEPRECATEDIN_3_0 int CMAC_Final(CMAC_CTX *ctx, 43 | unsigned char *out, size_t *poutlen); 44 | OSSL_DEPRECATEDIN_3_0 int CMAC_resume(CMAC_CTX *ctx); 45 | # endif 46 | 47 | # ifdef __cplusplus 48 | } 49 | # endif 50 | 51 | # endif 52 | #endif 53 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/cmp_util.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright Nokia 2007-2019 4 | * Copyright Siemens AG 2015-2019 5 | * 6 | * Licensed under the Apache License 2.0 (the "License"). You may not use 7 | * this file except in compliance with the License. You can obtain a copy 8 | * in the file LICENSE in the source distribution or at 9 | * https://www.openssl.org/source/license.html 10 | */ 11 | 12 | #ifndef OPENSSL_CMP_UTIL_H 13 | # define OPENSSL_CMP_UTIL_H 14 | # pragma once 15 | 16 | # include 17 | # ifndef OPENSSL_NO_CMP 18 | 19 | # include 20 | # include 21 | 22 | # ifdef __cplusplus 23 | extern "C" { 24 | # endif 25 | 26 | int OSSL_CMP_log_open(void); 27 | void OSSL_CMP_log_close(void); 28 | # define OSSL_CMP_LOG_PREFIX "CMP " 29 | 30 | /* 31 | * generalized logging/error callback mirroring the severity levels of syslog.h 32 | */ 33 | typedef int OSSL_CMP_severity; 34 | # define OSSL_CMP_LOG_EMERG 0 35 | # define OSSL_CMP_LOG_ALERT 1 36 | # define OSSL_CMP_LOG_CRIT 2 37 | # define OSSL_CMP_LOG_ERR 3 38 | # define OSSL_CMP_LOG_WARNING 4 39 | # define OSSL_CMP_LOG_NOTICE 5 40 | # define OSSL_CMP_LOG_INFO 6 41 | # define OSSL_CMP_LOG_DEBUG 7 42 | # define OSSL_CMP_LOG_TRACE 8 43 | # define OSSL_CMP_LOG_MAX OSSL_CMP_LOG_TRACE 44 | typedef int (*OSSL_CMP_log_cb_t)(const char *func, const char *file, int line, 45 | OSSL_CMP_severity level, const char *msg); 46 | 47 | int OSSL_CMP_print_to_bio(BIO *bio, const char *component, const char *file, 48 | int line, OSSL_CMP_severity level, const char *msg); 49 | /* use of the logging callback for outputting error queue */ 50 | void OSSL_CMP_print_errors_cb(OSSL_CMP_log_cb_t log_fn); 51 | 52 | # ifdef __cplusplus 53 | } 54 | # endif 55 | # endif /* !defined(OPENSSL_NO_CMP) */ 56 | #endif /* !defined(OPENSSL_CMP_UTIL_H) */ 57 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/comp.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2015-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_COMP_H 11 | # define OPENSSL_COMP_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_COMP_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_COMP 22 | # include 23 | # include 24 | # ifdef __cplusplus 25 | extern "C" { 26 | # endif 27 | 28 | 29 | 30 | COMP_CTX *COMP_CTX_new(COMP_METHOD *meth); 31 | const COMP_METHOD *COMP_CTX_get_method(const COMP_CTX *ctx); 32 | int COMP_CTX_get_type(const COMP_CTX* comp); 33 | int COMP_get_type(const COMP_METHOD *meth); 34 | const char *COMP_get_name(const COMP_METHOD *meth); 35 | void COMP_CTX_free(COMP_CTX *ctx); 36 | 37 | int COMP_compress_block(COMP_CTX *ctx, unsigned char *out, int olen, 38 | unsigned char *in, int ilen); 39 | int COMP_expand_block(COMP_CTX *ctx, unsigned char *out, int olen, 40 | unsigned char *in, int ilen); 41 | 42 | COMP_METHOD *COMP_zlib(void); 43 | COMP_METHOD *COMP_zlib_oneshot(void); 44 | COMP_METHOD *COMP_brotli(void); 45 | COMP_METHOD *COMP_brotli_oneshot(void); 46 | COMP_METHOD *COMP_zstd(void); 47 | COMP_METHOD *COMP_zstd_oneshot(void); 48 | 49 | #ifndef OPENSSL_NO_DEPRECATED_1_1_0 50 | # define COMP_zlib_cleanup() while(0) continue 51 | #endif 52 | 53 | # ifdef OPENSSL_BIO_H 54 | const BIO_METHOD *BIO_f_zlib(void); 55 | const BIO_METHOD *BIO_f_brotli(void); 56 | const BIO_METHOD *BIO_f_zstd(void); 57 | # endif 58 | 59 | 60 | # ifdef __cplusplus 61 | } 62 | # endif 63 | # endif 64 | #endif 65 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/comperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_COMPERR_H 12 | # define OPENSSL_COMPERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | # ifndef OPENSSL_NO_COMP 21 | 22 | 23 | /* 24 | * COMP reason codes. 25 | */ 26 | # define COMP_R_BROTLI_DECODE_ERROR 102 27 | # define COMP_R_BROTLI_ENCODE_ERROR 103 28 | # define COMP_R_BROTLI_NOT_SUPPORTED 104 29 | # define COMP_R_ZLIB_DEFLATE_ERROR 99 30 | # define COMP_R_ZLIB_INFLATE_ERROR 100 31 | # define COMP_R_ZLIB_NOT_SUPPORTED 101 32 | # define COMP_R_ZSTD_COMPRESS_ERROR 105 33 | # define COMP_R_ZSTD_DECODE_ERROR 106 34 | # define COMP_R_ZSTD_DECOMPRESS_ERROR 107 35 | # define COMP_R_ZSTD_NOT_SUPPORTED 108 36 | 37 | # endif 38 | #endif 39 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/conf_api.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_CONF_API_H 11 | # define OPENSSL_CONF_API_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_CONF_API_H 17 | # endif 18 | 19 | # include 20 | # include 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | /* Up until OpenSSL 0.9.5a, this was new_section */ 27 | CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); 28 | /* Up until OpenSSL 0.9.5a, this was get_section */ 29 | CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); 30 | /* Up until OpenSSL 0.9.5a, this was CONF_get_section */ 31 | STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, 32 | const char *section); 33 | 34 | int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); 35 | char *_CONF_get_string(const CONF *conf, const char *section, 36 | const char *name); 37 | long _CONF_get_number(const CONF *conf, const char *section, 38 | const char *name); 39 | 40 | int _CONF_new_data(CONF *conf); 41 | void _CONF_free_data(CONF *conf); 42 | 43 | #ifdef __cplusplus 44 | } 45 | #endif 46 | #endif 47 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/conferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_CONFERR_H 12 | # define OPENSSL_CONFERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * CONF reason codes. 23 | */ 24 | # define CONF_R_ERROR_LOADING_DSO 110 25 | # define CONF_R_INVALID_PRAGMA 122 26 | # define CONF_R_LIST_CANNOT_BE_NULL 115 27 | # define CONF_R_MANDATORY_BRACES_IN_VARIABLE_EXPANSION 123 28 | # define CONF_R_MISSING_CLOSE_SQUARE_BRACKET 100 29 | # define CONF_R_MISSING_EQUAL_SIGN 101 30 | # define CONF_R_MISSING_INIT_FUNCTION 112 31 | # define CONF_R_MODULE_INITIALIZATION_ERROR 109 32 | # define CONF_R_NO_CLOSE_BRACE 102 33 | # define CONF_R_NO_CONF 105 34 | # define CONF_R_NO_CONF_OR_ENVIRONMENT_VARIABLE 106 35 | # define CONF_R_NO_SECTION 107 36 | # define CONF_R_NO_SUCH_FILE 114 37 | # define CONF_R_NO_VALUE 108 38 | # define CONF_R_NUMBER_TOO_LARGE 121 39 | # define CONF_R_OPENSSL_CONF_REFERENCES_MISSING_SECTION 124 40 | # define CONF_R_RECURSIVE_DIRECTORY_INCLUDE 111 41 | # define CONF_R_RELATIVE_PATH 125 42 | # define CONF_R_SSL_COMMAND_SECTION_EMPTY 117 43 | # define CONF_R_SSL_COMMAND_SECTION_NOT_FOUND 118 44 | # define CONF_R_SSL_SECTION_EMPTY 119 45 | # define CONF_R_SSL_SECTION_NOT_FOUND 120 46 | # define CONF_R_UNABLE_TO_CREATE_NEW_SECTION 103 47 | # define CONF_R_UNKNOWN_MODULE_NAME 113 48 | # define CONF_R_VARIABLE_EXPANSION_TOO_LONG 116 49 | # define CONF_R_VARIABLE_HAS_NO_VALUE 104 50 | 51 | #endif 52 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/configuration.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * {- join("\n * ", @autowarntext) -} 3 | * 4 | * Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved. 5 | * 6 | * Licensed under the Apache License 2.0 (the "License"). You may not use 7 | * this file except in compliance with the License. You can obtain a copy 8 | * in the file LICENSE in the source distribution or at 9 | * https://www.openssl.org/source/license.html 10 | */ 11 | 12 | #ifndef OPENSSL_CONFIGURATION_H 13 | # define OPENSSL_CONFIGURATION_H 14 | # pragma once 15 | 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | # ifdef OPENSSL_ALGORITHM_DEFINES 21 | # error OPENSSL_ALGORITHM_DEFINES no longer supported 22 | # endif 23 | 24 | /* 25 | * OpenSSL was configured with the following options: 26 | */ 27 | 28 | {- if (@{$config{openssl_sys_defines}}) { 29 | foreach (@{$config{openssl_sys_defines}}) { 30 | $OUT .= "# ifndef $_\n"; 31 | $OUT .= "# define $_ 1\n"; 32 | $OUT .= "# endif\n"; 33 | } 34 | } 35 | foreach (@{$config{openssl_api_defines}}) { 36 | (my $macro, my $value) = $_ =~ /^(.*?)=(.*?)$/; 37 | $OUT .= "# define $macro $value\n"; 38 | } 39 | if (@{$config{openssl_feature_defines}}) { 40 | foreach (@{$config{openssl_feature_defines}}) { 41 | $OUT .= "# ifndef $_\n"; 42 | $OUT .= "# define $_\n"; 43 | $OUT .= "# endif\n"; 44 | } 45 | } 46 | ""; 47 | -} 48 | 49 | /* Generate 80386 code? */ 50 | {- $config{processor} eq "386" ? "# define" : "# undef" -} I386_ONLY 51 | 52 | /* 53 | * The following are cipher-specific, but are part of the public API. 54 | */ 55 | # if !defined(OPENSSL_SYS_UEFI) 56 | {- $config{bn_ll} ? "# define" : "# undef" -} BN_LLONG 57 | /* Only one for the following should be defined */ 58 | {- $config{b64l} ? "# define" : "# undef" -} SIXTY_FOUR_BIT_LONG 59 | {- $config{b64} ? "# define" : "# undef" -} SIXTY_FOUR_BIT 60 | {- $config{b32} ? "# define" : "# undef" -} THIRTY_TWO_BIT 61 | # endif 62 | 63 | # define RC4_INT {- $config{rc4_int} -} 64 | 65 | # if defined(OPENSSL_NO_COMP) || (defined(OPENSSL_NO_BROTLI) && defined(OPENSSL_NO_ZSTD) && defined(OPENSSL_NO_ZLIB)) 66 | # define OPENSSL_NO_COMP_ALG 67 | # else 68 | # undef OPENSSL_NO_COMP_ALG 69 | # endif 70 | 71 | # ifdef __cplusplus 72 | } 73 | # endif 74 | 75 | #endif /* OPENSSL_CONFIGURATION_H */ 76 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/conftypes.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_CONFTYPES_H 11 | # define OPENSSL_CONFTYPES_H 12 | # pragma once 13 | 14 | #ifndef OPENSSL_CONF_H 15 | # include 16 | #endif 17 | 18 | /* 19 | * The contents of this file are deprecated and will be made opaque 20 | */ 21 | struct conf_method_st { 22 | const char *name; 23 | CONF *(*create) (CONF_METHOD *meth); 24 | int (*init) (CONF *conf); 25 | int (*destroy) (CONF *conf); 26 | int (*destroy_data) (CONF *conf); 27 | int (*load_bio) (CONF *conf, BIO *bp, long *eline); 28 | int (*dump) (const CONF *conf, BIO *bp); 29 | int (*is_number) (const CONF *conf, char c); 30 | int (*to_int) (const CONF *conf, char c); 31 | int (*load) (CONF *conf, const char *name, long *eline); 32 | }; 33 | 34 | struct conf_st { 35 | CONF_METHOD *meth; 36 | void *meth_data; 37 | LHASH_OF(CONF_VALUE) *data; 38 | int flag_dollarid; 39 | int flag_abspath; 40 | char *includedir; 41 | OSSL_LIB_CTX *libctx; 42 | }; 43 | 44 | #endif 45 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/core_object.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_CORE_OBJECT_H 11 | # define OPENSSL_CORE_OBJECT_H 12 | # pragma once 13 | 14 | # ifdef __cplusplus 15 | extern "C" { 16 | # endif 17 | 18 | /*- 19 | * Known object types 20 | * 21 | * These numbers are used as values for the OSSL_PARAM parameter 22 | * OSSL_OBJECT_PARAM_TYPE. 23 | * 24 | * For most of these types, there's a corresponding libcrypto object type. 25 | * The corresponding type is indicated with a comment after the number. 26 | */ 27 | # define OSSL_OBJECT_UNKNOWN 0 28 | # define OSSL_OBJECT_NAME 1 /* char * */ 29 | # define OSSL_OBJECT_PKEY 2 /* EVP_PKEY * */ 30 | # define OSSL_OBJECT_CERT 3 /* X509 * */ 31 | # define OSSL_OBJECT_CRL 4 /* X509_CRL * */ 32 | 33 | /* 34 | * The rest of the associated OSSL_PARAM elements is described in core_names.h 35 | */ 36 | 37 | # ifdef __cplusplus 38 | } 39 | # endif 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/crmferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_CRMFERR_H 12 | # define OPENSSL_CRMFERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | # ifndef OPENSSL_NO_CRMF 21 | 22 | 23 | /* 24 | * CRMF reason codes. 25 | */ 26 | # define CRMF_R_BAD_PBM_ITERATIONCOUNT 100 27 | # define CRMF_R_CRMFERROR 102 28 | # define CRMF_R_ERROR 103 29 | # define CRMF_R_ERROR_DECODING_CERTIFICATE 104 30 | # define CRMF_R_ERROR_DECRYPTING_CERTIFICATE 105 31 | # define CRMF_R_ERROR_DECRYPTING_SYMMETRIC_KEY 106 32 | # define CRMF_R_FAILURE_OBTAINING_RANDOM 107 33 | # define CRMF_R_ITERATIONCOUNT_BELOW_100 108 34 | # define CRMF_R_MALFORMED_IV 101 35 | # define CRMF_R_NULL_ARGUMENT 109 36 | # define CRMF_R_POPOSKINPUT_NOT_SUPPORTED 113 37 | # define CRMF_R_POPO_INCONSISTENT_PUBLIC_KEY 117 38 | # define CRMF_R_POPO_MISSING 121 39 | # define CRMF_R_POPO_MISSING_PUBLIC_KEY 118 40 | # define CRMF_R_POPO_MISSING_SUBJECT 119 41 | # define CRMF_R_POPO_RAVERIFIED_NOT_ACCEPTED 120 42 | # define CRMF_R_SETTING_MAC_ALGOR_FAILURE 110 43 | # define CRMF_R_SETTING_OWF_ALGOR_FAILURE 111 44 | # define CRMF_R_UNSUPPORTED_ALGORITHM 112 45 | # define CRMF_R_UNSUPPORTED_CIPHER 114 46 | # define CRMF_R_UNSUPPORTED_METHOD_FOR_CREATING_POPO 115 47 | # define CRMF_R_UNSUPPORTED_POPO_METHOD 116 48 | 49 | # endif 50 | #endif 51 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/cterr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_CTERR_H 12 | # define OPENSSL_CTERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | # ifndef OPENSSL_NO_CT 21 | 22 | 23 | /* 24 | * CT reason codes. 25 | */ 26 | # define CT_R_BASE64_DECODE_ERROR 108 27 | # define CT_R_INVALID_LOG_ID_LENGTH 100 28 | # define CT_R_LOG_CONF_INVALID 109 29 | # define CT_R_LOG_CONF_INVALID_KEY 110 30 | # define CT_R_LOG_CONF_MISSING_DESCRIPTION 111 31 | # define CT_R_LOG_CONF_MISSING_KEY 112 32 | # define CT_R_LOG_KEY_INVALID 113 33 | # define CT_R_SCT_FUTURE_TIMESTAMP 116 34 | # define CT_R_SCT_INVALID 104 35 | # define CT_R_SCT_INVALID_SIGNATURE 107 36 | # define CT_R_SCT_LIST_INVALID 105 37 | # define CT_R_SCT_LOG_ID_MISMATCH 114 38 | # define CT_R_SCT_NOT_SET 106 39 | # define CT_R_SCT_UNSUPPORTED_VERSION 115 40 | # define CT_R_UNRECOGNIZED_SIGNATURE_NID 101 41 | # define CT_R_UNSUPPORTED_ENTRY_TYPE 102 42 | # define CT_R_UNSUPPORTED_VERSION 103 43 | 44 | # endif 45 | #endif 46 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/decodererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_DECODERERR_H 12 | # define OPENSSL_DECODERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * OSSL_DECODER reason codes. 23 | */ 24 | # define OSSL_DECODER_R_COULD_NOT_DECODE_OBJECT 101 25 | # define OSSL_DECODER_R_DECODER_NOT_FOUND 102 26 | # define OSSL_DECODER_R_MISSING_GET_PARAMS 100 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/dsaerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_DSAERR_H 12 | # define OPENSSL_DSAERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | # ifndef OPENSSL_NO_DSA 21 | 22 | 23 | /* 24 | * DSA reason codes. 25 | */ 26 | # define DSA_R_BAD_FFC_PARAMETERS 114 27 | # define DSA_R_BAD_Q_VALUE 102 28 | # define DSA_R_BN_DECODE_ERROR 108 29 | # define DSA_R_BN_ERROR 109 30 | # define DSA_R_DECODE_ERROR 104 31 | # define DSA_R_INVALID_DIGEST_TYPE 106 32 | # define DSA_R_INVALID_PARAMETERS 112 33 | # define DSA_R_MISSING_PARAMETERS 101 34 | # define DSA_R_MISSING_PRIVATE_KEY 111 35 | # define DSA_R_MODULUS_TOO_LARGE 103 36 | # define DSA_R_NO_PARAMETERS_SET 107 37 | # define DSA_R_PARAMETER_ENCODING_ERROR 105 38 | # define DSA_R_P_NOT_PRIME 115 39 | # define DSA_R_Q_NOT_PRIME 113 40 | # define DSA_R_SEED_LEN_SMALL 110 41 | # define DSA_R_TOO_MANY_RETRIES 116 42 | 43 | # endif 44 | #endif 45 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/dtls1.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_DTLS1_H 11 | # define OPENSSL_DTLS1_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_DTLS1_H 17 | # endif 18 | 19 | # include 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | #include 26 | 27 | /* DTLS*_VERSION constants are defined in prov_ssl.h */ 28 | # ifndef OPENSSL_NO_DEPRECATED_3_0 29 | # define DTLS_MIN_VERSION DTLS1_VERSION 30 | # define DTLS_MAX_VERSION DTLS1_2_VERSION 31 | # endif 32 | # define DTLS1_VERSION_MAJOR 0xFE 33 | 34 | /* Special value for method supporting multiple versions */ 35 | # define DTLS_ANY_VERSION 0x1FFFF 36 | 37 | /* lengths of messages */ 38 | 39 | # define DTLS1_COOKIE_LENGTH 255 40 | 41 | # define DTLS1_RT_HEADER_LENGTH 13 42 | 43 | # define DTLS1_HM_HEADER_LENGTH 12 44 | 45 | # define DTLS1_HM_BAD_FRAGMENT -2 46 | # define DTLS1_HM_FRAGMENT_RETRY -3 47 | 48 | # define DTLS1_CCS_HEADER_LENGTH 1 49 | 50 | # define DTLS1_AL_HEADER_LENGTH 2 51 | 52 | # define DTLS1_TMO_ALERT_COUNT 12 53 | 54 | #ifdef __cplusplus 55 | } 56 | #endif 57 | #endif 58 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/ebcdic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_EBCDIC_H 11 | # define OPENSSL_EBCDIC_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_EBCDIC_H 17 | # endif 18 | 19 | # include 20 | 21 | #ifdef __cplusplus 22 | extern "C" { 23 | #endif 24 | 25 | /* Avoid name clashes with other applications */ 26 | # define os_toascii _openssl_os_toascii 27 | # define os_toebcdic _openssl_os_toebcdic 28 | # define ebcdic2ascii _openssl_ebcdic2ascii 29 | # define ascii2ebcdic _openssl_ascii2ebcdic 30 | 31 | extern const unsigned char os_toascii[256]; 32 | extern const unsigned char os_toebcdic[256]; 33 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); 34 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); 35 | 36 | #ifdef __cplusplus 37 | } 38 | #endif 39 | #endif 40 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/ecdh.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/ecdsa.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/encodererr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_ENCODERERR_H 12 | # define OPENSSL_ENCODERERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * OSSL_ENCODER reason codes. 23 | */ 24 | # define OSSL_ENCODER_R_ENCODER_NOT_FOUND 101 25 | # define OSSL_ENCODER_R_INCORRECT_PROPERTY_QUERY 100 26 | # define OSSL_ENCODER_R_MISSING_GET_PARAMS 102 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/esserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_ESSERR_H 12 | # define OPENSSL_ESSERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | /* 20 | * ESS reason codes. 21 | */ 22 | # define ESS_R_EMPTY_ESS_CERT_ID_LIST 107 23 | # define ESS_R_ESS_CERT_DIGEST_ERROR 103 24 | # define ESS_R_ESS_CERT_ID_NOT_FOUND 104 25 | # define ESS_R_ESS_CERT_ID_WRONG_ORDER 105 26 | # define ESS_R_ESS_DIGEST_ALG_UNKNOWN 106 27 | # define ESS_R_ESS_SIGNING_CERTIFICATE_ERROR 102 28 | # define ESS_R_ESS_SIGNING_CERT_ADD_ERROR 100 29 | # define ESS_R_ESS_SIGNING_CERT_V2_ADD_ERROR 101 30 | # define ESS_R_MISSING_SIGNING_CERTIFICATE_ATTRIBUTE 108 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/fips_names.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_FIPS_NAMES_H 11 | # define OPENSSL_FIPS_NAMES_H 12 | # pragma once 13 | 14 | # ifdef __cplusplus 15 | extern "C" { 16 | # endif 17 | 18 | /* 19 | * Parameter names that the FIPS Provider defines 20 | */ 21 | 22 | /* 23 | * The calculated MAC of the module file (Used for FIPS Self Testing) 24 | * Type: OSSL_PARAM_UTF8_STRING 25 | */ 26 | # define OSSL_PROV_FIPS_PARAM_MODULE_MAC "module-mac" 27 | /* 28 | * A version number for the fips install process (Used for FIPS Self Testing) 29 | * Type: OSSL_PARAM_UTF8_STRING 30 | */ 31 | # define OSSL_PROV_FIPS_PARAM_INSTALL_VERSION "install-version" 32 | /* 33 | * The calculated MAC of the install status indicator (Used for FIPS Self Testing) 34 | * Type: OSSL_PARAM_UTF8_STRING 35 | */ 36 | # define OSSL_PROV_FIPS_PARAM_INSTALL_MAC "install-mac" 37 | /* 38 | * The install status indicator (Used for FIPS Self Testing) 39 | * Type: OSSL_PARAM_UTF8_STRING 40 | */ 41 | # define OSSL_PROV_FIPS_PARAM_INSTALL_STATUS "install-status" 42 | 43 | /* 44 | * A boolean that determines if the FIPS conditional test errors result in 45 | * the module entering an error state. 46 | * Type: OSSL_PARAM_UTF8_STRING 47 | */ 48 | # define OSSL_PROV_FIPS_PARAM_CONDITIONAL_ERRORS "conditional-errors" 49 | 50 | /* 51 | * A boolean that determines if the runtime FIPS security checks are performed. 52 | * Type: OSSL_PARAM_UTF8_STRING 53 | */ 54 | # define OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS "security-checks" 55 | 56 | /* 57 | * A boolean that determines if the runtime FIPS check for TLS1_PRF EMS is performed. 58 | * This is disabled by default. 59 | * 60 | * Type: OSSL_PARAM_UTF8_STRING 61 | */ 62 | # define OSSL_PROV_FIPS_PARAM_TLS1_PRF_EMS_CHECK "tls1-prf-ems-check" 63 | 64 | # ifdef __cplusplus 65 | } 66 | # endif 67 | 68 | #endif /* OPENSSL_FIPS_NAMES_H */ 69 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/fipskey.h: -------------------------------------------------------------------------------- 1 | /* 2 | * WARNING: do not edit! 3 | * Generated by Makefile from include/openssl/fipskey.h.in 4 | * 5 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 6 | * 7 | * Licensed under the Apache License 2.0 (the "License"). You may not use 8 | * this file except in compliance with the License. You can obtain a copy 9 | * in the file LICENSE in the source distribution or at 10 | * https://www.openssl.org/source/license.html 11 | */ 12 | 13 | #ifndef OPENSSL_FIPSKEY_H 14 | # define OPENSSL_FIPSKEY_H 15 | # pragma once 16 | 17 | # ifdef __cplusplus 18 | extern "C" { 19 | # endif 20 | 21 | /* 22 | * The FIPS validation HMAC key, usable as an array initializer. 23 | */ 24 | #define FIPS_KEY_ELEMENTS \ 25 | 0xf4, 0x55, 0x66, 0x50, 0xac, 0x31, 0xd3, 0x54, 0x61, 0x61, 0x0b, 0xac, 0x4e, 0xd8, 0x1b, 0x1a, 0x18, 0x1b, 0x2d, 0x8a, 0x43, 0xea, 0x28, 0x54, 0xcb, 0xae, 0x22, 0xca, 0x74, 0x56, 0x08, 0x13 26 | 27 | /* 28 | * The FIPS validation key, as a string. 29 | */ 30 | #define FIPS_KEY_STRING "f4556650ac31d35461610bac4ed81b1a181b2d8a43ea2854cbae22ca74560813" 31 | 32 | # ifdef __cplusplus 33 | } 34 | # endif 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/fipskey.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * {- join("\n * ", @autowarntext) -} 3 | * 4 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 5 | * 6 | * Licensed under the Apache License 2.0 (the "License"). You may not use 7 | * this file except in compliance with the License. You can obtain a copy 8 | * in the file LICENSE in the source distribution or at 9 | * https://www.openssl.org/source/license.html 10 | */ 11 | 12 | #ifndef OPENSSL_FIPSKEY_H 13 | # define OPENSSL_FIPSKEY_H 14 | # pragma once 15 | 16 | # ifdef __cplusplus 17 | extern "C" { 18 | # endif 19 | 20 | /* 21 | * The FIPS validation HMAC key, usable as an array initializer. 22 | */ 23 | #define FIPS_KEY_ELEMENTS \ 24 | {- join(', ', map { "0x$_" } unpack("(A2)*", $config{FIPSKEY})) -} 25 | 26 | /* 27 | * The FIPS validation key, as a string. 28 | */ 29 | #define FIPS_KEY_STRING "{- $config{FIPSKEY} -}" 30 | 31 | # ifdef __cplusplus 32 | } 33 | # endif 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/hmac.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_HMAC_H 11 | # define OPENSSL_HMAC_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_HMAC_H 17 | # endif 18 | 19 | # include 20 | 21 | # include 22 | 23 | # ifndef OPENSSL_NO_DEPRECATED_3_0 24 | # define HMAC_MAX_MD_CBLOCK 200 /* Deprecated */ 25 | # endif 26 | 27 | # ifdef __cplusplus 28 | extern "C" { 29 | # endif 30 | 31 | # ifndef OPENSSL_NO_DEPRECATED_3_0 32 | OSSL_DEPRECATEDIN_3_0 size_t HMAC_size(const HMAC_CTX *e); 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); 34 | OSSL_DEPRECATEDIN_3_0 int HMAC_CTX_reset(HMAC_CTX *ctx); 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); 36 | # endif 37 | # ifndef OPENSSL_NO_DEPRECATED_1_1_0 38 | OSSL_DEPRECATEDIN_1_1_0 __owur int HMAC_Init(HMAC_CTX *ctx, 39 | const void *key, int len, 40 | const EVP_MD *md); 41 | # endif 42 | # ifndef OPENSSL_NO_DEPRECATED_3_0 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, 44 | const EVP_MD *md, ENGINE *impl); 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, 46 | size_t len); 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, 48 | unsigned int *len); 49 | OSSL_DEPRECATEDIN_3_0 __owur int HMAC_CTX_copy(HMAC_CTX *dctx, HMAC_CTX *sctx); 50 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags); 51 | OSSL_DEPRECATEDIN_3_0 const EVP_MD *HMAC_CTX_get_md(const HMAC_CTX *ctx); 52 | # endif 53 | 54 | unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, 55 | const unsigned char *data, size_t data_len, 56 | unsigned char *md, unsigned int *md_len); 57 | 58 | # ifdef __cplusplus 59 | } 60 | # endif 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/kdferr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_KDFERR_H 11 | # define OPENSSL_KDFERR_H 12 | # pragma once 13 | 14 | #include 15 | 16 | #endif /* !defined(OPENSSL_KDFERR_H) */ 17 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/md2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_MD2_H 11 | # define OPENSSL_MD2_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_MD2_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_MD2 22 | # include 23 | # ifdef __cplusplus 24 | extern "C" { 25 | # endif 26 | 27 | # define MD2_DIGEST_LENGTH 16 28 | 29 | # if !defined(OPENSSL_NO_DEPRECATED_3_0) 30 | 31 | typedef unsigned char MD2_INT; 32 | 33 | # define MD2_BLOCK 16 34 | 35 | typedef struct MD2state_st { 36 | unsigned int num; 37 | unsigned char data[MD2_BLOCK]; 38 | MD2_INT cksm[MD2_BLOCK]; 39 | MD2_INT state[MD2_BLOCK]; 40 | } MD2_CTX; 41 | # endif 42 | # ifndef OPENSSL_NO_DEPRECATED_3_0 43 | OSSL_DEPRECATEDIN_3_0 const char *MD2_options(void); 44 | OSSL_DEPRECATEDIN_3_0 int MD2_Init(MD2_CTX *c); 45 | OSSL_DEPRECATEDIN_3_0 int MD2_Update(MD2_CTX *c, const unsigned char *data, 46 | size_t len); 47 | OSSL_DEPRECATEDIN_3_0 int MD2_Final(unsigned char *md, MD2_CTX *c); 48 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD2(const unsigned char *d, size_t n, 49 | unsigned char *md); 50 | # endif 51 | 52 | # ifdef __cplusplus 53 | } 54 | # endif 55 | # endif 56 | #endif 57 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/md4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_MD4_H 11 | # define OPENSSL_MD4_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_MD4_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_MD4 22 | # include 23 | # include 24 | # ifdef __cplusplus 25 | extern "C" { 26 | # endif 27 | 28 | # define MD4_DIGEST_LENGTH 16 29 | 30 | # if !defined(OPENSSL_NO_DEPRECATED_3_0) 31 | 32 | /*- 33 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 34 | * ! MD4_LONG has to be at least 32 bits wide. ! 35 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 36 | */ 37 | # define MD4_LONG unsigned int 38 | 39 | # define MD4_CBLOCK 64 40 | # define MD4_LBLOCK (MD4_CBLOCK/4) 41 | 42 | typedef struct MD4state_st { 43 | MD4_LONG A, B, C, D; 44 | MD4_LONG Nl, Nh; 45 | MD4_LONG data[MD4_LBLOCK]; 46 | unsigned int num; 47 | } MD4_CTX; 48 | # endif 49 | # ifndef OPENSSL_NO_DEPRECATED_3_0 50 | OSSL_DEPRECATEDIN_3_0 int MD4_Init(MD4_CTX *c); 51 | OSSL_DEPRECATEDIN_3_0 int MD4_Update(MD4_CTX *c, const void *data, size_t len); 52 | OSSL_DEPRECATEDIN_3_0 int MD4_Final(unsigned char *md, MD4_CTX *c); 53 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD4(const unsigned char *d, size_t n, 54 | unsigned char *md); 55 | OSSL_DEPRECATEDIN_3_0 void MD4_Transform(MD4_CTX *c, const unsigned char *b); 56 | # endif 57 | 58 | # ifdef __cplusplus 59 | } 60 | # endif 61 | # endif 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_MD5_H 11 | # define OPENSSL_MD5_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_MD5_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_MD5 22 | # include 23 | # include 24 | # ifdef __cplusplus 25 | extern "C" { 26 | # endif 27 | 28 | # define MD5_DIGEST_LENGTH 16 29 | 30 | # if !defined(OPENSSL_NO_DEPRECATED_3_0) 31 | /* 32 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 33 | * ! MD5_LONG has to be at least 32 bits wide. ! 34 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 35 | */ 36 | # define MD5_LONG unsigned int 37 | 38 | # define MD5_CBLOCK 64 39 | # define MD5_LBLOCK (MD5_CBLOCK/4) 40 | 41 | typedef struct MD5state_st { 42 | MD5_LONG A, B, C, D; 43 | MD5_LONG Nl, Nh; 44 | MD5_LONG data[MD5_LBLOCK]; 45 | unsigned int num; 46 | } MD5_CTX; 47 | # endif 48 | # ifndef OPENSSL_NO_DEPRECATED_3_0 49 | OSSL_DEPRECATEDIN_3_0 int MD5_Init(MD5_CTX *c); 50 | OSSL_DEPRECATEDIN_3_0 int MD5_Update(MD5_CTX *c, const void *data, size_t len); 51 | OSSL_DEPRECATEDIN_3_0 int MD5_Final(unsigned char *md, MD5_CTX *c); 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, 53 | unsigned char *md); 54 | OSSL_DEPRECATEDIN_3_0 void MD5_Transform(MD5_CTX *c, const unsigned char *b); 55 | # endif 56 | 57 | # ifdef __cplusplus 58 | } 59 | # endif 60 | # endif 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/mdc2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_MDC2_H 11 | # define OPENSSL_MDC2_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_MDC2_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_MDC2 22 | # include 23 | # include 24 | # ifdef __cplusplus 25 | extern "C" { 26 | # endif 27 | 28 | # define MDC2_DIGEST_LENGTH 16 29 | 30 | # if !defined(OPENSSL_NO_DEPRECATED_3_0) 31 | 32 | # define MDC2_BLOCK 8 33 | 34 | typedef struct mdc2_ctx_st { 35 | unsigned int num; 36 | unsigned char data[MDC2_BLOCK]; 37 | DES_cblock h, hh; 38 | unsigned int pad_type; /* either 1 or 2, default 1 */ 39 | } MDC2_CTX; 40 | # endif 41 | # ifndef OPENSSL_NO_DEPRECATED_3_0 42 | OSSL_DEPRECATEDIN_3_0 int MDC2_Init(MDC2_CTX *c); 43 | OSSL_DEPRECATEDIN_3_0 int MDC2_Update(MDC2_CTX *c, const unsigned char *data, 44 | size_t len); 45 | OSSL_DEPRECATEDIN_3_0 int MDC2_Final(unsigned char *md, MDC2_CTX *c); 46 | OSSL_DEPRECATEDIN_3_0 unsigned char *MDC2(const unsigned char *d, size_t n, 47 | unsigned char *md); 48 | # endif 49 | 50 | # ifdef __cplusplus 51 | } 52 | # endif 53 | # endif 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/objectserr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_OBJECTSERR_H 12 | # define OPENSSL_OBJECTSERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * OBJ reason codes. 23 | */ 24 | # define OBJ_R_OID_EXISTS 102 25 | # define OBJ_R_UNKNOWN_NID 101 26 | # define OBJ_R_UNKNOWN_OBJECT_NAME 103 27 | 28 | #endif 29 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/ocsperr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_OCSPERR_H 12 | # define OPENSSL_OCSPERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | # ifndef OPENSSL_NO_OCSP 21 | 22 | 23 | /* 24 | * OCSP reason codes. 25 | */ 26 | # define OCSP_R_CERTIFICATE_VERIFY_ERROR 101 27 | # define OCSP_R_DIGEST_ERR 102 28 | # define OCSP_R_DIGEST_NAME_ERR 106 29 | # define OCSP_R_DIGEST_SIZE_ERR 107 30 | # define OCSP_R_ERROR_IN_NEXTUPDATE_FIELD 122 31 | # define OCSP_R_ERROR_IN_THISUPDATE_FIELD 123 32 | # define OCSP_R_MISSING_OCSPSIGNING_USAGE 103 33 | # define OCSP_R_NEXTUPDATE_BEFORE_THISUPDATE 124 34 | # define OCSP_R_NOT_BASIC_RESPONSE 104 35 | # define OCSP_R_NO_CERTIFICATES_IN_CHAIN 105 36 | # define OCSP_R_NO_RESPONSE_DATA 108 37 | # define OCSP_R_NO_REVOKED_TIME 109 38 | # define OCSP_R_NO_SIGNER_KEY 130 39 | # define OCSP_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 110 40 | # define OCSP_R_REQUEST_NOT_SIGNED 128 41 | # define OCSP_R_RESPONSE_CONTAINS_NO_REVOCATION_DATA 111 42 | # define OCSP_R_ROOT_CA_NOT_TRUSTED 112 43 | # define OCSP_R_SIGNATURE_FAILURE 117 44 | # define OCSP_R_SIGNER_CERTIFICATE_NOT_FOUND 118 45 | # define OCSP_R_STATUS_EXPIRED 125 46 | # define OCSP_R_STATUS_NOT_YET_VALID 126 47 | # define OCSP_R_STATUS_TOO_OLD 127 48 | # define OCSP_R_UNKNOWN_MESSAGE_DIGEST 119 49 | # define OCSP_R_UNKNOWN_NID 120 50 | # define OCSP_R_UNSUPPORTED_REQUESTORNAME_TYPE 129 51 | 52 | # endif 53 | #endif 54 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/opensslconf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_OPENSSLCONF_H 11 | # define OPENSSL_OPENSSLCONF_H 12 | # pragma once 13 | 14 | # include 15 | # include 16 | 17 | #endif /* OPENSSL_OPENSSLCONF_H */ 18 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/ossl_typ.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | /* 11 | * The original was renamed to 12 | * 13 | * This header file only exists for compatibility reasons with older 14 | * applications which #include . 15 | */ 16 | # include 17 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/pem2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2018 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_PEM2_H 11 | # define OPENSSL_PEM2_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_PEM2_H 17 | # endif 18 | # include 19 | #endif 20 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/pkcs12err.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_PKCS12ERR_H 12 | # define OPENSSL_PKCS12ERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * PKCS12 reason codes. 23 | */ 24 | # define PKCS12_R_CALLBACK_FAILED 115 25 | # define PKCS12_R_CANT_PACK_STRUCTURE 100 26 | # define PKCS12_R_CONTENT_TYPE_NOT_DATA 121 27 | # define PKCS12_R_DECODE_ERROR 101 28 | # define PKCS12_R_ENCODE_ERROR 102 29 | # define PKCS12_R_ENCRYPT_ERROR 103 30 | # define PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE 120 31 | # define PKCS12_R_INVALID_NULL_ARGUMENT 104 32 | # define PKCS12_R_INVALID_NULL_PKCS12_POINTER 105 33 | # define PKCS12_R_INVALID_TYPE 112 34 | # define PKCS12_R_IV_GEN_ERROR 106 35 | # define PKCS12_R_KEY_GEN_ERROR 107 36 | # define PKCS12_R_MAC_ABSENT 108 37 | # define PKCS12_R_MAC_GENERATION_ERROR 109 38 | # define PKCS12_R_MAC_SETUP_ERROR 110 39 | # define PKCS12_R_MAC_STRING_SET_ERROR 111 40 | # define PKCS12_R_MAC_VERIFY_FAILURE 113 41 | # define PKCS12_R_PARSE_ERROR 114 42 | # define PKCS12_R_PKCS12_CIPHERFINAL_ERROR 116 43 | # define PKCS12_R_UNKNOWN_DIGEST_ALGORITHM 118 44 | # define PKCS12_R_UNSUPPORTED_PKCS12_MODE 119 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/prov_ssl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_PROV_SSL_H 11 | # define OPENSSL_PROV_SSL_H 12 | # pragma once 13 | 14 | # ifdef __cplusplus 15 | extern "C" { 16 | # endif 17 | 18 | /* SSL/TLS related defines useful to providers */ 19 | 20 | # define SSL_MAX_MASTER_KEY_LENGTH 48 21 | 22 | # define SSL3_VERSION 0x0300 23 | # define TLS1_VERSION 0x0301 24 | # define TLS1_1_VERSION 0x0302 25 | # define TLS1_2_VERSION 0x0303 26 | # define TLS1_3_VERSION 0x0304 27 | # define DTLS1_VERSION 0xFEFF 28 | # define DTLS1_2_VERSION 0xFEFD 29 | # define DTLS1_BAD_VER 0x0100 30 | 31 | # ifdef __cplusplus 32 | } 33 | # endif 34 | #endif /* OPENSSL_PROV_SSL_H */ 35 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/quic.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_QUIC_H 11 | # define OPENSSL_QUIC_H 12 | # pragma once 13 | 14 | # include 15 | # include 16 | 17 | # ifndef OPENSSL_NO_QUIC 18 | 19 | # ifdef __cplusplus 20 | extern "C" { 21 | # endif 22 | 23 | /* 24 | * Method used for non-thread-assisted QUIC client operation. 25 | */ 26 | __owur const SSL_METHOD *OSSL_QUIC_client_method(void); 27 | /* 28 | * Method used for thread-assisted QUIC client operation. 29 | */ 30 | __owur const SSL_METHOD *OSSL_QUIC_client_thread_method(void); 31 | /* 32 | * This method does not implement full server operation, 33 | * is used for testing, and is subject to change in later 34 | * releases. 35 | */ 36 | __owur const SSL_METHOD *OSSL_QUIC_server_method(void); 37 | 38 | # ifdef __cplusplus 39 | } 40 | # endif 41 | 42 | # endif /* OPENSSL_NO_QUIC */ 43 | #endif 44 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/rc4.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_RC4_H 11 | # define OPENSSL_RC4_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_RC4_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_RC4 22 | # include 23 | # ifdef __cplusplus 24 | extern "C" { 25 | # endif 26 | 27 | # ifndef OPENSSL_NO_DEPRECATED_3_0 28 | typedef struct rc4_key_st { 29 | RC4_INT x, y; 30 | RC4_INT data[256]; 31 | } RC4_KEY; 32 | # endif 33 | # ifndef OPENSSL_NO_DEPRECATED_3_0 34 | OSSL_DEPRECATEDIN_3_0 const char *RC4_options(void); 35 | OSSL_DEPRECATEDIN_3_0 void RC4_set_key(RC4_KEY *key, int len, 36 | const unsigned char *data); 37 | OSSL_DEPRECATEDIN_3_0 void RC4(RC4_KEY *key, size_t len, 38 | const unsigned char *indata, 39 | unsigned char *outdata); 40 | # endif 41 | 42 | # ifdef __cplusplus 43 | } 44 | # endif 45 | # endif 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/ripemd.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_RIPEMD_H 11 | # define OPENSSL_RIPEMD_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_RIPEMD_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_RMD160 22 | # include 23 | # include 24 | 25 | # define RIPEMD160_DIGEST_LENGTH 20 26 | 27 | # ifdef __cplusplus 28 | extern "C" { 29 | # endif 30 | # if !defined(OPENSSL_NO_DEPRECATED_3_0) 31 | 32 | # define RIPEMD160_LONG unsigned int 33 | 34 | # define RIPEMD160_CBLOCK 64 35 | # define RIPEMD160_LBLOCK (RIPEMD160_CBLOCK/4) 36 | 37 | typedef struct RIPEMD160state_st { 38 | RIPEMD160_LONG A, B, C, D, E; 39 | RIPEMD160_LONG Nl, Nh; 40 | RIPEMD160_LONG data[RIPEMD160_LBLOCK]; 41 | unsigned int num; 42 | } RIPEMD160_CTX; 43 | # endif 44 | # ifndef OPENSSL_NO_DEPRECATED_3_0 45 | OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Init(RIPEMD160_CTX *c); 46 | OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, 47 | size_t len); 48 | OSSL_DEPRECATEDIN_3_0 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); 49 | OSSL_DEPRECATEDIN_3_0 unsigned char *RIPEMD160(const unsigned char *d, size_t n, 50 | unsigned char *md); 51 | OSSL_DEPRECATEDIN_3_0 void RIPEMD160_Transform(RIPEMD160_CTX *c, 52 | const unsigned char *b); 53 | # endif 54 | 55 | # ifdef __cplusplus 56 | } 57 | # endif 58 | # endif 59 | #endif 60 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/ssl2.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_SSL2_H 11 | # define OPENSSL_SSL2_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_SSL2_H 17 | # endif 18 | 19 | #ifdef __cplusplus 20 | extern "C" { 21 | #endif 22 | 23 | # define SSL2_VERSION 0x0002 24 | 25 | # define SSL2_MT_CLIENT_HELLO 1 26 | 27 | #ifdef __cplusplus 28 | } 29 | #endif 30 | #endif 31 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/storeerr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_STOREERR_H 12 | # define OPENSSL_STOREERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * OSSL_STORE reason codes. 23 | */ 24 | # define OSSL_STORE_R_AMBIGUOUS_CONTENT_TYPE 107 25 | # define OSSL_STORE_R_BAD_PASSWORD_READ 115 26 | # define OSSL_STORE_R_ERROR_VERIFYING_PKCS12_MAC 113 27 | # define OSSL_STORE_R_FINGERPRINT_SIZE_DOES_NOT_MATCH_DIGEST 121 28 | # define OSSL_STORE_R_INVALID_SCHEME 106 29 | # define OSSL_STORE_R_IS_NOT_A 112 30 | # define OSSL_STORE_R_LOADER_INCOMPLETE 116 31 | # define OSSL_STORE_R_LOADING_STARTED 117 32 | # define OSSL_STORE_R_NOT_A_CERTIFICATE 100 33 | # define OSSL_STORE_R_NOT_A_CRL 101 34 | # define OSSL_STORE_R_NOT_A_NAME 103 35 | # define OSSL_STORE_R_NOT_A_PRIVATE_KEY 102 36 | # define OSSL_STORE_R_NOT_A_PUBLIC_KEY 122 37 | # define OSSL_STORE_R_NOT_PARAMETERS 104 38 | # define OSSL_STORE_R_NO_LOADERS_FOUND 123 39 | # define OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR 114 40 | # define OSSL_STORE_R_PATH_MUST_BE_ABSOLUTE 108 41 | # define OSSL_STORE_R_SEARCH_ONLY_SUPPORTED_FOR_DIRECTORIES 119 42 | # define OSSL_STORE_R_UI_PROCESS_INTERRUPTED_OR_CANCELLED 109 43 | # define OSSL_STORE_R_UNREGISTERED_SCHEME 105 44 | # define OSSL_STORE_R_UNSUPPORTED_CONTENT_TYPE 110 45 | # define OSSL_STORE_R_UNSUPPORTED_OPERATION 118 46 | # define OSSL_STORE_R_UNSUPPORTED_SEARCH_TYPE 120 47 | # define OSSL_STORE_R_URI_AUTHORITY_UNSUPPORTED 111 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/symhacks.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1999-2021 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_SYMHACKS_H 11 | # define OPENSSL_SYMHACKS_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_SYMHACKS_H 17 | # endif 18 | 19 | # include 20 | 21 | /* Case insensitive linking causes problems.... */ 22 | # if defined(OPENSSL_SYS_VMS) 23 | # undef ERR_load_CRYPTO_strings 24 | # define ERR_load_CRYPTO_strings ERR_load_CRYPTOlib_strings 25 | # undef OCSP_crlID_new 26 | # define OCSP_crlID_new OCSP_crlID2_new 27 | 28 | # undef d2i_ECPARAMETERS 29 | # define d2i_ECPARAMETERS d2i_UC_ECPARAMETERS 30 | # undef i2d_ECPARAMETERS 31 | # define i2d_ECPARAMETERS i2d_UC_ECPARAMETERS 32 | # undef d2i_ECPKPARAMETERS 33 | # define d2i_ECPKPARAMETERS d2i_UC_ECPKPARAMETERS 34 | # undef i2d_ECPKPARAMETERS 35 | # define i2d_ECPKPARAMETERS i2d_UC_ECPKPARAMETERS 36 | 37 | # endif 38 | 39 | #endif /* ! defined HEADER_VMS_IDHACKS_H */ 40 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/thread.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. 3 | * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_THREAD_H 12 | # define OPENSSL_THREAD_H 13 | 14 | # define OSSL_THREAD_SUPPORT_FLAG_THREAD_POOL (1U<<0) 15 | # define OSSL_THREAD_SUPPORT_FLAG_DEFAULT_SPAWN (1U<<1) 16 | 17 | # include 18 | 19 | uint32_t OSSL_get_thread_support_flags(void); 20 | int OSSL_set_max_threads(OSSL_LIB_CTX *ctx, uint64_t max_threads); 21 | uint64_t OSSL_get_max_threads(OSSL_LIB_CTX *ctx); 22 | 23 | #endif /* OPENSSL_THREAD_H */ 24 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/txt_db.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_TXT_DB_H 11 | # define OPENSSL_TXT_DB_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_TXT_DB_H 17 | # endif 18 | 19 | # include 20 | # include 21 | # include 22 | # include 23 | 24 | # define DB_ERROR_OK 0 25 | # define DB_ERROR_MALLOC 1 26 | # define DB_ERROR_INDEX_CLASH 2 27 | # define DB_ERROR_INDEX_OUT_OF_RANGE 3 28 | # define DB_ERROR_NO_INDEX 4 29 | # define DB_ERROR_INSERT_INDEX_CLASH 5 30 | # define DB_ERROR_WRONG_NUM_FIELDS 6 31 | 32 | #ifdef __cplusplus 33 | extern "C" { 34 | #endif 35 | 36 | typedef OPENSSL_STRING *OPENSSL_PSTRING; 37 | DEFINE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING) 38 | 39 | typedef struct txt_db_st { 40 | int num_fields; 41 | STACK_OF(OPENSSL_PSTRING) *data; 42 | LHASH_OF(OPENSSL_STRING) **index; 43 | int (**qual) (OPENSSL_STRING *); 44 | long error; 45 | long arg1; 46 | long arg2; 47 | OPENSSL_STRING *arg_row; 48 | } TXT_DB; 49 | 50 | TXT_DB *TXT_DB_read(BIO *in, int num); 51 | long TXT_DB_write(BIO *out, TXT_DB *db); 52 | int TXT_DB_create_index(TXT_DB *db, int field, int (*qual) (OPENSSL_STRING *), 53 | OPENSSL_LH_HASHFUNC hash, OPENSSL_LH_COMPFUNC cmp); 54 | void TXT_DB_free(TXT_DB *db); 55 | OPENSSL_STRING *TXT_DB_get_by_index(TXT_DB *db, int idx, 56 | OPENSSL_STRING *value); 57 | int TXT_DB_insert(TXT_DB *db, OPENSSL_STRING *value); 58 | 59 | #ifdef __cplusplus 60 | } 61 | #endif 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/uierr.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Generated by util/mkerr.pl DO NOT EDIT 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. 4 | * 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use 6 | * this file except in compliance with the License. You can obtain a copy 7 | * in the file LICENSE in the source distribution or at 8 | * https://www.openssl.org/source/license.html 9 | */ 10 | 11 | #ifndef OPENSSL_UIERR_H 12 | # define OPENSSL_UIERR_H 13 | # pragma once 14 | 15 | # include 16 | # include 17 | # include 18 | 19 | 20 | 21 | /* 22 | * UI reason codes. 23 | */ 24 | # define UI_R_COMMON_OK_AND_CANCEL_CHARACTERS 104 25 | # define UI_R_INDEX_TOO_LARGE 102 26 | # define UI_R_INDEX_TOO_SMALL 103 27 | # define UI_R_NO_RESULT_BUFFER 105 28 | # define UI_R_PROCESSING_ERROR 107 29 | # define UI_R_RESULT_TOO_LARGE 100 30 | # define UI_R_RESULT_TOO_SMALL 101 31 | # define UI_R_SYSASSIGN_ERROR 109 32 | # define UI_R_SYSDASSGN_ERROR 110 33 | # define UI_R_SYSQIOW_ERROR 111 34 | # define UI_R_UNKNOWN_CONTROL_COMMAND 106 35 | # define UI_R_UNKNOWN_TTYGET_ERRNO_VALUE 108 36 | # define UI_R_USER_DATA_DUPLICATION_UNSUPPORTED 112 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /app/src/main/jni/openssl/openssl/whrlpool.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2005-2020 The OpenSSL Project Authors. All Rights Reserved. 3 | * 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use 5 | * this file except in compliance with the License. You can obtain a copy 6 | * in the file LICENSE in the source distribution or at 7 | * https://www.openssl.org/source/license.html 8 | */ 9 | 10 | #ifndef OPENSSL_WHRLPOOL_H 11 | # define OPENSSL_WHRLPOOL_H 12 | # pragma once 13 | 14 | # include 15 | # ifndef OPENSSL_NO_DEPRECATED_3_0 16 | # define HEADER_WHRLPOOL_H 17 | # endif 18 | 19 | # include 20 | 21 | # ifndef OPENSSL_NO_WHIRLPOOL 22 | # include 23 | # include 24 | # ifdef __cplusplus 25 | extern "C" { 26 | # endif 27 | 28 | # define WHIRLPOOL_DIGEST_LENGTH (512/8) 29 | 30 | # if !defined(OPENSSL_NO_DEPRECATED_3_0) 31 | 32 | # define WHIRLPOOL_BBLOCK 512 33 | # define WHIRLPOOL_COUNTER (256/8) 34 | 35 | typedef struct { 36 | union { 37 | unsigned char c[WHIRLPOOL_DIGEST_LENGTH]; 38 | /* double q is here to ensure 64-bit alignment */ 39 | double q[WHIRLPOOL_DIGEST_LENGTH / sizeof(double)]; 40 | } H; 41 | unsigned char data[WHIRLPOOL_BBLOCK / 8]; 42 | unsigned int bitoff; 43 | size_t bitlen[WHIRLPOOL_COUNTER / sizeof(size_t)]; 44 | } WHIRLPOOL_CTX; 45 | # endif 46 | # ifndef OPENSSL_NO_DEPRECATED_3_0 47 | OSSL_DEPRECATEDIN_3_0 int WHIRLPOOL_Init(WHIRLPOOL_CTX *c); 48 | OSSL_DEPRECATEDIN_3_0 int WHIRLPOOL_Update(WHIRLPOOL_CTX *c, 49 | const void *inp, size_t bytes); 50 | OSSL_DEPRECATEDIN_3_0 void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c, 51 | const void *inp, size_t bits); 52 | OSSL_DEPRECATEDIN_3_0 int WHIRLPOOL_Final(unsigned char *md, WHIRLPOOL_CTX *c); 53 | OSSL_DEPRECATEDIN_3_0 unsigned char *WHIRLPOOL(const void *inp, size_t bytes, 54 | unsigned char *md); 55 | # endif 56 | 57 | # ifdef __cplusplus 58 | } 59 | # endif 60 | # endif 61 | 62 | #endif 63 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/EasyAuthorize/TgPlus/a4c66b4505e53a6ab0ef0442b5042fe577312daf/app/src/main/res/drawable/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/AuthScope.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | org.telegram.messenger 6 | 7 | org.telegram.messenger.web 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #6200EE 4 | #3700B3 5 | #03DAC5 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/ids.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | TG++ 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 5 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.build_gradle_version = '7.0.2' 3 | 4 | repositories { 5 | maven { url 'https://maven.aliyun.com/repository/public/' } 6 | maven { url 'https://maven.aliyun.com/repository/google/' } 7 | maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' } 8 | maven { url 'https://dl.bintray.com/ppartisan/maven/' } 9 | maven { url "https://clojars.org/repo/" } 10 | maven { url "https://jitpack.io" } 11 | google() 12 | mavenLocal() 13 | mavenCentral() 14 | } 15 | dependencies { 16 | classpath "com.android.tools.build:gradle:$build_gradle_version" 17 | 18 | } 19 | 20 | } 21 | allprojects { 22 | repositories { 23 | maven { url 'https://maven.aliyun.com/repository/public/' } 24 | maven { url 'https://maven.aliyun.com/repository/google/' } 25 | maven { url 'https://maven.aliyun.com/repository/gradle-plugin/' } 26 | maven { url 'https://dl.bintray.com/ppartisan/maven/' } 27 | maven { url "https://clojars.org/repo/" } 28 | maven { url "https://jitpack.io" } 29 | mavenLocal() 30 | mavenCentral() 31 | google() 32 | } 33 | 34 | 35 | 36 | 37 | } 38 | 39 | task clean(type: Delete) { 40 | delete rootProject.buildDir 41 | } 42 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | # IDE (e.g. Android Studio) users: 3 | # Gradle settings configured through the IDE *will override* 4 | # any settings specified in this file. 5 | # For more details on how to configure your build environment visit 6 | # http://www.gradle.org/docs/current/userguide/build_environment.html 7 | # Specifies the JVM arguments used for the daemon process. 8 | # The setting is particularly useful for tweaking memory settings. 9 | org.gradle.jvmargs=-Xmx2048m 10 | # When configured, Gradle will run in incubating parallel mode. 11 | # This option should only be used with decoupled projects. More details, visit 12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 13 | # org.gradle.parallel=true 14 | # AndroidX package structure to make it clearer which packages are bundled with the 15 | # Android operating system, and which are packaged with your app"s APK 16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn 17 | android.useAndroidX=false 18 | # Automatically convert third-party libraries to use AndroidX 19 | android.enableJetifier=false 20 | -------------------------------------------------------------------------------- /local.properties: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file should *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #sdk.dir= -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | rootProject.name = "TG++" 3 | --------------------------------------------------------------------------------