RsassaPssParamsValues
function RsassaPssParamsValues(const aParams : iRSASSAPSSParams; out aHash, aMGFHash : tHashAlgorithm; out aSaltLen : Cardinal) : Boolean;
A field the encoding leaves out is its DEFAULT, and parameters that are absent altogether are all four defaults. RFC 4055 3.1 tells a signer to leave out every field that holds its default, so a signature with SHA-256 and MGF1-SHA-1 carries no maskGenAlgorithm at all, and a verifier "MUST accept both the default value encoding (i.e., an absent field) and mfg1SHA1Identifier to be explicitly present in the encoding". Where the parameters are mandatory - in the AlgorithmIdentifier of a signature value (RFC 4055 3.1) - the caller asks RsassaPssParamsGiven first.
Returns False, the out values then undefined, when the parameters name a hash this library does not know, a mask generation function other than MGF1 or MGF1 without its hash, a salt length that is negative or does not fit in an Integer, or a trailer field other than trailerFieldBC (1).
The parameters are only read, so a decoded (read-only) instance does, and so does one being built. In a decoded one, reading anything inside an element the encoding leaves out raises (eASN1Error, eASN1DataError, or an assertion), so each element is read only when it is Present or the instance is not read-only: in one being built, Present is not kept up to date as fields are assigned, and a field never assigned reads as empty, which is taken as its DEFAULT.