RsaEncryptionPadding Class

The RSA encryption padding schemes and parameters used by S/MIME.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public sealed class RsaEncryptionPadding : IEquatable<RsaEncryptionPadding>
Inheritance
Object    RsaEncryptionPadding
Implements
IEquatableRsaEncryptionPadding

Remarks

The RSA encryption padding schemes and parameters used by S/MIME as described in rfc8017.

Properties

OaepHashAlgorithm Get the hash algorithm used for RSAES-OAEP padding.
Scheme Get the RSA encryption padding scheme.

Methods

CreateOaep Create a new RsaEncryptionPadding using Oaep and the specified hash algorithm.
Equals(Object) Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Equals(RsaEncryptionPadding) Determines whether the specified RsaEncryptionPadding is equal to the current RsaEncryptionPadding.
GetHashCode Returns the hash code for this instance.
(Overrides ObjectGetHashCode)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a String that represents the current RsaEncryptionPadding.
(Overrides ObjectToString)

Operators

Equality(RsaEncryptionPadding, RsaEncryptionPadding) Compare two RsaEncryptionPadding objects for equality.
Inequality(RsaEncryptionPadding, RsaEncryptionPadding) Compare two RsaEncryptionPadding objects for inequality.

Fields

OaepSha1 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the default (SHA-1) hash algorithm.
OaepSha256 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the SHA-256 hash algorithm.
OaepSha384 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the SHA-384 hash algorithm.
OaepSha512 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the SHA-512 hash algorithm.
Pkcs1 The PKCS #1 v1.5 encryption padding.

See Also