IPWorks Encrypt 2020 C++ Edition

Questions / Feedback?

HashValue Property

The hash value of the data.

Syntax

ANSI (Cross Platform)
int GetHashValue(char* &lpHashValue, int &lenHashValue);
int SetHashValue(const char* lpHashValue, int lenHashValue); Unicode (Windows) INT GetHashValue(LPSTR &lpHashValue, INT &lenHashValue);
INT SetHashValue(LPCSTR lpHashValue, INT lenHashValue);
@property (nonatomic,readwrite,assign,getter=hashValue,setter=setHashValue:) NSString* hashValue;
- (NSString*)hashValue;
- (void)setHashValue:(NSString*)newHashValue;

@property (nonatomic,readwrite,assign,getter=hashValueB,setter=setHashValueB:) NSData* hashValueB; - (NSData*)hashValueB; - (void)setHashValueB:(NSData*)newHashValue;
#define PID_DSA_HASHVALUE 8

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

""

Remarks

This property holds the computed hash value for the specified data. This is populated when calling Sign or VerifySignature when an input file is specified by setting InputFile or InputMessage.

If you know the hash value prior to using the class you may specify the pre-computed hash value here.

Hash Notes

The class will determine whether or not to recompute the hash based on the properties that are set. If a file is specified by InputFile or InputMessage the hash will be recomputed when calling Sign or VerifySignature. If the HashValue property is set the class will only sign the hash or verify the hash signature. Setting InputFile or InputMessage clears the HashValue property. Setting the HashValue property clears the input file selection.

Data Type

Binary String

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