#import <ThingRSAImpl.h>
Definition at line 63 of file ThingRSAImpl.h.
◆ decryptData:privateKey:config: [1/4]
+ (NSData *) decryptData: |
|
(NSData *) |
data |
privateKey: |
|
(NSString *) |
privateKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA解密
- Parameters
-
data | 需要解密的数据 |
privateKey | 私钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 解密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 解密后的数据
◆ decryptData:privateKey:config: [2/4]
+ (NSData *) decryptData: |
|
(NSData *) |
data |
privateKey: |
|
(NSString *) |
privateKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA解密
- Parameters
-
data | 需要解密的数据 |
privateKey | 私钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 解密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 解密后的数据
◆ decryptData:privateKey:config: [3/4]
+ (NSData *) decryptData: |
|
(NSData *) |
data |
privateKey: |
|
(NSString *) |
privateKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA解密
- Parameters
-
data | 需要解密的数据 |
privateKey | 私钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 解密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 解密后的数据
◆ decryptData:privateKey:config: [4/4]
+ (NSData *) decryptData: |
|
(NSData *) |
data |
privateKey: |
|
(NSString *) |
privateKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA解密
- Parameters
-
data | 需要解密的数据 |
privateKey | 私钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 解密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 解密后的数据
◆ encryptData:publicKey:config: [1/4]
+ (NSData *) encryptData: |
|
(NSData *) |
data |
publicKey: |
|
(NSString *) |
publicKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA加密
- Parameters
-
data | 需要加密的数据 |
publicKey | 公钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 加密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 加密后的数据
◆ encryptData:publicKey:config: [2/4]
+ (NSData *) encryptData: |
|
(NSData *) |
data |
publicKey: |
|
(NSString *) |
publicKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA加密
- Parameters
-
data | 需要加密的数据 |
publicKey | 公钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 加密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 加密后的数据
◆ encryptData:publicKey:config: [3/4]
+ (NSData *) encryptData: |
|
(NSData *) |
data |
publicKey: |
|
(NSString *) |
publicKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA加密
- Parameters
-
data | 需要加密的数据 |
publicKey | 公钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 加密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 加密后的数据
◆ encryptData:publicKey:config: [4/4]
+ (NSData *) encryptData: |
|
(NSData *) |
data |
publicKey: |
|
(NSString *) |
publicKey |
config: |
|
(ThingRSAConfig *) |
config |
|
|
| |
RSA加密
- Parameters
-
data | 需要加密的数据 |
publicKey | 公钥,支持带header和不带header的格式,可以用config.keyWithHeader定义。 |
config | 加密配置,默认可以用+ [ThingRSAConfig defaultConfig] |
- Returns
- 加密后的数据
◆ generateKeyPairWithSize:keyPair: [1/4]
+ (void) generateKeyPairWithSize: |
|
(ThingRSAKeySize) |
keySize |
keyPair: |
|
(void(^)(SecKeyRef publicKeyRef, SecKeyRef privateKeyRef)) |
pair |
|
|
| |
生成公钥和私钥
- Parameters
-
keySize | 密钥位数 |
pair | 公钥私钥回调block |
◆ generateKeyPairWithSize:keyPair: [2/4]
+ (void) generateKeyPairWithSize: |
|
(ThingRSAKeySize) |
keySize |
keyPair: |
|
(void(^)(SecKeyRef publicKeyRef, SecKeyRef privateKeyRef)) |
pair |
|
|
| |
生成公钥和私钥
- Parameters
-
keySize | 密钥位数 |
pair | 公钥私钥回调block |
◆ generateKeyPairWithSize:keyPair: [3/4]
+ (void) generateKeyPairWithSize: |
|
(ThingRSAKeySize) |
keySize |
keyPair: |
|
(void(^)(SecKeyRef publicKeyRef, SecKeyRef privateKeyRef)) |
pair |
|
|
| |
生成公钥和私钥
- Parameters
-
keySize | 密钥位数 |
pair | 公钥私钥回调block |
◆ generateKeyPairWithSize:keyPair: [4/4]
+ (void) generateKeyPairWithSize: |
|
(ThingRSAKeySize) |
keySize |
keyPair: |
|
(void(^)(SecKeyRef publicKeyRef, SecKeyRef privateKeyRef)) |
pair |
|
|
| |
生成公钥和私钥
- Parameters
-
keySize | 密钥位数 |
pair | 公钥私钥回调block |
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/ios-arm64_x86_64-simulator/ThingFoundationKit.framework/Headers/ThingRSAImpl.h
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/watchos-arm64_i386_x86_64-simulator/ThingFoundationKit.framework/Headers/ThingRSAImpl.h
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/ios-arm64/ThingFoundationKit.framework/Headers/ThingRSAImpl.h
- /Users/humtong/Downloads/Pods_副本/ThingFoundationKit/ThingFoundationKit.xcframework/watchos-arm64_arm64_32_armv7k/ThingFoundationKit.framework/Headers/ThingRSAImpl.h