GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfRSASignaturePadding Class

    Namespace:
    GemBox.Pdf.Security
    Assembly:
    GemBox.Pdf.dll

    Represents the padding to use with RSA signature.

    • C#
    • VB.NET
    public sealed class PdfRSASignaturePadding : IEquatable<PdfRSASignaturePadding>
    Public NotInheritable Class PdfRSASignaturePadding
        Implements IEquatable(Of PdfRSASignaturePadding)
    Inheritance:
    System.Object
    PdfRSASignaturePadding
    Implements
    System.IEquatable<PdfRSASignaturePadding>

    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.

    • C#
    • VB.NET
    public static PdfRSASignaturePadding Pkcs1 { get; }
    Public Shared ReadOnly Property Pkcs1 As PdfRSASignaturePadding
    Property Value
    PdfRSASignaturePadding

    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
    RFC 8017, section 8.2. RSASSA-PKCS1-v1_5
    RFC 8017, appendix A.2.4. RSASSA-PKCS-v1_5

    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).
    • C#
    • VB.NET
    public static PdfRSASignaturePadding Pss { get; }
    Public Shared ReadOnly Property Pss As PdfRSASignaturePadding
    Property Value
    PdfRSASignaturePadding

    The object that represents Probabilistic Signature Scheme (RSASSA-PSS) of the PKCS #1: RSA Encryption Standard that is recommended for new applications.

    See Also
    RFC 8017, section 8.1. RSASSA-PSS
    RFC 8017, appendix A.2.3. RSASSA-PSS

    Methods

    Equals(PdfRSASignaturePadding)

    Determines whether the other PdfRSASignaturePadding is equal to this PdfRSASignaturePadding instance.

    • C#
    • VB.NET
    public bool Equals(PdfRSASignaturePadding other)
    Public Function Equals(other As PdfRSASignaturePadding) As Boolean
    Parameters
    other
    PdfRSASignaturePadding

    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.

    • C#
    • VB.NET
    public override bool Equals(object obj)
    Public Overrides Function Equals(obj As Object) As Boolean
    Parameters
    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
    System.Object.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this PdfRSASignaturePadding instance.

    • C#
    • VB.NET
    public override int GetHashCode()
    Public Overrides Function GetHashCode As Integer
    Returns
    System.Int32

    An integer value that specifies a hash value for this PdfRSASignaturePadding instance.

    Overrides
    System.Object.GetHashCode()

    ToString()

    Returns a System.String that represents this PdfRSASignaturePadding instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this PdfRSASignaturePadding instance.

    Overrides
    System.Object.ToString()

    Operators

    Equality(PdfRSASignaturePadding, PdfRSASignaturePadding)

    Determines whether left and right PdfRSASignaturePaddings are equal.

    • C#
    • VB.NET
    public static bool operator ==(PdfRSASignaturePadding left, PdfRSASignaturePadding right)
    Public Shared Operator =(left As PdfRSASignaturePadding, right As PdfRSASignaturePadding) As Boolean
    Parameters
    left
    PdfRSASignaturePadding

    The first RSA signature padding.

    right
    PdfRSASignaturePadding

    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.

    • C#
    • VB.NET
    public static bool operator !=(PdfRSASignaturePadding left, PdfRSASignaturePadding right)
    Public Shared Operator <>(left As PdfRSASignaturePadding, right As PdfRSASignaturePadding) As Boolean
    Parameters
    left
    PdfRSASignaturePadding

    The first RSA signature padding.

    right
    PdfRSASignaturePadding

    The second RSA signature padding.

    Returns
    System.Boolean

    true if left and right RSA signature paddings are not equal; otherwise, false.

    Implements

    System.IEquatable<T>
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.