开发版本-developer——01 first commit

This commit is contained in:
wbzhan
2019-07-08 18:24:03 +08:00
parent 5a10dfa182
commit 8693efe121
386 changed files with 7069 additions and 1951 deletions
@@ -0,0 +1,25 @@
//
// ISecurityGuardOpenAtlasEncrypt.h
// SecurityGuardWhiteBox
//
// Created by lifengzhong on 15/11/9.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenAtlasEncrypt_h
#define ISecurityGuardOpenAtlasEncrypt_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenAtlasEncrypt/IOpenAtlasEncryptComponent.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenAtlasEncrypt/IOpenAtlasEncryptComponent.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenAtlasEncrypt <NSObject, IOpenAtlasEncryptComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenAtlasEncrypt_h */
@@ -0,0 +1,25 @@
//
// ISecurityGuardOpenDataCollection.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/10.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenDataCollection_h
#define ISecurityGuardOpenDataCollection_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenDataCollection/IOpenDataCollectionComponent.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenDataCollection/IOpenDataCollectionComponent.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenDataCollection <NSObject, IOpenDataCollectionComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenDataCollection_h */
@@ -0,0 +1,25 @@
//
// ISecurityGuardOpenDynamicDataEncrypt.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/10.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenDynamicDataEncrypt_h
#define ISecurityGuardOpenDynamicDataEncrypt_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenDynamicDataEncrypt/IOpenDynamicDataEncryptComponent.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenDynamicDataEncrypt/IOpenDynamicDataEncryptComponent.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenDynamicDataEncrypt <NSObject, IOpenDynamicDataEncryptComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenDynamicDataEncrypt_h */
@@ -0,0 +1,24 @@
//
// ISecurityGuardOpenDynamicDataStore.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/10.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenDynamicDataStore_h
#define ISecurityGuardOpenDynamicDataStore_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenDynamicDataStore/IOpenDynamicDataStoreComponent.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenDynamicDataStore/IOpenDynamicDataStoreComponent.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenDynamicDataStore <NSObject, IOpenDynamicDataStoreComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenDynamicDataStore_h */
@@ -0,0 +1,25 @@
//
// ISecurityGuardOpenInitialize.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/12.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenInitialize_h
#define ISecurityGuardOpenInitialize_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenInitialize/IOpenInitializeComponent.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenInitialize/IOpenInitializeComponent.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenInitialize <NSObject, IOpenInitializeComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenInitialize_h */
@@ -0,0 +1,24 @@
//
// ISecurityGuardOpenOpenSDK.h
// SecurityGuardTAE
//
// Created by lifengzhong on 15/11/9.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenOpenSDK_h
#define ISecurityGuardOpenOpenSDK_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#import <SecurityGuardSDKWatch/Open/OpenOpenSDK/IOpenOpenSDKComponent.h>
#else
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#import <SecurityGuardSDK/Open/OpenOpenSDK/IOpenOpenSDKComponent.h>
#endif
@protocol ISecurityGuardOpenOpenSDK <NSObject, IOpenOpenSDKComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenOpenSDK_h */
@@ -0,0 +1,80 @@
//
// ISecurityGuardOpenSafeToken.h
// SecurityGuardMain
//
// Created by chenkong on 15/12/17.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenSafeToken_h
#define ISecurityGuardOpenSafeToken_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenSafeToken <NSObject, IOpenSecurityGuardPluginInterface>
/**
* 存储token
* @param value 存储的value
* @param key token值对应的key
* @return 存储操作的结果
*/
- (BOOL) saveToken: (NSString*) value
forKey: (NSString*) key
additional: (NSString*) additional
flag: (int) flag;
/**
* 检测token是否存在
* @param key string值对应的key
* @return 检测token是否存在的结果
*/
- (BOOL) isTokenExist: (NSString*) key;
/**
* 删除本地存储的token
* @param key 存储值要使用的key
* @return 存储操作结果
*/
- (void) removeToken: (NSString*) key;
/**
* 使用token加密数据
* @param key token值对应的key
* @param plaintext 待加密的byte数组
* @param flag 扩展参数,缺省为0
* @return 返回加密结果,加密失败返回nil
*/
- (NSData*) encryptWithToken: (NSString*) key
inputData: (NSData*) plaintext
flag: (int) flag;
/**
* 使用token解密数据
* @param key token值对应的key
* @param encrypted 待解密的数据
* @param flag 扩展参数,缺省为0
* @return 返回解密结果,解密失败返回nil
*/
- (NSData*) decryptWithToken: (NSString*) key
inputData: (NSData*) encrypted
flag: (int) flag;
/**
* 使用token对数据进行签名
* @param key token值对应的key
* @param data 待签名的byte数组
* @param flag 扩展参数,缺省为0
* @return 返回签名结果,签名失败返回nil
*/
- (NSString*) signWithToken: (NSString*) key
inputData: (NSData*) data
flag: (int) flag;
@end
#endif /* ISecurityGuardOpenSafeToken_h */
@@ -0,0 +1,28 @@
//
// ISecurityGuardOpenSecureSignature.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/10.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenSecureSignature_h
#define ISecurityGuardOpenSecureSignature_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenSecureSignature/IOpenSecureSignatureComponent.h>
#import <SecurityGuardSDKWatch/Open/OpenSecureSignature/OpenSecureSignatureDefine.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#import <SecurityGuardSDKWatch/Open/OpenSecurityGuardParamContext.h>
#else
#import <SecurityGuardSDK/Open/OpenSecureSignature/IOpenSecureSignatureComponent.h>
#import <SecurityGuardSDK/Open/OpenSecureSignature/OpenSecureSignatureDefine.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#import <SecurityGuardSDK/Open/OpenSecurityGuardParamContext.h>
#endif
@protocol ISecurityGuardOpenSecureSignature <NSObject>
@end
#endif /* ISecurityGuardOpenSecureSignature_h */
@@ -0,0 +1,27 @@
//
// ISecurityGuardOpenStaticDataEncrypt.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/10.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenStaticDataEncrypt_h
#define ISecurityGuardOpenStaticDataEncrypt_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenStaticDataEncrypt/IOpenStaticDataEncryptComponent.h>
#import <SecurityGuardSDKWatch/Open/OpenStaticDataEncrypt/OpenStaticDataEncryptDefine.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenStaticDataEncrypt/IOpenStaticDataEncryptComponent.h>
#import <SecurityGuardSDK/Open/OpenStaticDataEncrypt/OpenStaticDataEncryptDefine.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenStaticDataEncrypt <NSObject, IOpenStaticDataEncryptComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenStaticDataEncrypt_h */
@@ -0,0 +1,26 @@
//
// ISecurityGuardOpenStaticDataStore.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/7.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenStaticDataStore_h
#define ISecurityGuardOpenStaticDataStore_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenStaticDataStore/IOpenStaticDataStoreComponent.h>
#import <SecurityGuardSDKWatch/Open/OpenStaticDataStore/OpenStaticDataStoreDefine.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenStaticDataStore/IOpenStaticDataStoreComponent.h>
#import <SecurityGuardSDK/Open/OpenStaticDataStore/OpenStaticDataStoreDefine.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenStaticDataStore <NSObject, IOpenStaticDataStoreComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenStaticDataStore_h */
@@ -0,0 +1,27 @@
//
// ISecurityGuardOpenStaticKeyEncrypt.h
// SecurityGuardTAE
//
// Created by lifengzhong on 15/11/9.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenStaticKeyEncrypt_h
#define ISecurityGuardOpenStaticKeyEncrypt_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#import <SecurityGuardSDKWatch/Open/OpenStaticKeyEncrypt/IOpenStaticKeyEncryptComponent.h>
#import <SecurityGuardSDKWatch/Open/OpenStaticKeyEncrypt/OpenStaticKeyEncryptDefine.h>
#else
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#import <SecurityGuardSDK/Open/OpenStaticKeyEncrypt/IOpenStaticKeyEncryptComponent.h>
#import <SecurityGuardSDK/Open/OpenStaticKeyEncrypt/OpenStaticKeyEncryptDefine.h>
#endif
@protocol ISecurityGuardOpenStaticKeyEncrypt <NSObject, IOpenStaticKeyEncryptComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenStaticKeyEncrypt_h */
@@ -0,0 +1,26 @@
//
// ISecurityGuardOpenUMID.h
// SecurityGuardMain
//
// Created by lifengzhong on 15/11/10.
// Copyright © 2015年 Li Fengzhong. All rights reserved.
//
#ifndef ISecurityGuardOpenUMID_h
#define ISecurityGuardOpenUMID_h
#if TARGET_OS_WATCH
#import <SecurityGuardSDKWatch/Open/OpenUMID/IOpenUMIDComponent.h>
#import <SecurityGuardSDKWatch/Open/IOpenSecurityGuardPlugin.h>
#else
#import <SecurityGuardSDK/Open/OpenUMID/IOpenUMIDComponent.h>
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
#endif
@protocol ISecurityGuardOpenUMID <NSObject, IOpenUMIDComponent, IOpenSecurityGuardPluginInterface>
@end
#endif /* ISecurityGuardOpenUMID_h */
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleIdentifier</key>
<string>com.alimobilesec.SGMain</string>
<key>CFBundleName</key>
<string>SGMain</string>
<key>CFBundleShortVersionString</key>
<string>5.1.94</string>
</dict>
</plist>