OTAuthenticatedCiphertext.h [plain text]
#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;
- (void)copyTo:(OTAuthenticatedCiphertext *)other;
- (void)mergeFrom:(OTAuthenticatedCiphertext *)other;
OTAUTHENTICATEDCIPHERTEXT_FUNCTION BOOL OTAuthenticatedCiphertextReadFrom(__unsafe_unretained OTAuthenticatedCiphertext *self, __unsafe_unretained PBDataReader *reader);
@end