{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/infocert/main/json-schema/infocert-input-signatures-signhash-schema.json",
  "title": "input-signatures-signhash",
  "description": "Input parameters for signatures/signHash method",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infocert-csc-openapi.json#/components/schemas/input-signatures-signhash",
  "type": "object",
  "required": [
    "credentialID",
    "SAD",
    "hash",
    "signAlgo"
  ],
  "properties": {
    "credentialID": {
      "$ref": "#/$defs/credentialID"
    },
    "SAD": {
      "$ref": "#/$defs/SAD"
    },
    "hash": {
      "$ref": "#/$defs/hash"
    },
    "hashAlgo": {
      "$ref": "#/$defs/hashAlgo"
    },
    "signAlgo": {
      "$ref": "#/$defs/signAlgo"
    },
    "signAlgoParams": {
      "$ref": "#/$defs/signAlgoParams"
    },
    "clientData": {
      "$ref": "#/$defs/clientData"
    }
  },
  "$defs": {
    "SAD": {
      "type": "string",
      "description": "The Signature Activation Data to provide as input to the signatures/signHash method."
    },
    "clientData": {
      "type": "string",
      "description": "Arbitrary data from the Signature Application"
    },
    "credentialID": {
      "type": "string",
      "description": "The identifier associated to the credential"
    },
    "hash": {
      "type": "array",
      "description": "One or more Base64-encoded hash values to be signed",
      "items": {
        "type": "string",
        "description": "Single Base64-encoded hash value to be signed"
      }
    },
    "hashAlgo": {
      "type": "string",
      "description": "Specifies the OID of the algorithm used to calculate the hash value(s)"
    },
    "signAlgo": {
      "type": "string",
      "description": "Specifies the OID of the algorithm to use for signing"
    },
    "signAlgoParams": {
      "type": "string",
      "description": "Specifies the Base64-encoded of DER-encoded ASN.1 signature parameters"
    }
  }
}