BCrypt: Fix bcrypt_keypair

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2025-01-28 10:07:24 +01:00
parent 289aab2354
commit acea29ac6d

View File

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