IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

HashAlgorithm Property

The hash algorithm used for signing and signature verification.

Syntax

ANSI (Cross Platform)
int GetHashAlgorithm();
int SetHashAlgorithm(int iHashAlgorithm); Unicode (Windows) INT GetHashAlgorithm();
INT SetHashAlgorithm(INT iHashAlgorithm);

Possible Values

RHA_SHA1(0), 
RHA_SHA224(1),
RHA_SHA256(2),
RHA_SHA384(3),
RHA_SHA512(4),
RHA_RIPEMD160(5),
RHA_MD2(6),
RHA_MD5(7),
RHA_MD5SHA1(8)
@property (nonatomic,readwrite,assign,getter=hashAlgorithm,setter=setHashAlgorithm:) int hashAlgorithm;
- (int)hashAlgorithm;
- (void)setHashAlgorithm:(int)newHashAlgorithm;

Possible Values

RHA_SHA1(0), 
RHA_SHA224(1),
RHA_SHA256(2),
RHA_SHA384(3),
RHA_SHA512(4),
RHA_RIPEMD160(5),
RHA_MD2(6),
RHA_MD5(7),
RHA_MD5SHA1(8)
#define PID_RSA_HASHALGORITHM 6

IPWORKSENCRYPT_EXTERNAL void* IPWORKSENCRYPT_CALL IPWorksEncrypt_RSA_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSENCRYPT_EXTERNAL int IPWORKSENCRYPT_CALL IPWorksEncrypt_RSA_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

2

Remarks

This property specifies the hash algorithm used for signing and signature verification. Possible values are:

0 (rhaSHA1) SHA-1
1 (rhaSHA224) SHA-224
2 (rhaSHA256 - default) SHA-256
3 (rhaSHA384) SHA-384
4 (rhaSHA512) SHA-512
5 (rhaRIPEMD160) RIPEMD-160
6 (rhaMD2) MD2
7 (rhaMD5) MD5
8 (rhaMD5SHA1) MD5SHA1

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 C++ Edition - Version 20.0 [Build 8155]