EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Problems using TElHashFunction in BCB

Posted: 06/16/2008 10:48:33
by Jascha Koch (Basic support level)
Joined: 06/16/2008
Posts: 2

Hi there,

i'm trying to do some SHA1 hashing in my application.
I've tried it as described in some topics there in the forum, but C++ Builder 2007 always produces a "[BCC32 Fehler] E2285 Could not find a match for 'TElHashFunction::TElHashFunction(const TElHashFunction&)'".
This error seems a little confusing to me.

TElHashFunction Hash = new TElHashFunction(Sbconstants::SB_ALGORITHM_DGST_SHA1, (Sbcryptoprov::TElCustomCryptoProvider*)NULL);

The same when i'm setting a valid CryptoProvider.

Any suggestions?

Thanks in advance
Posted: 06/17/2008 11:09:30
by Ken Ivanov (Team)

Please use the following syntax instead (note that the Hash variable is declared as TElHashFunction*, not TElHashFunction):

TElHashFunction* Hash = new TElHashFunction(Sbconstan­ts::SB_ALGORITHM_DGST_SHA­1, (Sbcryptoprov::TElCustomC­ryptoProvider*)NULL);
Posted: 06/18/2008 06:03:02
by Jascha Koch (Basic support level)
Joined: 06/16/2008
Posts: 2

Ahrgg... Sometimes you don't see the wood for the trees!

Thank you very much!



Topic viewed 2156 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!