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

SHA-1 Cryptographics Hash. More...

#include <wxex/crypto.h>

Inheritance diagram for wxCryptoHashSHA1:
wxCryptoHash

Public Member Functions

 wxCryptoHashSHA1 (wxCryptoSession &session)
 Creates a new cryptographics SHA-1 hash.
 
virtual bool GetValue (wxMemoryBuffer &hash)
 Finish hashing and return hash data.
 
- Public Member Functions inherited from wxCryptoHash
 wxCryptoHash ()
 Creates a new cryptographics hash.
 
virtual ~wxCryptoHash ()
 Destructor.
 
bool IsOk () const noexcept
 Has the hash creation been successful?
 
 operator HCRYPTHASH () const noexcept
 
bool Hash (_In_reads_bytes_(size) const void *data, size_t size)
 Hashes given block of data.
 
bool Hash (const wxMemoryBuffer &data)
 Hashes given block of data.
 
bool HashAsUTF8 (const wxString &str)
 Converts string to UTF-8 and hashes it.
 
bool HashFile (const wxString &fileName)
 Hashes a file.
 
bool Sign (wxMemoryBuffer &signature)
 Signs the hash using session key.
 
wxMemoryBuffer Sign ()
 Signs the hash using session key.
 

Additional Inherited Members

- Protected Attributes inherited from wxCryptoHash
HCRYPTHASH m_h
 Hash Handle.
 

Detailed Description

SHA-1 Cryptographics Hash.

Member Function Documentation

◆ GetValue()

bool wxCryptoHashSHA1::GetValue ( wxMemoryBuffer & hash)
virtual

Finish hashing and return hash data.

Parameters
[out]hashHash data
Returns
  • true if succeeded
  • false otherwise

Reimplemented from wxCryptoHash.


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