wxExtend
Additional templates and function helpers for wxWidgets
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
wxCryptoKey Class Reference

Cryptographics Key Base. More...

#include <wxex/crypto.h>

Public Member Functions

 wxCryptoKey ()
 Creates a new cryptographics key.
 
virtual ~wxCryptoKey ()
 Destructor.
 
bool IsOk () const noexcept
 Has the key creation been successful?
 
 operator HCRYPTKEY () const noexcept
 
bool ImportPrivate (wxCryptoSession &session, _In_reads_bytes_(size) const void *data, size_t size)
 Imports private key.
 
bool ImportPublic (wxCryptoSession &session, _In_reads_bytes_(size) const void *data, size_t size)
 Imports public key.
 

Protected Attributes

HCRYPTKEY m_h
 Key Handle.
 

Detailed Description

Cryptographics Key Base.

Member Function Documentation

◆ IsOk()

bool wxCryptoKey::IsOk ( ) const
inlinenoexcept

Has the key creation been successful?

Returns
  • true if creation succeeded
  • false otherwise

◆ operator HCRYPTKEY()

wxCryptoKey::operator HCRYPTKEY ( ) const
inlinenoexcept
Returns
Key handle to be used in native API calls.

The documentation for this class was generated from the following files: