public class

RSASSAPSSparams

extends ASN1Encodable
java.lang.Object
   ↳ org.bouncycastle.asn1.ASN1Encodable
     ↳ org.bouncycastle.asn1.pkcs.RSASSAPSSparams

Summary

[Expand]
Inherited Constants
From class org.bouncycastle.asn1.ASN1Encodable
Fields
public static final AlgorithmIdentifier DEFAULT_HASH_ALGORITHM
public static final AlgorithmIdentifier DEFAULT_MASK_GEN_FUNCTION
public static final DERInteger DEFAULT_SALT_LENGTH
public static final DERInteger DEFAULT_TRAILER_FIELD
Public Constructors
RSASSAPSSparams()
The default version
RSASSAPSSparams(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, DERInteger saltLength, DERInteger trailerField)
RSASSAPSSparams(ASN1Sequence seq)
Public Methods
AlgorithmIdentifier getHashAlgorithm()
static RSASSAPSSparams getInstance(Object obj)
AlgorithmIdentifier getMaskGenAlgorithm()
DERInteger getSaltLength()
DERInteger getTrailerField()
DERObject toASN1Object()
 RSASSA-PSS-params ::= SEQUENCE {
   hashAlgorithm      [0] OAEP-PSSDigestAlgorithms  DEFAULT sha1,
    maskGenAlgorithm   [1] PKCS1MGFAlgorithms  DEFAULT mgf1SHA1,
    saltLength         [2] INTEGER  DEFAULT 20,
    trailerField       [3] TrailerField  DEFAULT trailerFieldBC
  }

 OAEP-PSSDigestAlgorithms    ALGORITHM-IDENTIFIER ::= {
    { OID id-sha1 PARAMETERS NULL   }|
    { OID id-sha256 PARAMETERS NULL }|
    { OID id-sha384 PARAMETERS NULL }|
    { OID id-sha512 PARAMETERS NULL },
    ...
[Expand]
Inherited Methods
From class org.bouncycastle.asn1.ASN1Encodable
From class java.lang.Object
From interface org.bouncycastle.asn1.DEREncodable

Fields

public static final AlgorithmIdentifier DEFAULT_HASH_ALGORITHM

public static final AlgorithmIdentifier DEFAULT_MASK_GEN_FUNCTION

public static final DERInteger DEFAULT_SALT_LENGTH

public static final DERInteger DEFAULT_TRAILER_FIELD

Public Constructors

public RSASSAPSSparams ()

The default version

public RSASSAPSSparams (AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm, DERInteger saltLength, DERInteger trailerField)

public RSASSAPSSparams (ASN1Sequence seq)

Public Methods

public AlgorithmIdentifier getHashAlgorithm ()

public static RSASSAPSSparams getInstance (Object obj)

public AlgorithmIdentifier getMaskGenAlgorithm ()

public DERInteger getSaltLength ()

public DERInteger getTrailerField ()

public DERObject toASN1Object ()

 RSASSA-PSS-params ::= SEQUENCE {
   hashAlgorithm      [0] OAEP-PSSDigestAlgorithms  DEFAULT sha1,
    maskGenAlgorithm   [1] PKCS1MGFAlgorithms  DEFAULT mgf1SHA1,
    saltLength         [2] INTEGER  DEFAULT 20,
    trailerField       [3] TrailerField  DEFAULT trailerFieldBC
  }

 OAEP-PSSDigestAlgorithms    ALGORITHM-IDENTIFIER ::= {
    { OID id-sha1 PARAMETERS NULL   }|
    { OID id-sha256 PARAMETERS NULL }|
    { OID id-sha384 PARAMETERS NULL }|
    { OID id-sha512 PARAMETERS NULL },
    ...  -- Allows for future expansion --
 }

 PKCS1MGFAlgorithms    ALGORITHM-IDENTIFIER ::= {
   { OID id-mgf1 PARAMETERS OAEP-PSSDigestAlgorithms },
    ...  -- Allows for future expansion --
 }
 
 TrailerField ::= INTEGER { trailerFieldBC(1) }
 

Returns
  • the asn1 primitive representing the parameters.