RsaSsaPssParams

@Serializable
data class RsaSsaPssParams : RsaParams(source)

RSASSA-PSS parameters as specified by RFC 4055, section 3.1:

RSASSA-PSS-params ::= SEQUENCE {
hashAlgorithm [0] HashAlgorithm DEFAULT sha1Identifier,
maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT mgf1SHA1Identifier,
saltLength [2] INTEGER DEFAULT 20,
trailerField [3] TrailerField DEFAULT trailerFieldBC
}

The encoded fields are optional because the ASN.1 type defines defaults. The effective* accessors expose the RFC defaults without forcing callers to reject unsupported parameter combinations while parsing an outer X509AlgorithmIdentifier.

Constructors

Link copied to clipboard
constructor(hashAlgorithm: X509AlgorithmIdentifier = SHA1_IDENTIFIER, maskGenAlgorithm: X509AlgorithmIdentifier = MGF1_SHA1_IDENTIFIER, saltLength: Int = DEFAULT_SALT_LENGTH, trailerField: Int = DEFAULT_TRAILER_FIELD)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The raw hash algorithm as stored (null for default)

Link copied to clipboard

The raw mask generation algorithm identifier as stored (null for default)

Link copied to clipboard

The raw salt length as stored (null for default)

Link copied to clipboard

The raw trailer field as stored (null for default)

Link copied to clipboard

Hidden from Objective-C because a throwing getter cannot be bridged (see KT-63047); from Swift/Objective-C use the throwing effectiveSaltLength() accessor instead.

Link copied to clipboard

Hidden from Objective-C because a throwing getter cannot be bridged (see KT-63047); from Swift/Objective-C use the throwing effectiveTrailerField() accessor instead.

Functions

Link copied to clipboard
open override fun toString(): String