{
  "name": "Rust加密处理",
  "description": "使用Rust语言进行高性能加密和安全处理",
  "version": "1.0.0",
  "category": "security",
  "inputs": [
    {
      "name": "context",
      "type": "object",
      "description": "上下文数据"
    },
    {
      "name": "inputs",
      "type": "object",
      "description": "输入数据"
    },
    {
      "name": "config",
      "type": "object",
      "description": "配置参数"
    }
  ],
  "outputs": [
    {
      "name": "success",
      "type": "boolean",
      "description": "执行是否成功"
    },
    {
      "name": "output",
      "type": "string",
      "description": "执行结果消息"
    },
    {
      "name": "result",
      "type": "object",
      "description": "加密处理结果"
    }
  ],
  "config": [
    {
      "name": "operation",
      "type": "select",
      "label": "加密操作",
      "required": true,
      "default": "encrypt",
      "options": [
        {"value": "encrypt", "label": "加密"},
        {"value": "decrypt", "label": "解密"},
        {"value": "hash", "label": "哈希"},
        {"value": "sign", "label": "数字签名"},
        {"value": "verify", "label": "签名验证"}
      ]
    },
    {
      "name": "algorithm",
      "type": "select",
      "label": "加密算法",
      "required": false,
      "default": "AES-256",
      "options": [
        {"value": "AES-256", "label": "AES-256"},
        {"value": "AES-128", "label": "AES-128"},
        {"value": "RSA-2048", "label": "RSA-2048"},
        {"value": "ECDSA", "label": "ECDSA"},
        {"value": "SHA-256", "label": "SHA-256"},
        {"value": "SHA-512", "label": "SHA-512"}
      ]
    },
    {
      "name": "key_length",
      "type": "number",
      "label": "密钥长度",
      "required": false,
      "default": 256,
      "min": 128,
      "max": 4096
    },
    {
      "name": "mode",
      "type": "select",
      "label": "加密模式",
      "required": false,
      "default": "CBC",
      "options": [
        {"value": "CBC", "label": "CBC"},
        {"value": "GCM", "label": "GCM"},
        {"value": "CTR", "label": "CTR"},
        {"value": "OFB", "label": "OFB"}
      ]
    }
  ]
}
