I tried writing a function that returns complete AlgorithmIdentifier for the RSASSA-PSS algorithm. However my attempts to write a sensible one have failed up to now, as it's not possible to embed an owned value into the parameters field (AnyRef). I ended up declaring static byte array with the PSS parameters in DER encoding, but it is not really intuitive.