{
  "type": "object",
  "definitions": {
    "DaeadTestGroup": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "DaeadTest"
          ]
        },
        "source": {
          "$ref": "common.json#/definitions/Source"
        },
        "keySize": {
          "type": "integer",
          "description": "the keySize in bits"
        },
        "tests": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/DaeadTestVector"
          }
        }
      },
      "required": ["type", "source", "keySize", "tests"],
      "additionalProperties": false
    },
    "DaeadTestVector": {
      "type": "object",
      "properties": {
        "tcId": {
          "type": "integer",
          "description": "Identifier of the test case"
        },
        "comment": {
          "type": "string",
          "description": "A brief description of the test case"
        },
        "key": {
          "type": "string",
          "format": "HexBytes",
          "description": "the key"
        },
        "aad": {
          "type": "string",
          "format": "HexBytes",
          "description": "additional authenticated data"
        },
        "msg": {
          "type": "string",
          "format": "HexBytes",
          "description": "the plaintext"
        },
        "ct": {
          "type": "string",
          "format": "HexBytes",
          "description": "the ciphertext including tag"
        },
        "result": {
          "$ref": "common.json#/definitions/Result"
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of flags"
        }
      },
      "required": ["tcId", "comment", "key", "aad", "msg", "ct", "result"],
      "additionalProperties": false
    }
  },
  "properties": {
    "algorithm": {
      "type": "string",
      "description": "the primitive tested in the test file"
    },
    "generatorVersion": {
      "type": "string",
      "description": "DEPRECATED: prefer \"source\" property in test group",
      "deprecated": true
    },
    "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": [
        "daead_test_schema_v1.json"
      ]
    },
    "testGroups": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/DaeadTestGroup"
      }
    }
  },
  "required": ["algorithm", "header", "notes", "numberOfTests", "schema", "testGroups"],
  "additionalProperties": false
}
