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); } };