EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TElHMACKeyMaterial.Assign throws exception "Not implemented"

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#28007
Posted: 01/15/2014 04:17:58
by Peter Palotas (Basic support level)
Joined: 11/01/2012
Posts: 49

Having an instance of TElHMACKeyMaterial and calling Assign on it generates an exception saying "Not implemented".

For example:
Code
TElHMACKeyMaterial key1 = new TElHMACKeyMaterial();
key1.Key = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
TElHMACKeyMaterial key2 = new TElHMACKeyMaterial();
key2.Assign(key1);
#28008
Posted: 01/15/2014 04:22:33
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Indeed its not implemented. Do you have any reasons to use this method? You can simply use next code:

Code
TElHMACKeyMaterial key1 = new TElHMACKeyMaterial();
key1.Key = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
TElHMACKeyMaterial key2 = new TElHMACKeyMaterial();
key2.Key = key1.Key;
#28009
Posted: 01/15/2014 04:26:18
by Peter Palotas (Basic support level)
Joined: 11/01/2012
Posts: 49

It is not a major problem in my case, just wanted to report this as it would be a problem if I had a method working with the base class TElKeyMaterial and needed to make a copy of that key there.

Reply

Statistics

Topic viewed 687 times

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




|

Back to top

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

Got it!