From acea29ac6d4cfe7de59871c4b795304f50c00151 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 28 Jan 2025 10:07:24 +0100 Subject: [PATCH] BCrypt: Fix bcrypt_keypair Signed-off-by: Simon Rozman --- include/WinStd/BCrypt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/WinStd/BCrypt.h b/include/WinStd/BCrypt.h index 03b15394..559e0ebb 100644 --- a/include/WinStd/BCrypt.h +++ b/include/WinStd/BCrypt.h @@ -285,7 +285,7 @@ namespace winstd /// /// Releases the algorithm provider. /// - /// \sa [BCryptCloseAlgorithmProvider function](https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptclosealgorithmprovider) + /// \sa [BCryptDestroyKey function](https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptdestroykey) /// virtual ~bcrypt_keypair() { @@ -297,11 +297,11 @@ namespace winstd /// /// Releases the algorithm provider. /// - /// \sa [BCryptCloseAlgorithmProvider function](https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptclosealgorithmprovider) + /// \sa [BCryptDestroyKey function](https://learn.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptdestroykey) /// void free_internal() noexcept override { - BCryptCloseAlgorithmProvider(m_h, 0); + BCryptDestroyKey(m_h); } };