Algorithm Property
The underlying pseudorandom function.
Syntax
ANSI (Cross Platform) int GetAlgorithm();
int SetAlgorithm(int iAlgorithm); Unicode (Windows) INT GetAlgorithm();
INT SetAlgorithm(INT iAlgorithm);
Possible Values
PB_HMACSHA1(0),
PB_HMACSHA224(1),
PB_HMACSHA256(2),
PB_HMACSHA384(3),
PB_HMACSHA512(4),
PB_HMACMD5(5),
PB_HMACRIPEMD160(6),
PB_SHA1(7),
PB_MD5(8),
PB_MD2(9)
@property (nonatomic,readwrite,assign,getter=algorithm,setter=setAlgorithm:) int algorithm; - (int)algorithm; - (void)setAlgorithm:(int)newAlgorithm;
Possible Values
PB_HMACSHA1(0),
PB_HMACSHA224(1),
PB_HMACSHA256(2),
PB_HMACSHA384(3),
PB_HMACSHA512(4),
PB_HMACMD5(5),
PB_HMACRIPEMD160(6),
PB_SHA1(7),
PB_MD5(8),
PB_MD2(9)
#define PID_PBKDF_ALGORITHM 1 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
0
Remarks
This property specifies the algorithm used for the pseudo random function. Possible values are:
0 (pbHMACSHA1 - default) | HMAC-SHA1, The default value and most commonly used. |
1 (pbHMACSHA224) | HMAC-SHA224 |
2 (pbHMACSHA256) | HMAC-SHA256 |
3 (pbHMACSHA384) | HMAC-SHA284 |
4 (pbHMACSHA512) | HMAC-SHA512 |
5 (pbHMACMD5) | HMAC-MD5 |
6 (pbHMACRIPEMD160) | HMAC-RIPEMD160 |
7 (pbSHA1) | SHA1, Only used with PBKDF1. |
8 (pbMD5) | MD5, Only used with PBKDF1. |
9 (pbMD2) | MD2, Only used with PBKDF1. |
Note: When using PBDKF1 the maximum KeyLength value is 160 bits for SHA1, and 128 bits for MD2 and MD5.
Data Type
Integer