PdfRSASignaturePadding Class
Represents the padding to use with RSA signature.
public sealed class PdfRSASignaturePadding : IEquatable<PdfRSASignaturePadding>Public NotInheritable Class PdfRSASignaturePadding
    Implements IEquatable(Of PdfRSASignaturePadding)- Inheritance:
- System.ObjectPdfRSASignaturePadding
Implements
Properties
Pkcs1
Gets the object that represents RSASSA-PKCS1-v1.5 signature scheme of the PKCS #1: RSA Encryption Standard that is supported for compatibility with existing applications.
public static PdfRSASignaturePadding Pkcs1 { get; }Public Shared ReadOnly Property Pkcs1 As PdfRSASignaturePaddingProperty Value
The object that represents RSASSA-PKCS1-v1.5 signature scheme of the PKCS #1: RSA Encryption Standard that is supported for compatibility with existing applications.
See Also
Pss
Gets the object that represents Probabilistic Signature Scheme (RSASSA-PSS) of the PKCS #1: RSA Encryption Standard that is recommended for new applications.
Parameters of the RSASSA-PSS are set to the following default values:
- hashAlgorithm: value of HashAlgorithm.
- maskGenAlgorithm: MGF1 (a mask generation function based on a hash function) with HashAlgorithm.
- saltLength: the octet length of the hash value produced by HashAlgorithm.
- trailerField: default (DER-encoded integer 1 which is hexadecimal value 0xBC).
public static PdfRSASignaturePadding Pss { get; }Public Shared ReadOnly Property Pss As PdfRSASignaturePaddingProperty Value
The object that represents Probabilistic Signature Scheme (RSASSA-PSS) of the PKCS #1: RSA Encryption Standard that is recommended for new applications.
See Also
Methods
Equals(PdfRSASignaturePadding)
Determines whether the other PdfRSASignaturePadding is equal to this PdfRSASignaturePadding instance.
public bool Equals(PdfRSASignaturePadding other)Public Function Equals(other As PdfRSASignaturePadding) As BooleanParameters
The other RSA signature padding to compare with this RSA signature padding instance.
Returns
- System.Boolean
true if the other PdfRSASignaturePadding is equal to this PdfRSASignaturePadding instance; otherwise, false.
Equals(Object)
Determines whether the specified System.Object is equal to this PdfRSASignaturePadding instance.
public override bool Equals(object obj)Public Overrides Function Equals(obj As Object) As BooleanParameters
- obj
- System.Object
The System.Object to compare with this RSA signature padding instance.
Returns
- System.Boolean
true if the specified System.Object is a PdfRSASignaturePadding and is equal to this PdfRSASignaturePadding instance; otherwise, false.
Overrides
GetHashCode()
Returns a hash code for this PdfRSASignaturePadding instance.
Returns
- System.Int32
An integer value that specifies a hash value for this PdfRSASignaturePadding instance.
Overrides
ToString()
Returns a System.String that represents this PdfRSASignaturePadding instance.
Returns
- System.String
A System.String that represents this PdfRSASignaturePadding instance.
Overrides
Operators
Equality(PdfRSASignaturePadding, PdfRSASignaturePadding)
Determines whether left and right PdfRSASignaturePaddings are equal.
public static bool operator ==(PdfRSASignaturePadding left, PdfRSASignaturePadding right)Public Shared Operator =(left As PdfRSASignaturePadding, right As PdfRSASignaturePadding) As BooleanParameters
The first RSA signature padding.
The second RSA signature padding.
Returns
- System.Boolean
true if left and right RSA signature paddings are equal; otherwise, false.
Inequality(PdfRSASignaturePadding, PdfRSASignaturePadding)
Determines whether left and right PdfRSASignaturePaddings are not equal.
public static bool operator !=(PdfRSASignaturePadding left, PdfRSASignaturePadding right)Public Shared Operator <>(left As PdfRSASignaturePadding, right As PdfRSASignaturePadding) As BooleanParameters
The first RSA signature padding.
The second RSA signature padding.
Returns
- System.Boolean
true if left and right RSA signature paddings are not equal; otherwise, false.