On Wed, Jan 6, 2016 at 8:19 PM, Hans Leidekker hans@codeweavers.com wrote:
Signed-off-by: Hans Leidekker hans@codeweavers.com
configure.ac | 18 +++++++++ dlls/bcrypt/Makefile.in | 1 + dlls/bcrypt/bcrypt_main.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+)
Hi, Hans. Great job in the patch series, but Is this change really necessary? Can't we reuse the internal libraries from rsaenh? I think it was a copy of tomcrypt lib, I'm not able to check right now. By using rsaenh or moving the tomcrypt to a more generic place it could be reused without need for external dependencies, right? Unless I'm missing something obvious.
Best wishes, Bruno
Hi Bruno,
On Wed, Jan 6, 2016 at 8:19 PM, Hans Leidekker hans@codeweavers.com wrote:
Signed-off-by: Hans Leidekker hans@codeweavers.com
configure.ac | 18 +++++++++ dlls/bcrypt/Makefile.in | 1 + dlls/bcrypt/bcrypt_main.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+)
Hi, Hans. Great job in the patch series, but Is this change really necessary? Can't we reuse the internal libraries from rsaenh? I think it was a copy of tomcrypt lib, I'm not able to check right now. By using rsaenh or moving the tomcrypt to a more generic place it could be reused without need for external dependencies, right? Unless I'm missing something obvious.
rsaenh can only cover part of what bcrypt needs. Moving tomcrypt to a central place would solve that but I think this is discouraged in Wine. In such cases it may be better to reimplement the old interface on top the new one.
Nettle appears to be well-maintained. I don't know if that's true for tomcrypt but we have probably diverged from it since the fork. Nettle is also already an indirect dependency of Wine because GnuTLS depends on it.
On Wed, Jan 6, 2016 at 9:44 PM, Hans Leidekker hans@codeweavers.com wrote:
Hi Bruno,
On Wed, Jan 6, 2016 at 8:19 PM, Hans Leidekker hans@codeweavers.com wrote:
Signed-off-by: Hans Leidekker hans@codeweavers.com
configure.ac | 18 +++++++++ dlls/bcrypt/Makefile.in | 1 + dlls/bcrypt/bcrypt_main.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 114 insertions(+)
Hi, Hans. Great job in the patch series, but Is this change really necessary? Can't we reuse the internal libraries from rsaenh? I think it was a copy of tomcrypt lib, I'm not able to check right now. By using rsaenh or moving the tomcrypt to a more generic place it could be reused without need for external dependencies, right? Unless I'm missing something obvious.
rsaenh can only cover part of what bcrypt needs. Moving tomcrypt to a central place would solve that but I think this is discouraged in Wine. In such cases it may be better to reimplement the old interface on top the new one.
Nettle appears to be well-maintained. I don't know if that's true for tomcrypt but we have probably diverged from it since the fork. Nettle is also already an indirect dependency of Wine because GnuTLS depends on it.
Ok, thanks for the explanation. In this case I think a winediag trace would be useful like we do with winbind and gnutls to warn the user and help us when bugs start popping up due to missing Nettle.
Hans Leidekker hans@codeweavers.com writes:
Nettle appears to be well-maintained. I don't know if that's true for tomcrypt but we have probably diverged from it since the fork. Nettle is also already an indirect dependency of Wine because GnuTLS depends on it.
GnuTLS is loaded dynamically though. You should do the same for Nettle.