BCrypt: Fix bcrypt_keypair
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
289aab2354
commit
acea29ac6d
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user