DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
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
10namespace DotNetDupe {
11 namespace System {
12 namespace Security {
13 namespace Cryptography {
14
20 class HMACSHA256 : public Object {
21 public:
24
27 DOTNETDUPE_API explicit HMACSHA256(const Array<char>& key);
28
31
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}
Provides methods for creating, manipulating, searching, and sorting arrays.
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Base object class for DotNetDupe mirroring .NET System.Object.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition Array.h:29
Supports all classes in the DotNetDupe class hierarchy.
Definition Object.h:18
HMACSHA256()
Initializes a new instance of the HMACSHA256 class with a randomly generated key.
Array< char > ComputeHash(const Array< char > &buffer)
Computes the HMAC hash value for the specified byte array.
~HMACSHA256()=default
Default virtual destructor.