Algorithm Property
The algorithm used to create the hash.
Syntax
ANSI (Cross Platform) int GetAlgorithm();
int SetAlgorithm(int iAlgorithm); Unicode (Windows) INT GetAlgorithm();
INT SetAlgorithm(INT iAlgorithm);
Possible Values
HA_SHA1(0),
HA_SHA224(1),
HA_SHA256(2),
HA_SHA384(3),
HA_SHA512(4),
HA_MD2(5),
HA_MD4(6),
HA_MD5(7),
HA_RIPEMD160(8),
HA_MD5SHA1(9),
HA_HMACMD5(10),
HA_HMACSHA1(11),
HA_HMACSHA224(12),
HA_HMACSHA256(13),
HA_HMACSHA384(14),
HA_HMACSHA512(15),
HA_HMACRIPEMD160(16),
HA_SHA3_224(17),
HA_SHA3_256(18),
HA_SHA3_384(19),
HA_SHA3_512(20),
HA_SHA512_224(21),
HA_SHA512_256(22)
@property (nonatomic,readwrite,assign,getter=algorithm,setter=setAlgorithm:) int algorithm; - (int)algorithm; - (void)setAlgorithm:(int)newAlgorithm;
Possible Values
HA_SHA1(0),
HA_SHA224(1),
HA_SHA256(2),
HA_SHA384(3),
HA_SHA512(4),
HA_MD2(5),
HA_MD4(6),
HA_MD5(7),
HA_RIPEMD160(8),
HA_MD5SHA1(9),
HA_HMACMD5(10),
HA_HMACSHA1(11),
HA_HMACSHA224(12),
HA_HMACSHA256(13),
HA_HMACSHA384(14),
HA_HMACSHA512(15),
HA_HMACRIPEMD160(16),
HA_SHA3_224(17),
HA_SHA3_256(18),
HA_SHA3_384(19),
HA_SHA3_512(20),
HA_SHA512_224(21),
HA_SHA512_256(22)
#define PID_HASH_ALGORITHM 1 IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_Hash_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_Hash_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
2
Remarks
This property specifies the algorithm used when calling ComputeHash. Possible values are:
0 (haSHA1) | SHA1 |
1 (haSHA224) | SHA-224 |
2 (haSHA256 - default) | SHA-256 |
3 (haSHA384) | SHA-384 |
4 (haSHA512) | SHA-512 |
5 (haMD2) | MD2 |
6 (haMD4) | MD4 |
7 (haMD5) | MD5 |
8 (haRIPEMD160) | RIPEMD-160 |
9 (haMD5SHA1) | MD5SHA1 |
10 (haHMACMD5) | HMAC-MD5 |
11 (haHMACSHA1) | HMAC-SHA1 |
12 (haHMACSHA224) | HMAC-SHA224 |
13 (haHMACSHA256) | HMAC-SHA256 |
14 (haHMACSHA384) | HMAC-SHA384 |
15 (haHMACSHA512) | HMAC-SHA512 |
16 (haHMACRIPEMD160) | HMAC-RIPEMD-160 |
17 (haSHA3_224) | SHA-3-224 (originally known as Keccak) |
18 (haSHA3_256) | SHA-3-256 (originally known as Keccak) |
19 (haSHA3_384) | SHA-3-384 (originally known as Keccak) |
20 (haSHA3_512) | SHA-3-512 (originally known as Keccak) |
21 (haSHA512_224) | SHA-512/224 |
22 (haSHA512_256) | SHA-512/256 |
Data Type
Integer