{
  "type": "object",
  "properties": {
    "algorithm": {
      "enum": [
        "ML-KEM"
      ]
    },
    "header": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "additional documentation"
    },
    "notes": {
      "$ref": "common.json#/definitions/Notes"
    },
    "numberOfTests": {
      "type": "integer",
      "description": "the number of test vectors in this test"
    },
    "schema": {
      "enum": [
        "mlkem_keygen_seed_test_schema.json"
      ]
    },
    "testGroups": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/MLKEMKeyGenTestGroup"
      }
    }
  },
  "required": [
    "algorithm",
    "numberOfTests",
    "schema",
    "testGroups"
  ],
  "additionalProperties": false,
  "definitions": {
    "MLKEMKeyGenTestGroup": {
      "type": "object",
      "description": "A test for KeyGen using seed format",
      "properties": {
        "type": {
          "enum": [
            "MLKEMKeyGen"
          ]
        },
        "source": {
          "$ref": "common.json#/definitions/Source"
        },
        "parameterSet": {
          "enum": [
            "ML-KEM-512",
            "ML-KEM-768",
            "ML-KEM-1024"
          ]
        },
        "tests": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "tcId": {
                "type": "integer",
                "description": "Identifier of the test case"
              },
              "comment": {
                "type": "string",
                "description": "A brief description of the test case"
              },
              "seed": {
                "type": "string",
                "format": "HexBytes",
                "description": "The d || z seed for key generation"
              },
              "ek": {
                "type": "string",
                "format": "HexBytes",
                "description": "The expected encapsulation key"
              },
              "dk": {
                "type": "string",
                "format": "HexBytes",
                "description": "The expected expanded decapsulation key"
              },
              "result": {
                "$ref": "common.json#/definitions/Result"
              },
              "flags": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "A list of flags"
              }
            },
            "required": [
              "tcId",
              "seed",
              "ek",
              "dk",
              "result"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "type",
        "source",
        "parameterSet",
        "tests"
      ],
      "additionalProperties": false
    }
  }
}
