HashAlgorithm Property
The hash algorithm used for hash computation.
Syntax
ANSI (Cross Platform) int GetHashAlgorithm();
int SetHashAlgorithm(int iHashAlgorithm); Unicode (Windows) INT GetHashAlgorithm();
INT SetHashAlgorithm(INT iHashAlgorithm);
Possible Values
DHA_SHA1(0),
DHA_SHA224(1),
DHA_SHA256(2),
DHA_SHA384(3),
DHA_SHA512(4),
DHA_RIPEMD160(5)
@property (nonatomic,readwrite,assign,getter=hashAlgorithm,setter=setHashAlgorithm:) int hashAlgorithm; - (int)hashAlgorithm; - (void)setHashAlgorithm:(int)newHashAlgorithm;
Possible Values
DHA_SHA1(0),
DHA_SHA224(1),
DHA_SHA256(2),
DHA_SHA384(3),
DHA_SHA512(4),
DHA_RIPEMD160(5)
#define PID_DSA_HASHALGORITHM 6 IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_DSA_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_DSA_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
2
Remarks
This property specifies the hash algorithm used for hash computation. This is only applicable when calling Sign or VerifySignature and HashValue is computed. Possible values are:
0 (dhaSHA1) | SHA-1 |
1 (dhaSHA224) | SHA-224 |
2 (dhaSHA256 - default) | SHA-256 |
3 (dhaSHA384) | SHA-384 |
4 (dhaSHA512) | SHA-512 |
5 (dhaRIPEMD160) | RIPEMD-160 |
Data Type
Integer