![]() ![]() ![]()
|
BREW C++ Class Library & GUI Framework & XML Middleware : SophiaFramework 4.1 |

| BREW 2.0 | BREW 2.1 | BREW 3.1 |
|---|---|---|
| O | O | O |
| Public Functions | |
|---|---|
| SFCError |
Final(
VoidPtr hash
, SInt32 hashSize
, VoidPtr result
, SInt32Ptr resultSize
) Final( SFXBufferPtr hash , SFXBufferPtr result )
Get the hashed result after all the calls to SFBHashCTX::Update().
|
| Void |
Init(
VoidPtr hash
, SInt32 hashSize
) Init( SFXBufferPtr hash )
Start or restart the hashing process.
|
| static SFBHashCTXSmp |
NewInstance(
AEECLSID clsid
)
Create a new instance of SFBHashCTX class.
|
| Void |
Update(
VoidPtr hash
, SInt32 hashSize
, VoidConstPtr data
, SInt32 dataLength
) Update( SFXBufferPtr hash , SFXBufferConstRef data )
Feed data to the hash object.
|
| SFCError |
QueryInterface(
AEECLSID clsid
, VoidHandle handle
)
(inherits from SFBQuery)
QueryInterface( AEECLSID clsid , SFBBaseSmpPtr handle ) (inherits from SFBQuery) Ask an object for another API contract from the object in question.
|
| SFBBaseSmp |
QueryInterface(
AEECLSID clsid
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
| Void |
Self(
AEECLSID clsidReq
, SFBQuerySmpPtr clone
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
| SFBQuerySmp |
Self(
AEECLSID clsidReq
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
[ public ] SFCError Final( VoidPtr hash // pointer to a hash context structure SInt32 hashSize // the size of the hash context structure VoidPtr result // pointer to the data to get the hashed result SInt32Ptr resultSize // pointer to the size of the buffer Data. // on return, this contains the size of the hashed result );
[ public ] SFCError Final( SFXBufferPtr hash // pointer to a hash context structure SFXBufferPtr result // pointer to the data to get the hashed result. // the size of the data can be modified automatically );
Warning: Buffer size can not over the limit of a SInt32 value.
[ public ] Void Init( VoidPtr hash // pointer to a hash context structure SInt32 hashSize // the size of the hash context structure );
[ public ] Void Init( SFXBufferPtr hash // pointer to a hash context structure. // if null, do nothing );
This is required if you need to hash new streams of data.
[ public, static ] SFBHashCTXSmp NewInstance( AEECLSID clsid // ClassID of Hash algorithm );
The available ClassID is as below.
| AEECLSID_MD2 |
| AEECLSID_MD5 |
| AEECLSID_SHA1 |
[ public ] Void Update( VoidPtr hash // pointer to a hash context structure SInt32 hashSize // the size of the hash context structure VoidConstPtr data // pointer to the data to be hashed SInt32 dataLength // length of the data to be hashed(stored in data) );
[ public ] Void Update( SFXBufferPtr hash // pointer to a hash context structure // if null,do nothing SFXBufferConstRef data // pointer to the data to be hashed );
This function can be called multiple times to hash long streams or discontinous streams of data.
|
Copyright (C) 2002 - 2009 Sophia Cradle, Inc. All Rights Reserved. |
![]() ![]() ![]()
|