4#include <system/iequatable.h>
5#include <security/cryptography/rsa_encryption_padding_mode.h>
6#include <security/cryptography/hash_algorithm_name.h>
8namespace System {
namespace Security {
namespace Cryptography {
12 :
public IEquatable<SharedPtr<RSAEncryptionPadding>>
19 ASPOSECPP_SHARED_RTTI_INFO_DECL();
49 return m_oaep_hash_algorithm;
63 , m_oaep_hash_algorithm(oaep_hash_algorithm)
72 if (left.
get() ==
nullptr)
73 return right.
get() ==
nullptr;
75 return left->Equals(right);
80 return !(left == right);
Defines a method that determines the equality of two objects. Objects of this class should only be al...
Definition: iequatable.h:16
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Padding mode and parameters for RSA encryption or decryption operations.
Definition: rsa_encryption_padding.h:13
static SharedPtr< RSAEncryptionPadding > get_OaepSHA256()
Gets OAEP mode with SHA256 hash algorithm.
static SharedPtr< RSAEncryptionPadding > get_OaepSHA1()
Gets OAEP mode with SHA1 hash algorithm.
static SharedPtr< RSAEncryptionPadding > get_OaepSHA384()
Gets OAEP mode with SHA384 hash algorithm.
int GetHashCode() const override
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects.
static SharedPtr< RSAEncryptionPadding > get_OaepSHA512()
Gets OAEP mode with SHA512 hash algorithm.
bool Equals(SharedPtr< RSAEncryptionPadding > other) override
String ToString() const override
Analog of C# Object.ToString() method. Enables converting custom objects to string.
static SharedPtr< RSAEncryptionPadding > get_Pkcs1()
Gets PKCS #1 v1.5 mode.
const HashAlgorithmName & get_OaepHashAlgorithm() const
Gets the hash algorithm used with OAEP.
Definition: rsa_encryption_padding.h:47
static SharedPtr< RSAEncryptionPadding > CreateOaep(const HashAlgorithmName &hash_algorithm)
Creates RSAEncryptionPadding with OAEP mode and specified hash algorithm.
bool Equals(SharedPtr< Object > other) override
RSAEncryptionPaddingMode get_Mode() const
Gets the padding mode.
Definition: rsa_encryption_padding.h:41
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Pointee_ * get() const
Gets pointed object.
Definition: smart_ptr.h:518
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
constexpr bool operator==(std::nullptr_t, const HashAlgorithmName &)
Definition: hash_algorithm_name.h:124
constexpr bool operator!=(std::nullptr_t, const HashAlgorithmName &)
Definition: hash_algorithm_name.h:125
RSAEncryptionPaddingMode
Padding mode used with RSA encryption or decryption operations.
Definition: rsa_encryption_padding_mode.h:10
Definition: db_command.h:9
String representing the name of a hash algorithm. This type should be allocated on stack and passed t...
Definition: hash_algorithm_name.h:13