Changed PGP backend from ObjectivePGP to GopenPGP
This commit is contained in:
parent
5439ad0f5b
commit
96f7c1960d
27 changed files with 647 additions and 193 deletions
BIN
go/dist/Gopenpgpwrapper.framework/Versions/A/Gopenpgpwrapper
vendored
Normal file
BIN
go/dist/Gopenpgpwrapper.framework/Versions/A/Gopenpgpwrapper
vendored
Normal file
Binary file not shown.
13
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/Gopenpgpwrapper.h
vendored
Normal file
13
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/Gopenpgpwrapper.h
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
// Objective-C API for talking to the following Go packages
|
||||
//
|
||||
// github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
||||
//
|
||||
// File is generated by gomobile bind. Do not edit.
|
||||
#ifndef __Gopenpgpwrapper_FRAMEWORK_H__
|
||||
#define __Gopenpgpwrapper_FRAMEWORK_H__
|
||||
|
||||
#include "Gopenpgpwrapper.objc.h"
|
||||
#include "Universe.objc.h"
|
||||
|
||||
#endif
|
||||
29
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/Gopenpgpwrapper.objc.h
vendored
Normal file
29
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/Gopenpgpwrapper.objc.h
vendored
Normal 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
|
||||
29
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/Universe.objc.h
vendored
Normal file
29
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/Universe.objc.h
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// Objective-C API for talking to Go package.
|
||||
// gobind -lang=objc
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Universe_H__
|
||||
#define __Universe_H__
|
||||
|
||||
@import Foundation;
|
||||
#include "ref.h"
|
||||
|
||||
@protocol Universeerror;
|
||||
@class Universeerror;
|
||||
|
||||
@protocol Universeerror <NSObject>
|
||||
- (NSString* _Nonnull)error;
|
||||
@end
|
||||
|
||||
@class Universeerror;
|
||||
|
||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||
}
|
||||
@property(strong, readonly) _Nonnull id _ref;
|
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||
- (NSString* _Nonnull)error;
|
||||
@end
|
||||
|
||||
#endif
|
||||
35
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/ref.h
vendored
Normal file
35
go/dist/Gopenpgpwrapper.framework/Versions/A/Headers/ref.h
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#ifndef __GO_REF_HDR__
|
||||
#define __GO_REF_HDR__
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
// GoSeqRef is an object tagged with an integer for passing back and
|
||||
// forth across the language boundary. A GoSeqRef may represent either
|
||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||
// when it is passed to Objective-C. The Go seq package maintains a
|
||||
// reference to the Go object in a map keyed by the refnum along with
|
||||
// a reference count. When the reference count reaches zero, the Go
|
||||
// seq package will clear the corresponding entry in the map.
|
||||
@interface GoSeqRef : NSObject {
|
||||
}
|
||||
@property(readonly) int32_t refnum;
|
||||
@property(strong) id obj; // NULL when representing a Go object.
|
||||
|
||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||
// provided from Go side.
|
||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||
|
||||
- (int32_t)incNum;
|
||||
|
||||
@end
|
||||
|
||||
@protocol goSeqRefInterface
|
||||
-(GoSeqRef*) _ref;
|
||||
@end
|
||||
|
||||
#endif
|
||||
8
go/dist/Gopenpgpwrapper.framework/Versions/A/Modules/module.modulemap
vendored
Normal file
8
go/dist/Gopenpgpwrapper.framework/Versions/A/Modules/module.modulemap
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
framework module "Gopenpgpwrapper" {
|
||||
header "ref.h"
|
||||
header "Gopenpgpwrapper.objc.h"
|
||||
header "Universe.objc.h"
|
||||
header "Gopenpgpwrapper.h"
|
||||
|
||||
export *
|
||||
}
|
||||
6
go/dist/Gopenpgpwrapper.framework/Versions/A/Resources/Info.plist
vendored
Normal file
6
go/dist/Gopenpgpwrapper.framework/Versions/A/Resources/Info.plist
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
go/dist/Gopenpgpwrapper.framework/Versions/Current/Gopenpgpwrapper
vendored
Normal file
BIN
go/dist/Gopenpgpwrapper.framework/Versions/Current/Gopenpgpwrapper
vendored
Normal file
Binary file not shown.
13
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/Gopenpgpwrapper.h
vendored
Normal file
13
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/Gopenpgpwrapper.h
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
// Objective-C API for talking to the following Go packages
|
||||
//
|
||||
// github.com/ZortacDev/GopenPGPWrapper/go/gopenpgpwrapper
|
||||
//
|
||||
// File is generated by gomobile bind. Do not edit.
|
||||
#ifndef __Gopenpgpwrapper_FRAMEWORK_H__
|
||||
#define __Gopenpgpwrapper_FRAMEWORK_H__
|
||||
|
||||
#include "Gopenpgpwrapper.objc.h"
|
||||
#include "Universe.objc.h"
|
||||
|
||||
#endif
|
||||
29
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/Gopenpgpwrapper.objc.h
vendored
Normal file
29
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/Gopenpgpwrapper.objc.h
vendored
Normal 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
|
||||
29
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/Universe.objc.h
vendored
Normal file
29
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/Universe.objc.h
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
// Objective-C API for talking to Go package.
|
||||
// gobind -lang=objc
|
||||
//
|
||||
// File is generated by gobind. Do not edit.
|
||||
|
||||
#ifndef __Universe_H__
|
||||
#define __Universe_H__
|
||||
|
||||
@import Foundation;
|
||||
#include "ref.h"
|
||||
|
||||
@protocol Universeerror;
|
||||
@class Universeerror;
|
||||
|
||||
@protocol Universeerror <NSObject>
|
||||
- (NSString* _Nonnull)error;
|
||||
@end
|
||||
|
||||
@class Universeerror;
|
||||
|
||||
@interface Universeerror : NSError <goSeqRefInterface, Universeerror> {
|
||||
}
|
||||
@property(strong, readonly) _Nonnull id _ref;
|
||||
|
||||
- (nonnull instancetype)initWithRef:(_Nonnull id)ref;
|
||||
- (NSString* _Nonnull)error;
|
||||
@end
|
||||
|
||||
#endif
|
||||
35
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/ref.h
vendored
Normal file
35
go/dist/Gopenpgpwrapper.framework/Versions/Current/Headers/ref.h
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
// Copyright 2015 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
#ifndef __GO_REF_HDR__
|
||||
#define __GO_REF_HDR__
|
||||
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
// GoSeqRef is an object tagged with an integer for passing back and
|
||||
// forth across the language boundary. A GoSeqRef may represent either
|
||||
// an instance of a Go object, or an Objective-C object passed to Go.
|
||||
// The explicit allocation of a GoSeqRef is used to pin a Go object
|
||||
// when it is passed to Objective-C. The Go seq package maintains a
|
||||
// reference to the Go object in a map keyed by the refnum along with
|
||||
// a reference count. When the reference count reaches zero, the Go
|
||||
// seq package will clear the corresponding entry in the map.
|
||||
@interface GoSeqRef : NSObject {
|
||||
}
|
||||
@property(readonly) int32_t refnum;
|
||||
@property(strong) id obj; // NULL when representing a Go object.
|
||||
|
||||
// new GoSeqRef object to proxy a Go object. The refnum must be
|
||||
// provided from Go side.
|
||||
- (instancetype)initWithRefnum:(int32_t)refnum obj:(id)obj;
|
||||
|
||||
- (int32_t)incNum;
|
||||
|
||||
@end
|
||||
|
||||
@protocol goSeqRefInterface
|
||||
-(GoSeqRef*) _ref;
|
||||
@end
|
||||
|
||||
#endif
|
||||
8
go/dist/Gopenpgpwrapper.framework/Versions/Current/Modules/module.modulemap
vendored
Normal file
8
go/dist/Gopenpgpwrapper.framework/Versions/Current/Modules/module.modulemap
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
framework module "Gopenpgpwrapper" {
|
||||
header "ref.h"
|
||||
header "Gopenpgpwrapper.objc.h"
|
||||
header "Universe.objc.h"
|
||||
header "Gopenpgpwrapper.h"
|
||||
|
||||
export *
|
||||
}
|
||||
6
go/dist/Gopenpgpwrapper.framework/Versions/Current/Resources/Info.plist
vendored
Normal file
6
go/dist/Gopenpgpwrapper.framework/Versions/Current/Resources/Info.plist
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
</dict>
|
||||
</plist>
|
||||
Loading…
Add table
Add a link
Reference in a new issue