Changed PGP backend from ObjectivePGP to GopenPGP

This commit is contained in:
Moritz Kuntze 2019-06-05 21:33:24 +02:00 committed by Mingshen Sun
parent 5439ad0f5b
commit 96f7c1960d
27 changed files with 647 additions and 193 deletions

View file

@ -0,0 +1,29 @@
// Objective-C API for talking to github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper Go package.
// gobind -lang=objc github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
//
// File is generated by gobind. Do not edit.
#ifndef __Gopenpgpwrapper_H__
#define __Gopenpgpwrapper_H__
@import Foundation;
#include "ref.h"
#include "Universe.objc.h"
@class GopenpgpwrapperKey;
@interface GopenpgpwrapperKey : NSObject <goSeqRefInterface> {
}
@property(strong, readonly) _Nonnull id _ref;
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
- (nonnull instancetype)init;
- (NSData* _Nullable)decrypt:(NSData* _Nullable)ciphertext passphrase:(NSString* _Nullable)passphrase;
- (NSData* _Nullable)encrypt:(NSData* _Nullable)plaintext armor:(BOOL)armor;
- (NSString* _Nonnull)getKeyID;
@end
FOUNDATION_EXPORT GopenpgpwrapperKey* _Nullable GopenpgpwrapperReadKey(NSData* _Nullable data);
#endif