Add lowmemory functions
This commit is contained in:
parent
9dfb46fe45
commit
491f111e6b
10 changed files with 108 additions and 62 deletions
BIN
dist/iOS/Crypto.framework/Versions/A/Crypto
vendored
BIN
dist/iOS/Crypto.framework/Versions/A/Crypto
vendored
Binary file not shown.
|
|
@ -12,6 +12,7 @@
|
|||
#include "Armor.objc.h"
|
||||
#include "Models.objc.h"
|
||||
|
||||
@class CryptoAttachmentProcessor;
|
||||
@class CryptoPmCrypto;
|
||||
@class CryptoSignatureCollector;
|
||||
@protocol CryptoMIMECallbacks;
|
||||
|
|
@ -25,6 +26,19 @@
|
|||
- (void)onVerified:(long)verified;
|
||||
@end
|
||||
|
||||
/**
|
||||
* EncryptedSplit when encrypt attachment
|
||||
*/
|
||||
@interface CryptoAttachmentProcessor : NSObject <goSeqRefInterface> {
|
||||
}
|
||||
@property(strong, readonly) id _ref;
|
||||
|
||||
- (instancetype)initWithRef:(id)ref;
|
||||
- (instancetype)init;
|
||||
- (ModelsEncryptedSplit*)finish:(NSError**)error;
|
||||
- (void)process:(NSData*)plainData;
|
||||
@end
|
||||
|
||||
/**
|
||||
* PmCrypto structure to manage multiple address keys and user keys
|
||||
Called PGP crypto because it cannot have the same name as the package by gomobile's ridiculous rules.
|
||||
|
|
@ -48,7 +62,7 @@ Called PGP crypto because it cannot have the same name as the package by gomobil
|
|||
- (ModelsDecryptSignedVerify*)decryptMessageVerifyPrivBinKeys:(NSString*)encryptedText verifierKey:(NSString*)verifierKey privateKeys:(NSData*)privateKeys passphrase:(NSString*)passphrase verifyTime:(int64_t)verifyTime error:(NSError**)error;
|
||||
- (NSString*)decryptMessageWithPassword:(NSString*)encrypted password:(NSString*)password error:(NSError**)error;
|
||||
- (ModelsEncryptedSplit*)encryptAttachment:(NSData*)plainData fileName:(NSString*)fileName publicKey:(NSString*)publicKey error:(NSError**)error;
|
||||
- (ModelsEncryptedSplit*)encryptAttachmentBinKey:(NSData*)plainData fileName:(NSString*)fileName publicKey:(NSData*)publicKey error:(NSError**)error;
|
||||
- (CryptoAttachmentProcessor*)encryptAttachmentLowMemory:(long)estimatedSize fileName:(NSString*)fileName publicKey:(NSString*)publicKey error:(NSError**)error;
|
||||
- (NSString*)encryptAttachmentWithPassword:(NSData*)plainData password:(NSString*)password error:(NSError**)error;
|
||||
- (NSString*)encryptMessage:(NSString*)plainText publicKey:(NSString*)publicKey privateKey:(NSString*)privateKey passphrase:(NSString*)passphrase trim:(BOOL)trim error:(NSError**)error;
|
||||
- (NSString*)encryptMessageBinKey:(NSString*)plainText publicKey:(NSData*)publicKey privateKey:(NSString*)privateKey passphrase:(NSString*)passphrase trim:(BOOL)trim error:(NSError**)error;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue