OTAuthenticatedCiphertext.h   [plain text]


// This file was automatically generated by protocompiler
// DO NOT EDIT!
// Compiled from OTAuthenticatedCiphertext.proto

#import <Foundation/Foundation.h>
#import <ProtocolBuffer/PBCodable.h>

#ifdef __cplusplus
#define OTAUTHENTICATEDCIPHERTEXT_FUNCTION extern "C" __attribute__((visibility("hidden")))
#else
#define OTAUTHENTICATEDCIPHERTEXT_FUNCTION extern __attribute__((visibility("hidden")))
#endif

__attribute__((visibility("hidden")))
@interface OTAuthenticatedCiphertext : PBCodable <NSCopying>
{
    NSData *_authenticationCode;
    NSData *_ciphertext;
    NSData *_initializationVector;
}


@property (nonatomic, retain) NSData *ciphertext;

@property (nonatomic, retain) NSData *authenticationCode;

@property (nonatomic, retain) NSData *initializationVector;

// Performs a shallow copy into other
- (void)copyTo:(OTAuthenticatedCiphertext *)other;

// Performs a deep merge from other into self
// If set in other, singular values in self are replaced in self
// Singular composite values are recursively merged
// Repeated values from other are appended to repeated values in self
- (void)mergeFrom:(OTAuthenticatedCiphertext *)other;

OTAUTHENTICATEDCIPHERTEXT_FUNCTION BOOL OTAuthenticatedCiphertextReadFrom(__unsafe_unretained OTAuthenticatedCiphertext *self, __unsafe_unretained PBDataReader *reader);

@end