Skip to content

SignatureProfileInput

Controls how the signature algorithm is chosen.

'auto' (default) infers the algorithm from the key. 'rsa-pss' forces RSA-PSS padding and requires an RSA-PSS private key.

ts
type SignatureProfileInput = {
  readonly kind?: auto
} | {
  readonly kind: rsa-pss;
  readonly saltLength?: 32 | 48 | 64
}

Released under the MIT License.