EldoS | Feel safer!

Software components for data protection, secure storage and transfer

any hash API?

Posted: 07/23/2006 21:59:44
by Gloria Ho (Standard support level)
Joined: 07/20/2006
Posts: 12

I find HashAlgorithm can be defined in some units.

If I want to hash (like SHA1) data before encryption, is any individual API can do so? 8)
Posted: 07/24/2006 00:49:03
by Ken Ivanov (Team)

Yes, but this API is considered internal and that's why it is not documented. The TElHashFunction class declared in SBHashFunction namespace seems to be the one you need. It should be used in the following way:
byte[] hashInput = new byte[5] { 1, 2, 3, 4, 5 };      
TElHashFunction hash = new TElHashFunction(SBConstants.Unit.SB_ALGORITHM_DGST_SHA1);
hash.Update(hashInput, 0, hashInput.Length);
byte[] hashResult = hash.Finish();



Topic viewed 3250 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!