{
  "type": "object",
  "definitions": {
    "HkdfTestGroup": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "HkdfTest"
          ]
        },
        "source": {
          "$ref": "common.json#/definitions/Source"
        },
        "keySize": {
          "type": "integer",
          "description": "the size of the ikm in bits"
        },
        "tests": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/HkdfTestVector"
          }
        }
      },
      "required": ["type", "source", "keySize", "tests"],
      "additionalProperties": false
    },
    "HkdfTestVector": {
      "type": "object",
      "properties": {
        "tcId": {
          "type": "integer",
          "description": "Identifier of the test case"
        },
        "comment": {
          "type": "string",
          "description": "A brief description of the test case"
        },
        "ikm": {
          "type": "string",
          "format": "HexBytes",
          "description": "the key (input key material)"
        },
        "salt": {
          "type": "string",
          "format": "HexBytes",
          "description": "the salt for the key derivation"
        },
        "info": {
          "type": "string",
          "format": "HexBytes",
          "description": "additional information used in the key derivation"
        },
        "size": {
          "type": "integer",
          "description": "the size of the output in bytes"
        },
        "okm": {
          "type": "string",
          "format": "HexBytes",
          "description": "the generated bytes (output key material)"
        },
        "result": {
          "$ref": "common.json#/definitions/Result"
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of flags"
        }
      },
      "required": ["tcId", "comment", "ikm", "salt", "info", "size", "okm", "result", "flags"],
      "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": [
        "hkdf_test_schema_v1.json"
      ]
    },
    "testGroups": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/HkdfTestGroup"
      }
    }
  },
  "required": ["algorithm", "header", "notes", "numberOfTests", "schema", "testGroups"],
  "additionalProperties": false
}
