KDFHashAlgorithm Property
The KDF hash algorithm to use when encrypting and decrypting.
Syntax
ANSI (Cross Platform) int GetKDFHashAlgorithm();
int SetKDFHashAlgorithm(int iKDFHashAlgorithm); Unicode (Windows) INT GetKDFHashAlgorithm();
INT SetKDFHashAlgorithm(INT iKDFHashAlgorithm);
Possible Values
IES_SHA1(0),
IES_SHA224(1),
IES_SHA256(2),
IES_SHA384(3),
IES_SHA512(4)
@property (nonatomic,readwrite,assign,getter=KDFHashAlgorithm,setter=setKDFHashAlgorithm:) int KDFHashAlgorithm; - (int)KDFHashAlgorithm; - (void)setKDFHashAlgorithm:(int)newKDFHashAlgorithm;
Possible Values
IES_SHA1(0),
IES_SHA224(1),
IES_SHA256(2),
IES_SHA384(3),
IES_SHA512(4)
#define PID_ECC_KDFHASHALGORITHM 12 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 hash algorithm to use in when deriving a key using the specified KDF. Possible values are:
- 0 (iesSHA1)
- 1 (iesSHA224)
- 2 (iesSHA256)
- 3 (iesSHA384)
- 4 (iesSHA512)
This property is only applicable when calling Encrypt or Decrypt.
Data Type
Integer