DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
HMACSHA256.h
Go to the documentation of this file.
1
3
4
#pragma once
5
6
#include "
Common.h
"
7
#include "
System/Object.h
"
8
#include "
System/Array.h
"
9
10
namespace
DotNetDupe
{
11
namespace
System
{
12
namespace
Security
{
13
namespace
Cryptography
{
14
20
class
HMACSHA256
:
public
Object
{
21
public
:
23
DOTNETDUPE_API
HMACSHA256
();
24
27
DOTNETDUPE_API
explicit
HMACSHA256
(
const
Array<char>
& key);
28
30
DOTNETDUPE_API
~HMACSHA256
() =
default
;
31
35
DOTNETDUPE_API
Array<char>
ComputeHash
(
const
Array<char>
& buffer);
36
41
DOTNETDUPE_API
static
Array<char>
ComputeHash
(
const
Array<char>
& buffer,
const
Array<char>
& key);
42
43
private
:
44
Array<char>
m_key;
45
};
46
47
}
48
}
49
}
50
}
Array.h
Provides methods for creating, manipulating, searching, and sorting arrays.
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
Object.h
Base object class for DotNetDupe mirroring .NET System.Object.
DotNetDupe::System::Array
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition
Array.h:29
DotNetDupe::System::Object
Supports all classes in the DotNetDupe class hierarchy.
Definition
Object.h:18
DotNetDupe::System::Security::Cryptography::HMACSHA256::HMACSHA256
HMACSHA256()
Initializes a new instance of the HMACSHA256 class with a randomly generated key.
Definition
HMACSHA256.cpp:151
DotNetDupe::System::Security::Cryptography::HMACSHA256::ComputeHash
Array< char > ComputeHash(const Array< char > &buffer)
Computes the HMAC hash value for the specified byte array.
Definition
HMACSHA256.cpp:159
DotNetDupe::System::Security::Cryptography::HMACSHA256::~HMACSHA256
~HMACSHA256()=default
Default virtual destructor.
DotNetDupe::System::Security::Cryptography
Definition
HMACSHA256.h:13
DotNetDupe::System::Security
Definition
HMACSHA256.h:12
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
Security
Cryptography
HMACSHA256.h
Generated by
1.18.0