aboutsummaryrefslogtreecommitdiff
path: root/xcode/OLMKit/OLMSerializable.h
diff options
context:
space:
mode:
authorChris Ballinger <chrisballinger@gmail.com>2016-04-13 16:53:47 -0700
committerChris Ballinger <chrisballinger@gmail.com>2016-04-13 16:53:47 -0700
commitdaab2a58af947cddd67fe9f30dd3a9fc327650c0 (patch)
tree6d2e3abfc160198ec1d8e521a74b1f1d236c0ea3 /xcode/OLMKit/OLMSerializable.h
parentf505113fb7a6d61015ad8050b3fb4e26df029150 (diff)
OLMAccount and OLMSession serialization
Diffstat (limited to 'xcode/OLMKit/OLMSerializable.h')
-rw-r--r--xcode/OLMKit/OLMSerializable.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xcode/OLMKit/OLMSerializable.h b/xcode/OLMKit/OLMSerializable.h
index afacdaa..b4b115a 100644
--- a/xcode/OLMKit/OLMSerializable.h
+++ b/xcode/OLMKit/OLMSerializable.h
@@ -11,9 +11,9 @@
@protocol OLMSerializable <NSObject>
/** Initializes from encrypted serialized data. Will throw error if invalid key or invalid base64. */
-- (instancetype) initWithSerializedData:(NSData*)serializedData key:(NSData*)key error:(NSError**)error;
+- (instancetype) initWithSerializedData:(NSString*)serializedData key:(NSData*)key error:(NSError**)error;
-/** Serializes and encrypts object data */
-- (NSData*) serializeDataWithKey:(NSData*)key;
+/** Serializes and encrypts object data, outputs base64 blob */
+- (NSString*) serializeDataWithKey:(NSData*)key error:(NSError**)error;
@end