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


API Reference


Brew Release
Brew MP 1.0.2
IHashCtx is an interface to cryptographic hashes. This interface can be used in a way similar to the common open source implementations of these hashes where the caller allocates and manages the storage for the hash's internal context. For a given type of hash you can create only one instance of this interface in your app and use it with multiple contexts.
CreateInstance on hash implementations with this interface usually allocates no memory.
This interface also supports keyed hashes, such as HMAC (specified by RFC 2104). When using keyed hashes you must call IHashCtx_SetKey immediately following IHashCtx_Init and prior to any calls to IHashCtx_Update.