{
  "$defs": {
    "byte_array": {
      "items": {
        "maximum": 255,
        "minimum": 0,
        "type": "integer"
      },
      "type": "array"
    }
  },
  "$id": "https://raw.githubusercontent.com/lowRISC/opentitan/master/sw/host/cryptotest/testvectors/data/schemas/sphincsplus_schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A list of testvectors for SPHINCS+ testing",
  "items": {
    "additionalProperties": false,
    "properties": {
      "algorithm": {
        "description": "Should be sphincs+",
        "enum": [
          "sphincs+"
        ],
        "type": "string"
      },
      "hash_alg": {
        "description": "Hash algorithm to use",
        "enum": [
          "sha-256",
          "shake-256"
        ],
        "type": "string"
      },
      "message": {
        "$ref": "#/$defs/byte_array",
        "description": "Un-hashed input message"
      },
      "operation": {
        "description": "SPHINCS+ operation",
        "enum": [
          "verify"
        ],
        "type": "string"
      },
      "public": {
        "$ref": "#/$defs/byte_array",
        "description": "Public key bytes (big-endian)"
      },
      "result": {
        "description": "Whether the signature verification should succeed",
        "type": "boolean"
      },
      "signature": {
        "$ref": "#/$defs/byte_array",
        "description": "Signature bytes (big-endian)"
      },
      "test_case_id": {
        "description": "Test case ID number (used for debugging)",
        "type": "integer"
      },
      "vendor": {
        "description": "Test vector vendor name",
        "type": "string"
      }
    },
    "type": "object"
  },
  "minItems": 1,
  "title": "Cryptotest HMAC Test Vector",
  "type": "array"
}