123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #import <Foundation/Foundation.h>
- @class tableMetadata;
- @interface NCEndToEndEncryption : NSObject
- + (id)sharedManager;
- - (NSString *)createSHA512:(NSString *)string;
- - (void)encryptMetadata:(tableMetadata *)metadata activeUrl:(NSString *)activeUrl;
- - (void)decryptMetadata:(tableMetadata *)metadata activeUrl:(NSString *)activeUrl;
- - (NSString *)createEndToEndPublicKey:(NSString *)userID directoryUser:(NSString *)directoryUser;
- - (NSString *)createEndToEndPrivateKey:(NSString *)userID directoryUser: (NSString *)directoryUser mnemonic:(NSString *)mnemonic;
- - (NSString *)decryptPrivateKeyCipher:(NSString *)privateKeyCipher mnemonic:(NSString *)mnemonic;
- - (NSString *)getCSRFromDisk:(NSString *)directoryUser delete:(BOOL)delete;
- - (NSString *)getPrivateKeyFromDisk:(NSString *)directoryUser delete:(BOOL)delete;
- @end
|