开发版本-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,46 @@
//
// OpenSecurityGuardSDK version 2.1.0
//
#ifndef OpenSecurityGuardSDK_IOpenSecureSignatureComponent_h
#define OpenSecurityGuardSDK_IOpenSecureSignatureComponent_h
@class OpenSecurityGuardParamContext;
/**
* 签名接口
*/
@protocol IOpenSecureSignatureComponent <NSObject>
/**
* 发起签名请求
*
* @param paramContext 包含签名所需要参数的结构体对象
*
* @param authCode SDK的授权码,不传或为空串,使用默认加密文件
*
* @return 签名值,失败时返回nil
*/
- (NSString*) signRequest: (OpenSecurityGuardParamContext*) paramContext
authCode: (NSString*) authCode;
/*
* 对cookie进行签名加密
*
* @param key 计算文件签名时用到的密钥所对应的key
* @param data 需要签名加密的cookie数据
*/
- (NSString*) getSafeCookie: (NSString*) data
secretKey: (NSString*) key
authCode: (NSString*) authCode;
@end
#endif
@@ -0,0 +1,78 @@
//
// OpenSecurityGuardSDK version 2.1.0
//
/**
* 签名调用中,OpenSecurityGuardParamContex中paramDict参数中使用到的key
*/
/**
* 签名接口入参keytop, umid签名使用
*/
extern NSString* const OPEN_KEY_SIGN_INPUT;
/**
* seedkeytop 签名使用
*/
extern NSString* const OPEN_KEY_SIGN_SEEDKEY;
/**
* atlaskeyatlas 签名使用
*/
extern NSString* const OPEN_KEY_SIGN_ATLAS;
/**
* 签名调用中,OpenSecurityGuardParamContex中requestType参数中使用到的值
*/
/**
* top签名
*/
extern NSInteger const OPEN_ENUM_SIGN_TOP;
/**
* umid签名
*/
extern NSInteger const OPEN_ENUM_SIGN_UMID;
/**
* 原始top签名(无seekKey)
*/
extern NSInteger const OPEN_ENUM_SIGN_TOP_OLD;
/**
* common hmac sha1签名
*/
extern NSInteger const OPEN_ENUM_SIGN_COMMON_HMAC_SHA1;
/**
* common md5签名
*/
extern NSInteger const OPEN_ENUM_SIGN_COMMON_MD5;
/**
* atlas签名
*/
extern NSInteger const OPEN_ENUM_SIGN_ATLAS;
/**
* 带模拟器检测功能的hmac-sha1签名
*/
extern NSInteger const OPEN_ENUM_SIGN_SIM_HMAC_SHA1;
/**
* Fast atlas签名 签名String长度50
*/
extern NSInteger const OPEN_ENUM_SIGN_ATLAS_FAST;
/**
* Fast atlas签名2
*/
extern NSInteger const OPEN_ENUM_SIGN_ATLAS_FAST2;
/**
* 无效签名类型
*/
extern NSInteger const OPEN_ENUM_SIGN_INVALID;