API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IHASHCTX_FINAL()

Brew Release
Brew MP 1.0.2
See Also
Error Codes IHashCtx
Description
This function should be called to get the hashed result after all the calls to IHashCtx_Update().
Params
po
[]:
pointer to the IHashCtx interface object.
pCTX
[]:
pointer to a hash context structure.
nCTXSize
[]:
the size of the hash context structure.
pbData
[out]:
pointer to the buffer to get the hashed result. pnDataLen [in/out]: pointer to the size of the buffer pbData. On return, contains the size of the hashed result.
Interface
Prototype
  •   int IHashCtx_Final(IHashCtx* pif, void* pCTX, int nCTXSize,
                         byte* pbData, int* pnDataLen);
    
Return
  • AEE_SUCCESS : success. AEESEC_HASH_MORE_DATA : buffer not large enough to hold hashed result. AEESEC_HASH_INVALID_CTX : nCTXSize is less than the required context size. AEESEC_CRYPT_INVALID_KEY : IHashCtx_SetKey has not been called since the last call to IHashCtx_Init, and the hash is a keyed hash.
Side Effect
  • None
Comments
None