GetInfo
Synopsis
#include "fmciphobj.h"
int (*GetInfo)(struct HashObj * ctx, struct HashInfo * hinfo);
Description
HashObjGetInfo will return information about an initialized HashObj. No sensitive information is returned by this function.
Parameters
Parameter |
Description |
---|---|
ctx
|
IN object to query |
hinfo
|
OUT pointer to where to store the result (see the HashInfo description below) |
HashInfo Structure
Allows application to determine characteristics of the digest algorithm.
struct HashInfo {
char name[32];/**< null terminated ascii string e.g. "SHA-1" */
unsigned int blockLength;/**< optimal hash block size */
unsigned int hashLength;/**< size of hash value */
struct HashObj * hobj; /**< version 1 */
};
typedef struct HashInfo HashInfo;
Return Value
See CiphObjStat in cipherr.h