NIMSDK-iOS
载入中...
搜索中...
未找到
NIMEncryptionConfig.h
浏览该文件的文档.
1//
2// NIMEncryptionConfig.h
3// NIMSDK
4//
5// Created by Netease on 2019/10/14.
6// Copyright © 2019 Netease. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
11
12NS_ASSUME_NONNULL_BEGIN
13
14/**
15 非对称加密类型
16
17 - NIMAsymEncryptionTypeRSA: RSA加密
18 - NIMAsymEncryptionTypeSM2: SM加密
19 */
20typedef NS_ENUM (NSInteger, NIMAsymEncryptionType){
23};
24
25/**
26 对称加密类型
27
28 - NIMSymEncryptionTypeRC4: RC4加密
29 - NIMSymEncryptionTypeAES: AES加密
30 - NIMSymEncryptionTypeSM4: SM4加密
31 */
32typedef NS_ENUM (NSInteger, NIMSymEncryptionType){
36};
37
38@interface NIMEncryptionConfig : NSObject
39
40/// 非对称加密类型(默认:RSA)
41@property (nonatomic, assign) NIMAsymEncryptionType asymEncryptionType;
42
43/// 对称加密类型(默认:RC4)
44@property (nonatomic, assign) NIMSymEncryptionType symEncryptionType;
45
46/// 更新非对称加密RSA的配置
47/// @param option RSA配置
48- (void)updateRSAOption:(NIMRSAOption *)option;
49
50/// 更新非对称加密SM2的配置
51/// @param option SM2配置
52- (void)updateSM2Option:(NIMSM2Option *)option;
53
54@end
55
56
57
58
59NS_ASSUME_NONNULL_END
NIMAsymEncryptionType
Definition: NIMEncryptionConfig.h:20
@ NIMAsymEncryptionTypeSM2
Definition: NIMEncryptionConfig.h:22
@ NIMAsymEncryptionTypeRSA
Definition: NIMEncryptionConfig.h:21
NIMSymEncryptionType
Definition: NIMEncryptionConfig.h:32
@ NIMSymEncryptionTypeSM4
Definition: NIMEncryptionConfig.h:35
@ NIMSymEncryptionTypeAES
Definition: NIMEncryptionConfig.h:34
@ NIMSymEncryptionTypeRC4
Definition: NIMEncryptionConfig.h:33
Definition: NIMEncryptionConfig.h:39
NIMSymEncryptionType symEncryptionType
对称加密类型(默认:RC4)
Definition: NIMEncryptionConfig.h:44
NIMAsymEncryptionType asymEncryptionType
非对称加密类型(默认:RSA)
Definition: NIMEncryptionConfig.h:41
RSA加密配置类
Definition: NIMAsymEncryptionOption.h:35
SM2加密配置类
Definition: NIMAsymEncryptionOption.h:15