HMACAlgorithm Property
The HMAC algorithm to use during encryption.
Syntax
ANSI (Cross Platform) int GetHMACAlgorithm();
int SetHMACAlgorithm(int iHMACAlgorithm); Unicode (Windows) INT GetHMACAlgorithm();
INT SetHMACAlgorithm(INT iHMACAlgorithm);
Possible Values
IES_HMACSHA1(0),
IES_HMACSHA224(1),
IES_HMACSHA256(2),
IES_HMACSHA384(3),
IES_HMACSHA512(4),
IES_HMACRIPEMD160(5)
@property (nonatomic,readwrite,assign,getter=HMACAlgorithm,setter=setHMACAlgorithm:) int HMACAlgorithm; - (int)HMACAlgorithm; - (void)setHMACAlgorithm:(int)newHMACAlgorithm;
Possible Values
IES_HMACSHA1(0),
IES_HMACSHA224(1),
IES_HMACSHA256(2),
IES_HMACSHA384(3),
IES_HMACSHA512(4),
IES_HMACRIPEMD160(5)
#define PID_ECC_HMACALGORITHM 7 IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_ECC_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_ECC_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
2
Remarks
This property specifies the HMAC algorithm to use when encrypting. The HMAC algorithm is used when Encrypt and Decrypt are called to protect and verify data. Possible values are:
- 0 (iesHMACSHA1)
- 1 (iesHMACSHA224)
- 2 (iesHMACSHA256 - Default)
- 3 (iesHMACSHA384)
- 4 (iesHMACSHA512)
- 5 (iesHMACRIPEMD160)
This property is only applicable when calling Encrypt or Decrypt.
Data Type
Integer