Topic: wc_FreeDhKey does not actually clean up the DH key context data

I think the implementation of wc_FreeDhKey() function might have some problem. It just simply void the pointer. However, after calling wc_FreeDhKey, I can see the key context data is still there. And I am able to reuse the DhKey even after wc_FreeDhKey.

Share

2 (edited by Kaleb J. Himes 2015-08-06 15:19:54)

Re: wc_FreeDhKey does not actually clean up the DH key context data

Hi sissiok. Are you using fastmath? I ask because this will modify the behavior of wc_freeDhKey. If you are unsure please reference options.h and see if fastmath is defined in there.

Regards