IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

AuthTag Property

The authentication tag used when UseAEAD is set to True.

Syntax

ANSI (Cross Platform)
int GetAuthTag(char* &lpAuthTag, int &lenAuthTag);
int SetAuthTag(const char* lpAuthTag, int lenAuthTag); Unicode (Windows) INT GetAuthTag(LPSTR &lpAuthTag, INT &lenAuthTag);
INT SetAuthTag(LPCSTR lpAuthTag, INT lenAuthTag);
@property (nonatomic,readwrite,assign,getter=authTag,setter=setAuthTag:) NSString* authTag;
- (NSString*)authTag;
- (void)setAuthTag:(NSString*)newAuthTag;

@property (nonatomic,readwrite,assign,getter=authTagB,setter=setAuthTagB:) NSData* authTagB; - (NSData*)authTagB; - (void)setAuthTagB:(NSData*)newAuthTag;
#define PID_CHACHA_AUTHTAG 2

IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_ChaCha_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_ChaCha_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property holds the 128 bit authentication tag used when UseAEAD is set to True. It is only applicable when UseAEAD is True.

This is populated after calling Encrypt. To also include the value in the output set IncludeAuthTag to True.

This must be set before calling Decrypt. If the auth tag is included in the encrypted data set IncludeAuthTag to True before calling Decrypt.

Data Type

Binary String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 C++ Edition - Version 20.0 [Build 8155]