Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​RSAEncryptionPadding
Assembly: System.Security.Cryptography
Inheritance: object → RSAEncryptionPadding
Implemented Interfaces
Specifies the padding mode and parameters to use with RSA encryption or decryption operations.
Properties
public
RSAEncryptionPaddingMode
Mode
Gets the padding mode represented by this <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance.
public
HashAlgorithmName
OaepHashAlgorithm
Gets the hash algorithm used in conjunction with the <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> padding mode.
public static
RSAEncryptionPadding
OaepSHA1
Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA-1 hash algorithm.
public static
RSAEncryptionPadding
OaepSHA256
Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA-256 hash algorithm.
public static
RSAEncryptionPadding
OaepSHA384
Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA-384 hash algorithm.
public static
RSAEncryptionPadding
OaepSHA3_256
<see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> mode with SHA-3-256 hash algorithm.
public static
RSAEncryptionPadding
OaepSHA3_384
<see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> mode with SHA-3-384 hash algorithm.
public static
RSAEncryptionPadding
OaepSHA3_512
<see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> mode with SHA-3-512 hash algorithm.
public static
RSAEncryptionPadding
OaepSHA512
Gets an object that represents the Optimal Asymmetric Encryption Padding (OAEP) encryption standard with a SHA-512 hash algorithm.
public static
RSAEncryptionPadding
Pkcs1
Gets an object that represents the PKCS #1 encryption standard.
Methods
public static
RSAEncryptionPadding
CreateOaep​(HashAlgorithmName hashAlgorithm)
Creates a new <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance whose <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> is <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> with the given hash algorithm.
Returns An object whose mode is <see cref="P:System.Security.Cryptography.RSAEncryptionPadding.Mode" /> is <see cref="F:System.Security.Cryptography.RSAEncryptionPaddingMode.Oaep" /> with the hash algorithm specified by <paramref name="hashAlgorithm" /> .
hashAlgorithm
The hash algorithm.
public
bool
Equals​(object obj)
Determines whether the current instance is equal to the specified object.
Returns <see langword="true" /> if <paramref name="obj" /> is equal to the current instance; otherwise, <see langword="false" /> .
obj
The object to compare.
public
bool
Equals​(RSAEncryptionPadding other)
Determines whether the current instance is equal to the specified <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> object.
Returns <see langword="true" /> if <paramref name="other" /> is equal to the current instance; otherwise, <see langword="false" /> .
other
The object to compare.
public
int
GetHashCode​()
Returns the hash code of this <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> object.
Returns The hash code of this instance.
public
string
ToString​()
Returns the string representation of the current <see cref="T:System.Security.Cryptography.RSAEncryptionPadding" /> instance.
Returns The string representation of the current object.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object