IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

HMACKey Property

The HMAC key used with the 'HMAC-SHA1' signing algorithm.

Syntax

ANSI (Cross Platform)
int GetHMACKey(char* &lpHMACKey, int &lenHMACKey);
int SetHMACKey(const char* lpHMACKey, int lenHMACKey); Unicode (Windows) INT GetHMACKey(LPSTR &lpHMACKey, INT &lenHMACKey);
INT SetHMACKey(LPCSTR lpHMACKey, INT lenHMACKey);
@property (nonatomic,readwrite,assign,getter=HMACKey,setter=setHMACKey:) NSString* HMACKey;
- (NSString*)HMACKey;
- (void)setHMACKey:(NSString*)newHMACKey;

@property (nonatomic,readwrite,assign,getter=HMACKeyB,setter=setHMACKeyB:) NSData* HMACKeyB; - (NSData*)HMACKeyB; - (void)setHMACKeyB:(NSData*)newHMACKey;
#define PID_XMLSIG_HMACKEY 7

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

Default Value

""

Remarks

This property defines the HMAC key to be used when SigningAlgorithm is set to "HMAC-SHA1". This must be set before calling before calling Sign.

This property is also applicable when calling VerifySignature. This may be set before calling VerifySignature or from within the SignatureInfo event.

This property is not available at design time.

Data Type

Binary String

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