Browse Source

v1.0.0开发:native层aes和rsa加密解密开发

maijinpei 3 years ago
parent
commit
b09c4bb246
100 changed files with 147 additions and 24 deletions
  1. 1 1
      build.gradle
  2. 17 0
      demo/src/main/java/com/yyxx/columbus/demo/DemoActivity.kt
  3. 3 3
      demo/src/main/java/com/yyxx/columbus/demo/DemoApplication.kt
  4. BIN
      demo/src/main/res/mipmap-xhdpi/ic_launcher.jpg
  5. BIN
      demo/src/main/res/mipmap-xhdpi/ic_launcher.png
  6. 26 0
      library_base/src/main/java/cn/yyxx/columbus/base/Columbus.kt
  7. 4 2
      library_base/src/main/java/cn/yyxx/columbus/base/ColumbusApplication.kt
  8. 8 0
      library_base/src/main/java/cn/yyxx/columbus/base/SdkBridgeManager.kt
  9. 10 0
      library_base/src/main/java/cn/yyxx/columbus/base/internal/ICallback.kt
  10. 5 1
      library_core/CMakeLists.txt
  11. 1 1
      library_core/build.gradle
  12. 1 1
      library_core/src/main/cpp/aes.cpp
  13. 1 1
      library_core/src/main/cpp/aes_utils.cpp
  14. 30 6
      library_core/src/main/cpp/columbus.cpp
  15. 0 1
      library_core/src/main/cpp/include/aes/aes.h
  16. 0 3
      library_core/src/main/cpp/include/aes/aes_utils.h
  17. 36 0
      library_core/src/main/cpp/include/rsa/rsa_utils.h
  18. 0 0
      library_core/src/main/cpp/include/third_part/openssl/aes.h
  19. 0 0
      library_core/src/main/cpp/include/third_part/openssl/asn1.h
  20. 0 0
      library_core/src/main/cpp/include/third_part/openssl/asn1_mac.h
  21. 0 0
      library_core/src/main/cpp/include/third_part/openssl/asn1err.h
  22. 0 0
      library_core/src/main/cpp/include/third_part/openssl/asn1t.h
  23. 0 0
      library_core/src/main/cpp/include/third_part/openssl/async.h
  24. 0 0
      library_core/src/main/cpp/include/third_part/openssl/asyncerr.h
  25. 0 0
      library_core/src/main/cpp/include/third_part/openssl/bio.h
  26. 0 0
      library_core/src/main/cpp/include/third_part/openssl/bioerr.h
  27. 0 0
      library_core/src/main/cpp/include/third_part/openssl/blowfish.h
  28. 0 0
      library_core/src/main/cpp/include/third_part/openssl/bn.h
  29. 0 0
      library_core/src/main/cpp/include/third_part/openssl/bnerr.h
  30. 0 0
      library_core/src/main/cpp/include/third_part/openssl/buffer.h
  31. 0 0
      library_core/src/main/cpp/include/third_part/openssl/buffererr.h
  32. 0 0
      library_core/src/main/cpp/include/third_part/openssl/camellia.h
  33. 0 0
      library_core/src/main/cpp/include/third_part/openssl/cast.h
  34. 0 0
      library_core/src/main/cpp/include/third_part/openssl/cmac.h
  35. 0 0
      library_core/src/main/cpp/include/third_part/openssl/cms.h
  36. 0 0
      library_core/src/main/cpp/include/third_part/openssl/cmserr.h
  37. 0 0
      library_core/src/main/cpp/include/third_part/openssl/comp.h
  38. 0 0
      library_core/src/main/cpp/include/third_part/openssl/comperr.h
  39. 0 0
      library_core/src/main/cpp/include/third_part/openssl/conf.h
  40. 0 0
      library_core/src/main/cpp/include/third_part/openssl/conf_api.h
  41. 0 0
      library_core/src/main/cpp/include/third_part/openssl/conferr.h
  42. 0 0
      library_core/src/main/cpp/include/third_part/openssl/crypto.h
  43. 0 0
      library_core/src/main/cpp/include/third_part/openssl/cryptoerr.h
  44. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ct.h
  45. 0 0
      library_core/src/main/cpp/include/third_part/openssl/cterr.h
  46. 0 0
      library_core/src/main/cpp/include/third_part/openssl/des.h
  47. 0 0
      library_core/src/main/cpp/include/third_part/openssl/dh.h
  48. 0 0
      library_core/src/main/cpp/include/third_part/openssl/dherr.h
  49. 0 0
      library_core/src/main/cpp/include/third_part/openssl/dsa.h
  50. 0 0
      library_core/src/main/cpp/include/third_part/openssl/dsaerr.h
  51. 0 0
      library_core/src/main/cpp/include/third_part/openssl/dtls1.h
  52. 0 0
      library_core/src/main/cpp/include/third_part/openssl/e_os2.h
  53. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ebcdic.h
  54. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ec.h
  55. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ecdh.h
  56. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ecdsa.h
  57. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ecerr.h
  58. 0 0
      library_core/src/main/cpp/include/third_part/openssl/engine.h
  59. 0 0
      library_core/src/main/cpp/include/third_part/openssl/engineerr.h
  60. 0 0
      library_core/src/main/cpp/include/third_part/openssl/err.h
  61. 0 0
      library_core/src/main/cpp/include/third_part/openssl/evp.h
  62. 0 0
      library_core/src/main/cpp/include/third_part/openssl/evperr.h
  63. 0 0
      library_core/src/main/cpp/include/third_part/openssl/hmac.h
  64. 0 0
      library_core/src/main/cpp/include/third_part/openssl/idea.h
  65. 0 0
      library_core/src/main/cpp/include/third_part/openssl/kdf.h
  66. 0 0
      library_core/src/main/cpp/include/third_part/openssl/kdferr.h
  67. 0 0
      library_core/src/main/cpp/include/third_part/openssl/lhash.h
  68. 0 0
      library_core/src/main/cpp/include/third_part/openssl/md2.h
  69. 0 0
      library_core/src/main/cpp/include/third_part/openssl/md4.h
  70. 0 0
      library_core/src/main/cpp/include/third_part/openssl/md5.h
  71. 0 0
      library_core/src/main/cpp/include/third_part/openssl/mdc2.h
  72. 0 0
      library_core/src/main/cpp/include/third_part/openssl/modes.h
  73. 4 4
      library_core/src/main/cpp/include/third_part/openssl/obj_mac.h
  74. 0 0
      library_core/src/main/cpp/include/third_part/openssl/objects.h
  75. 0 0
      library_core/src/main/cpp/include/third_part/openssl/objectserr.h
  76. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ocsp.h
  77. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ocsperr.h
  78. 0 0
      library_core/src/main/cpp/include/third_part/openssl/opensslconf.h
  79. 0 0
      library_core/src/main/cpp/include/third_part/openssl/opensslv.h
  80. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ossl_typ.h
  81. 0 0
      library_core/src/main/cpp/include/third_part/openssl/pem.h
  82. 0 0
      library_core/src/main/cpp/include/third_part/openssl/pem2.h
  83. 0 0
      library_core/src/main/cpp/include/third_part/openssl/pemerr.h
  84. 0 0
      library_core/src/main/cpp/include/third_part/openssl/pkcs12.h
  85. 0 0
      library_core/src/main/cpp/include/third_part/openssl/pkcs12err.h
  86. 0 0
      library_core/src/main/cpp/include/third_part/openssl/pkcs7.h
  87. 0 0
      library_core/src/main/cpp/include/third_part/openssl/pkcs7err.h
  88. 0 0
      library_core/src/main/cpp/include/third_part/openssl/rand.h
  89. 0 0
      library_core/src/main/cpp/include/third_part/openssl/rand_drbg.h
  90. 0 0
      library_core/src/main/cpp/include/third_part/openssl/randerr.h
  91. 0 0
      library_core/src/main/cpp/include/third_part/openssl/rc2.h
  92. 0 0
      library_core/src/main/cpp/include/third_part/openssl/rc4.h
  93. 0 0
      library_core/src/main/cpp/include/third_part/openssl/rc5.h
  94. 0 0
      library_core/src/main/cpp/include/third_part/openssl/ripemd.h
  95. 0 0
      library_core/src/main/cpp/include/third_part/openssl/rsa.h
  96. 0 0
      library_core/src/main/cpp/include/third_part/openssl/rsaerr.h
  97. 0 0
      library_core/src/main/cpp/include/third_part/openssl/safestack.h
  98. 0 0
      library_core/src/main/cpp/include/third_part/openssl/seed.h
  99. 0 0
      library_core/src/main/cpp/include/third_part/openssl/sha.h
  100. 0 0
      library_core/src/main/cpp/include/third_part/openssl/srp.h

+ 1 - 1
build.gradle

@@ -12,7 +12,7 @@ buildscript {
     // buildToolsVersion
     ext.BUILD_TOOLS_VERSION = '30.0.3'
     // minSdkVersion
-    ext.MIN_SDK_VERSION = 16
+    ext.MIN_SDK_VERSION = 21
     // targetSdkVersion
     ext.TARGET_SDK_VERSION = 30
 

+ 17 - 0
demo/src/main/java/com/yyxx/columbus/demo/DemoActivity.kt

@@ -96,6 +96,23 @@ class DemoActivity : Activity(), View.OnClickListener {
                     val src2 = SdkDrive.aesDecrypt(src, key)
                     Logger.d(src2)
                 }
+                3 -> {
+                    val src = "qtfc2jsgqrz81inn"
+                    val raw = SdkDrive.rsaEncrypt(src)
+                    Logger.d("raw : $raw")
+                }
+                4 -> {
+                    val raw =
+                        "ItBGaPY+GvPqtWg/BVVt6GQuhRI7NF8LC9qxl+0R2+5plJ2V5HBXOol8OSEMWttzRV/pbPaOYMoVjma67Js5LEe2RrL/vc84w2updiMHqAIjtMu6rXmIs1zHlCeXf1uaW8SGuKsM9Xn1OQ6GundkbinIOSVefn+Z/MkHeu446xU="
+                    val src = SdkDrive.rsaDecrypt(raw)
+                    Logger.d("src : $src")
+                }
+//                5 -> {
+//                    val raw =
+//                        "eyJiYWxhbmNlIjoiNjAwIiwiY29tbW9uIjp7ImJpeiI6eyJnYW1lX2NvZGUiOiJ0ZXN0Y29kZTEyMzQ1NiIsInBhY2thZ2VfbmFtZSI6ImNvbS5mbHlmdW4uZGVtbyJ9LCJkZXZpY2UiOnsiYWRpZCI6IjkwMmM5NWJjZDMzZjdhODMiLCJhbmRyb2lkX2lkIjoiOTAyYzk1YmNkMzNmN2E4MyIsImRldmljZV9pZCI6IjkwMmM5NWJjZDMzZjdhODMiLCJpZGZhIjoiIiwiaWRmdiI6IiIsImltZWkiOiIwIiwibG9jYWxfbGFuZ3VhZ2UiOiJDTiIsIm1hYyI6IjAyOjAwOjAwOjAwOjAwOjAwIiwibWZycyI6IkhVQVdFSSIsIm1vYmlsZV9icmFuZCI6IkhVQVdFSSIsIm1vZGVsIjoiQU5HLUFOMDAiLCJuZXR3b3JrIjoiMCIsIm9zIjoiYW5kcm9pZCIsIm9zX3ZlcnNpb24iOiIxMCIsInNjcmVlbiI6IjEwODB4MjM0MCIsInNpbXVsYXRvciI6IjAifSwiZXh0IjoiIiwidmVycyI6eyJjbGllbnRfdmVyc2lvbiI6IjEuMS43IiwiZ2FtZV92ZXJzaW9uX2NvZGUiOiIxMDQiLCJnYW1lX3ZlcnNpb25fbmFtZSI6IjEuMC40Iiwic2VydmVyX3ZlcnNpb24iOiIxLjAuMCJ9fSwicm9sZV9pZCI6ImFhYTE2MjMzMTgyODM4NzIiLCJyb2xlX2xldmVsIjoiMTEwIiwicm9sZV9uYW1lIjoi6KeS6Imy5ZCNMTIzIiwic2VydmVyX2NvZGUiOiIzMzMiLCJzZXJ2ZXJfbmFtZSI6IuacjeWKoeWZqOWQjTMzMyIsInVzZXJfaWQiOiI5MjA0MDQyODQ5NDcxMzI0MTYiLCJ2aXBfbGV2ZWwiOiIxIn0K"
+//                    val src = SdkDrive.base64Decode(raw)
+//                    Logger.d("src : $src")
+//                }
             }
         }
     }

+ 3 - 3
demo/src/main/java/com/yyxx/columbus/demo/DemoApplication.kt

@@ -1,15 +1,15 @@
 package com.yyxx.columbus.demo
 
-import android.app.Application
 import android.content.Context
+import cn.yyxx.columbus.base.ColumbusApplication
 
 /**
  * @author #Suyghur.
  * Created on 2021/06/09
  */
-class DemoApplication : Application() {
+class DemoApplication : ColumbusApplication() {
 
-    override fun attachBaseContext(base: Context?) {
+    override fun attachBaseContext(base: Context) {
         super.attachBaseContext(base)
     }
 

BIN
demo/src/main/res/mipmap-xhdpi/ic_launcher.jpg


BIN
demo/src/main/res/mipmap-xhdpi/ic_launcher.png


+ 26 - 0
library_base/src/main/java/cn/yyxx/columbus/base/Columbus.kt

@@ -1,6 +1,10 @@
 package cn.yyxx.columbus.base
 
+import android.app.Activity
+import android.app.Application
+import android.content.Context
 import androidx.annotation.Keep
+import cn.yyxx.columbus.base.internal.ICallback
 
 /**
  * @author #Suyghur.
@@ -9,8 +13,30 @@ import androidx.annotation.Keep
 class Columbus private constructor() {
 
 
+    fun attachBaseContext(application: Application, context: Context) {
 
+    }
+
+
+    fun initApplication(application: Application) {
+
+    }
+
+    fun initialize(activity: Activity, isLandscape: Boolean, callback: ICallback) {
+
+    }
 
+    fun login(activity: Activity, callback: ICallback) {
+
+    }
+
+    fun logout(activity: Activity, callback: ICallback) {
+
+    }
+
+    fun charge(activity: Activity, callback: ICallback) {
+
+    }
 
     companion object {
         @JvmStatic

+ 4 - 2
library_base/src/main/java/cn/yyxx/columbus/base/ColumbusApplication.kt

@@ -7,13 +7,15 @@ import android.content.Context
  * @author #Suyghur.
  * Created on 2021/06/09
  */
-class ColumbusApplication : Application() {
+open class ColumbusApplication : Application() {
 
-    override fun attachBaseContext(base: Context?) {
+    override fun attachBaseContext(base: Context) {
         super.attachBaseContext(base)
+        Columbus.getInstance().attachBaseContext(this, base)
     }
 
     override fun onCreate() {
         super.onCreate()
+        Columbus.getInstance().initApplication(this)
     }
 }

+ 8 - 0
library_base/src/main/java/cn/yyxx/columbus/base/SdkBridgeManager.kt

@@ -0,0 +1,8 @@
+package cn.yyxx.columbus.base
+
+/**
+ * @author #Suyghur.
+ * Created on 2021/06/12
+ */
+class SdkBridgeManager {
+}

+ 10 - 0
library_base/src/main/java/cn/yyxx/columbus/base/internal/ICallback.kt

@@ -0,0 +1,10 @@
+package cn.yyxx.columbus.base.internal
+
+/**
+ * @author #Suyghur.
+ * Created on 2021/06/12
+ */
+interface ICallback {
+
+    fun onResult(code: Int, result: String)
+}

+ 5 - 1
library_core/CMakeLists.txt

@@ -13,6 +13,10 @@ cmake_minimum_required(VERSION 3.4.1)
 
 
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/include)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/include/third_part)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/include/aes)
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/include/rsa)
+
 #include_directories(src/main/cpp/json)
 #include_directories(src/main/cpp/encrypt)
 aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src/main/cpp/ DIR_SOURCE)
@@ -51,8 +55,8 @@ find_library( # Sets the name of the path variable.
 
 target_link_libraries( # Specifies the target library.
         columbus
-        local_openssl
         local_crypto
+        local_openssl
         # Links the target library to the log library
         # included in the NDK.
         ${log-lib})

+ 1 - 1
library_core/build.gradle

@@ -9,7 +9,7 @@ android {
     buildToolsVersion BUILD_TOOLS_VERSION
 
     defaultConfig {
-        minSdkVersion MIN_SDK_VERSION
+        minSdkVersion 21
         targetSdkVersion TARGET_SDK_VERSION
 
         externalNativeBuild {

+ 1 - 1
library_core/src/main/cpp/aes.cpp

@@ -39,7 +39,7 @@ NOTE:   String length must be evenly divisible by 16byte (str_len % 16 == 0)
 /*****************************************************************************/
 
 #include <string.h>
-#include "include/aes.h"
+#include "include/aes/aes.h"
 
 /*****************************************************************************/
 /* Defines:                                                                  */

+ 1 - 1
library_core/src/main/cpp/aes_utils.cpp

@@ -4,7 +4,7 @@
 
 #include <hex_utils.h>
 #include <logger.h>
-#include "include/aes_utils.h"
+#include "include/aes/aes_utils.h"
 
 static const unsigned char HEX[16] = {0x10, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f};
 

+ 30 - 6
library_core/src/main/cpp/columbus.cpp

@@ -6,8 +6,9 @@
 
 #include <jni.h>
 #include <jtool.h>
+#include <rsa/rsa_utils.h>
 #include "include/logger.h"
-#include "include/aes_utils.h"
+#include "aes/aes_utils.h"
 
 static void GetAesKey(JNIEnv *env, jobject thiz) {
     uint8_t *aes_key = AesUtils::GetKey();
@@ -31,10 +32,10 @@ static jstring AesEncrypt(JNIEnv *env, jobject thiz, jstring src) {
     LOGD("%s", raw);
     env->ReleaseStringUTFChars(src, src_);
 
-    jstring jResult = JTool::GetJString(env, raw);
+    jstring result = JTool::GetJString(env, raw);
     free(raw);
 
-    return jResult;
+    return result;
 }
 
 static jstring AesDecrypt(JNIEnv *env, jobject thiz, jstring raw, jstring key) {
@@ -43,15 +44,38 @@ static jstring AesDecrypt(JNIEnv *env, jobject thiz, jstring raw, jstring key) {
     char *src = AesUtils::Decrypt(raw_, key_);
     env->ReleaseStringUTFChars(raw, raw_);
 
-    jstring jResult = JTool::GetJString(env, src);
+    jstring result = JTool::GetJString(env, src);
     free(src);
-    return jResult;
+    return result;
 }
 
+
+static jstring RsaEncrypt(JNIEnv *env, jobject thiz, jstring src) {
+    const char *src_ = env->GetStringUTFChars(src, JNI_FALSE);
+    std::string key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAVatPhPaZtxBkLBZDnOLf7no6VfnjBRMXhpOnWmkkDX4zurB/OKisYDFnR0UUVnKn717+absfLlDk9HZWBcTMznsUju9fuXlu3Elr8HeI3en7E0KIQzxkY1GT1+qtZ+tCjWuyMmUw4vWpO8/MRU3f6nc4io3w+7N+dP24BIo0ZwIDAQAB";
+    std::string raw = RsaUtils::EncryptByPublicKey(key, src_);
+//    LOGD("base64 raw : %s", raw.c_str());
+    env->ReleaseStringUTFChars(src, src_);
+    jstring result = JTool::GetJString(env, raw.c_str());
+    return result;
+}
+
+static jstring RsaDecrypt(JNIEnv *env, jobject thiz, jstring raw) {
+    const char *raw_ = env->GetStringUTFChars(raw, JNI_FALSE);
+    std::string key = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCAVatPhPaZtxBkLBZDnOLf7no6VfnjBRMXhpOnWmkkDX4zurB/OKisYDFnR0UUVnKn717+absfLlDk9HZWBcTMznsUju9fuXlu3Elr8HeI3en7E0KIQzxkY1GT1+qtZ+tCjWuyMmUw4vWpO8/MRU3f6nc4io3w+7N+dP24BIo0ZwIDAQAB";
+    std::string src = RsaUtils::DecryptByPublicKey(key, raw_);
+    env->ReleaseStringUTFChars(raw, raw_);
+    jstring result = JTool::GetJString(env, src.c_str());
+    return result;
+}
+
+
 static JNINativeMethod gMethod[] = {
         {"getAesKey",  "()V",                                                      (void *) GetAesKey},
         {"aesEncrypt", "(Ljava/lang/String;)Ljava/lang/String;",                   (void *) AesEncrypt},
-        {"aesDecrypt", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", (void *) AesDecrypt}
+        {"aesDecrypt", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", (void *) AesDecrypt},
+        {"rsaEncrypt", "(Ljava/lang/String;)Ljava/lang/String;",                   (void *) RsaEncrypt},
+        {"rsaDecrypt", "(Ljava/lang/String;)Ljava/lang/String;",                   (void *) RsaDecrypt}
 };
 
 extern "C" JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) {

+ 0 - 1
library_core/src/main/cpp/include/aes.h → library_core/src/main/cpp/include/aes/aes.h

@@ -13,7 +13,6 @@
 
 // The #ifndef-guard allows it to be configured before #include'ing or at compile time.
 
-#include <stdint.h>
 
 #ifndef CBC
 #define CBC 1

+ 0 - 3
library_core/src/main/cpp/include/aes_utils.h → library_core/src/main/cpp/include/aes/aes_utils.h

@@ -5,9 +5,6 @@
 #ifndef COLUMBUS_AES_UTILS_H
 #define COLUMBUS_AES_UTILS_H
 
-#include <stdint.h>
-#include <string.h>
-#include <stdlib.h>
 #include "aes.h"
 
 #define BLOCKLEN 16

+ 36 - 0
library_core/src/main/cpp/include/rsa/rsa_utils.h

@@ -0,0 +1,36 @@
+//
+// Created by #Suyghur, on 2021/06/15.
+//
+
+#ifndef COLUMBUS_RSA_UTILS_H
+#define COLUMBUS_RSA_UTILS_H
+
+
+#include <string>
+
+class RsaUtils {
+public:
+
+    static std::string EncryptByPublicKey(std::string public_key, std::string src);
+
+    static std::string DecryptByPublicKey(std::string public_key, std::string raw);
+
+
+private:
+
+    static std::string GeneratePublicKey(std::string encode_key);
+
+    static std::string Encrypt(const std::string &public_key, const std::string &src);
+
+    static std::string Decrypt(const std::string &public_key, const std::string &src);
+
+
+    static std::string Base64Encode(const std::string &src);
+
+    static char *Base64Decode(const char *raw);
+
+
+};
+
+
+#endif //COLUMBUS_RSA_UTILS_H

+ 0 - 0
library_core/src/main/cpp/include/openssl/aes.h → library_core/src/main/cpp/include/third_part/openssl/aes.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/asn1.h → library_core/src/main/cpp/include/third_part/openssl/asn1.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/asn1_mac.h → library_core/src/main/cpp/include/third_part/openssl/asn1_mac.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/asn1err.h → library_core/src/main/cpp/include/third_part/openssl/asn1err.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/asn1t.h → library_core/src/main/cpp/include/third_part/openssl/asn1t.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/async.h → library_core/src/main/cpp/include/third_part/openssl/async.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/asyncerr.h → library_core/src/main/cpp/include/third_part/openssl/asyncerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/bio.h → library_core/src/main/cpp/include/third_part/openssl/bio.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/bioerr.h → library_core/src/main/cpp/include/third_part/openssl/bioerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/blowfish.h → library_core/src/main/cpp/include/third_part/openssl/blowfish.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/bn.h → library_core/src/main/cpp/include/third_part/openssl/bn.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/bnerr.h → library_core/src/main/cpp/include/third_part/openssl/bnerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/buffer.h → library_core/src/main/cpp/include/third_part/openssl/buffer.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/buffererr.h → library_core/src/main/cpp/include/third_part/openssl/buffererr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/camellia.h → library_core/src/main/cpp/include/third_part/openssl/camellia.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/cast.h → library_core/src/main/cpp/include/third_part/openssl/cast.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/cmac.h → library_core/src/main/cpp/include/third_part/openssl/cmac.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/cms.h → library_core/src/main/cpp/include/third_part/openssl/cms.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/cmserr.h → library_core/src/main/cpp/include/third_part/openssl/cmserr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/comp.h → library_core/src/main/cpp/include/third_part/openssl/comp.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/comperr.h → library_core/src/main/cpp/include/third_part/openssl/comperr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/conf.h → library_core/src/main/cpp/include/third_part/openssl/conf.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/conf_api.h → library_core/src/main/cpp/include/third_part/openssl/conf_api.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/conferr.h → library_core/src/main/cpp/include/third_part/openssl/conferr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/crypto.h → library_core/src/main/cpp/include/third_part/openssl/crypto.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/cryptoerr.h → library_core/src/main/cpp/include/third_part/openssl/cryptoerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ct.h → library_core/src/main/cpp/include/third_part/openssl/ct.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/cterr.h → library_core/src/main/cpp/include/third_part/openssl/cterr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/des.h → library_core/src/main/cpp/include/third_part/openssl/des.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/dh.h → library_core/src/main/cpp/include/third_part/openssl/dh.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/dherr.h → library_core/src/main/cpp/include/third_part/openssl/dherr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/dsa.h → library_core/src/main/cpp/include/third_part/openssl/dsa.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/dsaerr.h → library_core/src/main/cpp/include/third_part/openssl/dsaerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/dtls1.h → library_core/src/main/cpp/include/third_part/openssl/dtls1.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/e_os2.h → library_core/src/main/cpp/include/third_part/openssl/e_os2.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ebcdic.h → library_core/src/main/cpp/include/third_part/openssl/ebcdic.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ec.h → library_core/src/main/cpp/include/third_part/openssl/ec.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ecdh.h → library_core/src/main/cpp/include/third_part/openssl/ecdh.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ecdsa.h → library_core/src/main/cpp/include/third_part/openssl/ecdsa.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ecerr.h → library_core/src/main/cpp/include/third_part/openssl/ecerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/engine.h → library_core/src/main/cpp/include/third_part/openssl/engine.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/engineerr.h → library_core/src/main/cpp/include/third_part/openssl/engineerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/err.h → library_core/src/main/cpp/include/third_part/openssl/err.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/evp.h → library_core/src/main/cpp/include/third_part/openssl/evp.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/evperr.h → library_core/src/main/cpp/include/third_part/openssl/evperr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/hmac.h → library_core/src/main/cpp/include/third_part/openssl/hmac.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/idea.h → library_core/src/main/cpp/include/third_part/openssl/idea.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/kdf.h → library_core/src/main/cpp/include/third_part/openssl/kdf.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/kdferr.h → library_core/src/main/cpp/include/third_part/openssl/kdferr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/lhash.h → library_core/src/main/cpp/include/third_part/openssl/lhash.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/md2.h → library_core/src/main/cpp/include/third_part/openssl/md2.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/md4.h → library_core/src/main/cpp/include/third_part/openssl/md4.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/md5.h → library_core/src/main/cpp/include/third_part/openssl/md5.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/mdc2.h → library_core/src/main/cpp/include/third_part/openssl/mdc2.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/modes.h → library_core/src/main/cpp/include/third_part/openssl/modes.h


+ 4 - 4
library_core/src/main/cpp/include/openssl/obj_mac.h → library_core/src/main/cpp/include/third_part/openssl/obj_mac.h

@@ -2391,7 +2391,7 @@
 #define OBJ_X500algorithms              OBJ_X500,8L
 
 #define SN_rsa          "RSA"
-#define LN_rsa          "rsa"
+#define LN_rsa          "rsa_utils"
 #define NID_rsa         19
 #define OBJ_rsa         OBJ_X500algorithms,1L,1L
 
@@ -5001,7 +5001,7 @@
 #define OBJ_ED448               1L,3L,101L,113L
 
 #define SN_kx_rsa               "KxRSA"
-#define LN_kx_rsa               "kx-rsa"
+#define LN_kx_rsa               "kx-rsa_utils"
 #define NID_kx_rsa              1037
 
 #define SN_kx_ecdhe             "KxECDHE"
@@ -5021,7 +5021,7 @@
 #define NID_kx_dhe_psk          1041
 
 #define SN_kx_rsa_psk           "KxRSA_PSK"
-#define LN_kx_rsa_psk           "kx-rsa-psk"
+#define LN_kx_rsa_psk           "kx-rsa_utils-psk"
 #define NID_kx_rsa_psk          1042
 
 #define SN_kx_psk               "KxPSK"
@@ -5041,7 +5041,7 @@
 #define NID_kx_any              1063
 
 #define SN_auth_rsa             "AuthRSA"
-#define LN_auth_rsa             "auth-rsa"
+#define LN_auth_rsa             "auth-rsa_utils"
 #define NID_auth_rsa            1046
 
 #define SN_auth_ecdsa           "AuthECDSA"

+ 0 - 0
library_core/src/main/cpp/include/openssl/objects.h → library_core/src/main/cpp/include/third_part/openssl/objects.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/objectserr.h → library_core/src/main/cpp/include/third_part/openssl/objectserr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ocsp.h → library_core/src/main/cpp/include/third_part/openssl/ocsp.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ocsperr.h → library_core/src/main/cpp/include/third_part/openssl/ocsperr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/opensslconf.h → library_core/src/main/cpp/include/third_part/openssl/opensslconf.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/opensslv.h → library_core/src/main/cpp/include/third_part/openssl/opensslv.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ossl_typ.h → library_core/src/main/cpp/include/third_part/openssl/ossl_typ.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/pem.h → library_core/src/main/cpp/include/third_part/openssl/pem.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/pem2.h → library_core/src/main/cpp/include/third_part/openssl/pem2.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/pemerr.h → library_core/src/main/cpp/include/third_part/openssl/pemerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/pkcs12.h → library_core/src/main/cpp/include/third_part/openssl/pkcs12.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/pkcs12err.h → library_core/src/main/cpp/include/third_part/openssl/pkcs12err.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/pkcs7.h → library_core/src/main/cpp/include/third_part/openssl/pkcs7.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/pkcs7err.h → library_core/src/main/cpp/include/third_part/openssl/pkcs7err.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/rand.h → library_core/src/main/cpp/include/third_part/openssl/rand.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/rand_drbg.h → library_core/src/main/cpp/include/third_part/openssl/rand_drbg.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/randerr.h → library_core/src/main/cpp/include/third_part/openssl/randerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/rc2.h → library_core/src/main/cpp/include/third_part/openssl/rc2.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/rc4.h → library_core/src/main/cpp/include/third_part/openssl/rc4.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/rc5.h → library_core/src/main/cpp/include/third_part/openssl/rc5.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/ripemd.h → library_core/src/main/cpp/include/third_part/openssl/ripemd.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/rsa.h → library_core/src/main/cpp/include/third_part/openssl/rsa.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/rsaerr.h → library_core/src/main/cpp/include/third_part/openssl/rsaerr.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/safestack.h → library_core/src/main/cpp/include/third_part/openssl/safestack.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/seed.h → library_core/src/main/cpp/include/third_part/openssl/seed.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/sha.h → library_core/src/main/cpp/include/third_part/openssl/sha.h


+ 0 - 0
library_core/src/main/cpp/include/openssl/srp.h → library_core/src/main/cpp/include/third_part/openssl/srp.h


Some files were not shown because too many files changed in this diff