developer
2023-05-20 e12c7b4c22df631ebdcd16b2f98fbef8f738f92f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
//  ISecurityGuardOpenAVMPSoftCert.h
//  SecurityGuardAVMP
//
//  Created by chenkong on 16/2/16.
//  Copyright © 2016年 SGAVMP. All rights reserved.
//
 
#ifndef ISecurityGuardOpenAVMPSoftCert_h
#define ISecurityGuardOpenAVMPSoftCert_h
 
#import <SecurityGuardSDK/Open/IOpenSecurityGuardPlugin.h>
 
@protocol ISecurityGuardOpenAVMPSoftCert <NSObject, IOpenSecurityGuardPluginInterface>
 
- (BOOL) initAVMPSoftCert: (NSString*) authCode;
 
 
- (NSData*) generateCSR: (NSString*) key
                   info: (NSString*) info
                   type: (int) type;
 
- (NSData*) signWithCert: (NSString*) key
                    data: (NSData*) plaintext
                    type: (int) type;
 
- (BOOL) verifyWithCert: (NSString*) key
              signature: (NSData*) signature
              plainData: (NSData*) plainData
                   type: (int) type;
 
- (BOOL) installCert: (NSString*) key
            certInfo: (NSString*) certInfo;
 
 
- (NSString*) getCert: (NSString*) key;
 
 
 
@end
 
 
 
#endif /* ISecurityGuardOpenAVMPSoftCert_h */