Click or drag to resize
MimeKit

RsaEncryptionPadding Class

The RSA encryption padding schemes and parameters used by S/MIME.
Inheritance Hierarchy
SystemObject
  MimeKit.CryptographyRsaEncryptionPadding

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public sealed class RsaEncryptionPadding : IEquatable<RsaEncryptionPadding>

The RsaEncryptionPadding type exposes the following members.

Properties
 NameDescription
Public propertyOaepHashAlgorithm Get the hash algorithm used for RSAES-OAEP padding.
Public propertyScheme Get the RSA encryption padding scheme.
Top
Methods
 NameDescription
Public methodStatic memberCreateOaep Create a new RsaEncryptionPadding using Oaep and the specified hash algorithm.
Public methodEquals(Object) Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Public methodEquals(RsaEncryptionPadding) Determines whether the specified RsaEncryptionPadding is equal to the current RsaEncryptionPadding.
Public methodGetHashCode Returns the hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodGetType
(Inherited from Object)
Public methodToString Returns a String that represents the current RsaEncryptionPadding.
(Overrides ObjectToString)
Top
Operators
 NameDescription
Public operatorStatic memberEquality(RsaEncryptionPadding, RsaEncryptionPadding) Compare two RsaEncryptionPadding objects for equality.
Public operatorStatic memberInequality(RsaEncryptionPadding, RsaEncryptionPadding) Compare two RsaEncryptionPadding objects for inequality.
Top
Fields
 NameDescription
Public fieldStatic memberOaepSha1 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the default (SHA-1) hash algorithm.
Public fieldStatic memberOaepSha256 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the SHA-256 hash algorithm.
Public fieldStatic memberOaepSha384 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the SHA-384 hash algorithm.
Public fieldStatic memberOaepSha512 The Optimal Asymmetric Encryption Padding (OAEP) scheme using the SHA-512 hash algorithm.
Public fieldStatic memberPkcs1 The PKCS #1 v1.5 encryption padding.
Top
Remarks
The RSA encryption padding schemes and parameters used by S/MIME as described in rfc8017.
See Also