On Friday 05 November 2004 21:50, Vincent Béron wrote:
Le jeu 04/11/2004 à 16:15, Alexandre Julliard a écrit :
Log message: Michael Jung mjung@iss.tu-darmstadt.de Implemented a substantial part of rsaenh.dll.
The committed patch doesn't compile on RH8. OpenSSL doesn't use the same name for some datatypes/functions as the version used by Michael (actually the prototype is different as well).
...
Hi Vincent,
sorry for causing you problems.
- pbKeyStream_no_const = StrDupA(pbKeyStream);
- encrypt_block_impl(pPubKey->aiAlgid, &pPubKey->context,
pbKeyStream_no_const, pbDecrypted,
This doesn't seem to be correct. You can't apply a string duplication function to clone a pbKeyStream since it is not a zero terminated string. I also don't consider it beneficial to have a dependecy on shlwapi for this API. Furthermore, I think this duplication should be done inside encrypt_block_impl (if at all).
I'm currently working on integrating source code from LibTomCrypt into rsaenh, which will help us to get rid of the OpenSSL dependency. I'm hoping to get it ready for the weekend.
Greetings, Michael