[gnutls-devel] GnuTLS | use bcrypt for the windows random generator instead of wincrypt (!1255)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue May 19 13:50:07 CEST 2020



Steve Lhomme created a merge request: https://gitlab.com/gnutls/gnutls/-/merge_requests/1255

Project:Branches: robUx4/gnutls:nowincrypt to gnutls/gnutls:master
Author:    Steve Lhomme



Wincrypt is deprecated and replaced by bcrypt. (see https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom)

BCrypt is available in Win10 apps when wincrypt APIs are not. (see https://docs.microsoft.com/en-us/uwp/win32-and-com/win32-apis#apis-from-ncryptdll)

When building for Vista and up bcrypt is automatically picked and linked statically.
(by default mingw targets XP)

This patch will conflict with !1254 depending on which is merged first. They rely on the same Vista detection but work independently.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1255
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200519/948e99e2/attachment.html>


More information about the Gnutls-devel mailing list