rustls_pki_types::alg_id

Constant RSA_PSS_SHA384

Source
pub const RSA_PSS_SHA384: AlgorithmIdentifier;
Expand description

AlgorithmIdentifier for rsassaPss with:

  • hashAlgorithm: sha384
  • maskGenAlgorithm: mgf1 with sha384
  • saltLength: 48

This is:

# rsassa-pss
OBJECT_IDENTIFIER { 1.2.840.113549.1.1.10 }
SEQUENCE {
  # hashAlgorithm:
  [0] {
    SEQUENCE {
      # sha384
      OBJECT_IDENTIFIER { 2.16.840.1.101.3.4.2.2 }
      NULL {}
    }
  }
  # maskGenAlgorithm:
  [1] {
    SEQUENCE {
      # mgf1
      OBJECT_IDENTIFIER { 1.2.840.113549.1.1.8 }
      SEQUENCE {
        # sha384
        OBJECT_IDENTIFIER { 2.16.840.1.101.3.4.2.2 }
        NULL {}
      }
    }
  }
  # saltLength:
  [2] {
    INTEGER { 48 }
  }
}

See https://datatracker.ietf.org/doc/html/rfc4055#section-3.1 for the meaning of the context-specific tags.