IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

SignatureHashAlgorithm Property

The signature hash algorithm used during signing.

Syntax

ANSI (Cross Platform)
char* GetSignatureHashAlgorithm();
int SetSignatureHashAlgorithm(const char* lpszSignatureHashAlgorithm); Unicode (Windows) LPWSTR GetSignatureHashAlgorithm();
INT SetSignatureHashAlgorithm(LPCWSTR lpszSignatureHashAlgorithm);
@property (nonatomic,readwrite,assign,getter=signatureHashAlgorithm,setter=setSignatureHashAlgorithm:) NSString* signatureHashAlgorithm;
- (NSString*)signatureHashAlgorithm;
- (void)setSignatureHashAlgorithm:(NSString*)newSignatureHashAlgorithm;
#define PID_CMS_SIGNATUREHASHALGORITHM 23

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

Default Value

"SHA256"

Remarks

This property specifies the signature hash algorithm used when Sign is called.

When Sign is called the input data is first hashed with the algorithm specified by this property to produce a message digest. The computed digest is then digitally signed with the certificates specified in Certificates.

The value specified here may be the name of the algorithm or the corresponding OID. Possible values are:

  • "SHA-256" (default)
  • "SHA-384"
  • "SHA-512"
  • "SHA-224"
  • "SHA1"
  • "MD5"

Data Type

String

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