{
  "type": "object",
  "definitions": {
    "RsassaPkcs1GenTestGroup": {
      "type": "object",
      "properties": {
        "type": {
          "enum": [
            "RsassaPkcs1Generate"
          ]
        },
        "source": {
          "$ref": "common.json#/definitions/Source"
        },
        "privateKey": {
          "$ref": "rsa_common.json#/definitions/PrivateKey"
        },
        "keyAsn": {
          "type": "string",
          "format": "Der",
          "description": "DER encoding of the sequence [n, e]"
        },
        "keyDer": {
          "type": "string",
          "format": "Der",
          "description": "DER encoding of the public key"
        },
        "keyJwk": {
          "$ref": "json_web_crypto_common.json#/definitions/JsonWebKey",
          "description": "[Optional] Private key in JWK format"
        },
        "keyPem": {
          "type": "string",
          "format": "Pem",
          "description": "Pem encoded public key"
        },
        "keySize": {
          "type": "integer",
          "description": "the size of the modulus in bits"
        },
        "privateKeyPkcs8": {
          "type": "string",
          "format": "Der",
          "description": "DER encoding of the PKCS8 private key"
        },
        "privateKeyJwk": {
          "$ref": "json_web_crypto_common.json#/definitions/JsonWebKey",
          "description": "[Optional] Private key in JWK format"
        },
        "privateKeyPem": {
          "type": "string",
          "format": "Pem",
          "description": "Pem encoded private key"
        },
        "sha": {
          "type": "string",
          "description": "the hash function used for the message"
        },
        "tests": {
          "type": "array",
          "items": {
            "$ref": "signatures_common.json#/definitions/SignatureTestVector"
          }
        }
      },
      "required": ["type", "source", "privateKey", "keyAsn", "keyDer", "keyPem", "keySize", "privateKeyPkcs8", "privateKeyPem", "sha", "tests"],
      "additionalProperties": false
    }
  },
  "properties": {
    "algorithm": {
      "type": "string",
      "description": "the primitive tested in the test file"
    },
    "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": [
        "rsassa_pkcs1_generate_schema_v1.json"
      ]
    },
    "testGroups": {
      "type": "array",
      "items": {
        "$ref": "#/definitions/RsassaPkcs1GenTestGroup"
      }
    }
  },
  "required": ["algorithm", "header", "notes", "numberOfTests", "schema", "testGroups"],
  "additionalProperties": false
}
