Skip to main content

SLHDSA (Sphincs) template

Example:

{
  "key_gen": {
    "enabled": true,
    "key_type": {
      "allowed_types": [
        "SLHDSA"
      ],
      "default_key_type": "SLHDSA"
    },
    "sphincs_key_size": {
      "allowed_sizes": [
        "SLHDSA-SHA2-128f",
        "SLHDSA-SHA2-128s",
        "SLHDSA-SHA2-192f",
        "SLHDSA-SHA2-192s",
        "SLHDSA-SHA2-256f",
        "SLHDSA-SHA2-256s",
        "SLHDSA-SHAKE-128f",
        "SLHDSA-SHAKE-128s",
        "SLHDSA-SHAKE-192f",
        "SLHDSA-SHAKE-192s",
        "SLHDSA-SHAKE-256f",
        "SLHDSA-SHAKE-256s"
      ],
      "default_size": "SLHDSA-SHA2-128f"
    }
  },
  "issue_types": [
    "client_authentication"
  ],
  "signature_algorithm": {
    "allowed_algorithms": [
      "SLHDSA-SHA2-128f",
      "SLHDSA-SHA2-128s",
      "SLHDSA-SHA2-192f",
      "SLHDSA-SHA2-192s",
      "SLHDSA-SHA2-256f",
      "SLHDSA-SHA2-256s",
      "SLHDSA-SHAKE-128f",
      "SLHDSA-SHAKE-128s",
      "SLHDSA-SHAKE-192f",
      "SLHDSA-SHAKE-192s",
      "SLHDSA-SHAKE-256f",
      "SLHDSA-SHAKE-256s",
      "match_issuer"
    ],
    "default_algorithm": "match_issuer"
  },
  "subject": {
    "attributes": [
      {
        "type": "common_name",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "organization_name",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "organization_unit",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "street_address",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "postal_code",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "locality",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "state",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "country",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      },
      {
        "type": "email",
        "include": "optional",
        "encoding": "auto",
        "allowed_source": [
          "csr",
          "fixed_value",
          "user_supplied"
        ]
      }
    ]
  },
  "extensions": {
    "key_usage": {
      "critical": true,
      "required_usages": {
        "sphincs": [
          "digital_signature"
        ]
      },
      "optional_usages": {
        "sphincs": [
          "non_repudiation"
        ]
      }
    },
    "extended_key_usage": {
      "critical": true,
      "include": "optional",
      "required_usages": [
        {
          "oid": "client_authentication",
          "name": "Client Authentication"
        }
      ]
    }
  },
  "serial_number_size": 20,
  "validity": {
    "min_duration": {
      "value": 1,
      "unit": "DAYS"
    },
    "max_duration": {
      "value": 10,
      "unit": "YEARS"
    },
    "default_duration": {
      "value": 10,
      "unit": "YEARS"
    }
  }
}