{
  "$id": "https://schemas.sand.binaryedge.io/minion/modules/ssh",
  "title": "SSH Module Output Body",
  "type": "object",
  "properties": {
    "algorithms": {
      "type": "object",
      "properties": {
        "compression": {
          "$ref": "#/$defs/algorithms"
        },
        "encryption": {
          "$ref": "#/$defs/algorithms"
        },
        "kex": {
          "$ref": "#/$defs/algorithms"
        },
        "mac": {
          "$ref": "#/$defs/algorithms"
        },
        "server_host_key": {
          "$ref": "#/$defs/algorithms"
        }
      },
      "required": [
        "compression",
        "encryption",
        "kex",
        "mac",
        "server_host_key"
      ],
      "additionalProperties": false
    },
    "banner": {
      "type": "string"
    },
    "cyphers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/cypher"
      }
    },
    "hassh": {
      "type": "object",
      "properties": {
        "hassh": {
          "type": "string"
        },
        "hassh_algorithms": {
          "type": "string"
        }
      },
      "required": [
        "hassh",
        "hassh_algorithms"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "algorithms",
    "banner",
    "cyphers",
    "hassh"
  ],
  "additionalProperties": false,
  "$defs": {
    "algorithms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cypher": {
      "type": "object",
      "properties": {
        "cypher": {
          "type": "string"
        },
        "fingerprint": {
          "$ref": "/minion/shared-types#/hex-bytes"
        },
        "key": {
          "$ref": "/minion/shared-types#/base64"
        },
        "length": {
          "$comment": "Key lengths are only calculated for RSA and DSA keys.",
          "$ref": "/minion/shared-types#/uint32"
        }
      },
      "required": [
        "cypher",
        "fingerprint",
        "key"
      ],
      "additionalProperties": false
    }
  }
}
