CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
asymmetric_signature_formatter.h
1
2#ifndef _security_asymmetric_signature_formatter_h_
3#define _security_asymmetric_signature_formatter_h_
4
5#include <system/string.h>
6#include <system/shared_ptr.h>
7#include <system/object.h>
8#include <system/array.h>
9#include <security/cryptography/hash_algorithm.h>
10#include <security/cryptography/asymmetric_algorithm.h>
11
12namespace System {
13namespace Security {
14namespace Cryptography {
15
20class ASPOSECPP_SHARED_CLASS ABSTRACT AsymmetricSignatureFormatter : public System::Object
21{
27 ASPOSECPP_SHARED_RTTI_INFO_DECL();
28
29public:
33 virtual ASPOSECPP_SHARED_API System::ArrayPtr<uint8_t> CreateSignature(System::ArrayPtr<uint8_t> rgbHash) = 0;
40 virtual ASPOSECPP_SHARED_API void SetHashAlgorithm(System::String strName) = 0;
43 virtual ASPOSECPP_SHARED_API void SetKey(System::SharedPtr<AsymmetricAlgorithm> key) = 0;
44
45protected:
47 ASPOSECPP_SHARED_API AsymmetricSignatureFormatter();
48};
49
50} // namespace Cryptography
51} // namespace Security
52} // namespace System
53
54#endif // _security_asymmetric_signature_formatter_h_
55
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Base class for assimetric signature formatters. Objects of this class should only be allocated using ...
Definition: asymmetric_signature_formatter.h:21
virtual void SetHashAlgorithm(System::String strName)=0
Sets hash algorithm to use.
virtual void SetKey(System::SharedPtr< AsymmetricAlgorithm > key)=0
Sets asymmetric algorithm to use when calculating the signature.
virtual System::ArrayPtr< uint8_t > CreateSignature(System::ArrayPtr< uint8_t > rgbHash)=0
Creates the siguature for the specified data.
virtual System::ArrayPtr< uint8_t > CreateSignature(System::SharedPtr< HashAlgorithm > hash)
Creates the signature for the specified hash value.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9