KeyLength Property
The desired length in bits of the derived key.
Syntax
ANSI (Cross Platform) int GetKeyLength();
int SetKeyLength(int iKeyLength); Unicode (Windows) INT GetKeyLength();
INT SetKeyLength(INT iKeyLength);
@property (nonatomic,readwrite,assign,getter=keyLength,setter=setKeyLength:) int keyLength; - (int)keyLength; - (void)setKeyLength:(int)newKeyLength;
#define PID_PBKDF_KEYLENGTH 4 IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_PBKDF_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_PBKDF_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
1024
Remarks
This property specifies the length in bits of the Key.
The provided value must be divisible by 8. The default value is 1024.
Note: When Version is set to PBKDF1 certain restrictions apply. When Algorithm is set to MD5 the maximum length is 128. When Algorithm is set to SHA1 the maximum value is 160.
Data Type
Integer