{
  "format": "nodecrypto",
  "formatVersion": 1,
  "protection": "public",
  "manifest": {
    "label": "hkdf-sha256",
    "version": "",
    "description": "HKDF-SHA-256 extract-and-expand to 42 bytes.",
    "category": "",
    "inputs": [
      {
        "id": "ikm",
        "name": "IKM",
        "dataType": "bytes",
        "required": true
      },
      {
        "id": "salt",
        "name": "Salt",
        "dataType": "bytes",
        "required": true
      },
      {
        "id": "info",
        "name": "Info",
        "dataType": "bytes",
        "required": true
      }
    ],
    "outputs": [
      {
        "id": "okm",
        "name": "OKM",
        "dataType": "bytes"
      }
    ]
  },
  "requires": [],
  "workflow": {
    "id": "wf-a813a9ac",
    "name": "hkdf-sha256",
    "description": "HKDF-SHA-256 extract-and-expand to 42 bytes.",
    "viewport": {
      "x": 0,
      "y": 0,
      "zoom": 1
    },
    "nodes": [
      {
        "id": "in",
        "type": "cryptoNode",
        "position": {
          "x": 64,
          "y": 64
        },
        "width": 208,
        "data": {
          "id": "in",
          "type": "cryptoNode",
          "nodeType": "workflow-input",
          "label": "Workflow Input",
          "category": "input",
          "description": "Workflow ingress interface. Injects external API inputs or custom-node caller parameters.",
          "inputs": [],
          "outputs": [
            {
              "id": "ikm",
              "name": "IKM",
              "dataType": "bytes"
            },
            {
              "id": "salt",
              "name": "Salt",
              "dataType": "bytes"
            },
            {
              "id": "info",
              "name": "Info",
              "dataType": "bytes"
            }
          ],
          "size": "small",
          "dynamicOutputs": {
            "min": 0,
            "defaultNamePrefix": "Arg",
            "defaultDataType": "bytes"
          },
          "properties": {}
        }
      },
      {
        "id": "hkdf",
        "type": "cryptoNode",
        "position": {
          "x": 464,
          "y": 64
        },
        "width": 304,
        "data": {
          "id": "hkdf",
          "type": "cryptoNode",
          "nodeType": "kdf-hkdf",
          "label": "HKDF Key Derivation",
          "category": "kdf",
          "description": "HMAC-based Extract-and-Expand Key Derivation (RFC 5869)",
          "inputs": [
            {
              "id": "ikm",
              "name": "Input Keying Material",
              "dataType": "bytes",
              "required": true
            },
            {
              "id": "salt",
              "name": "Salt",
              "dataType": "bytes",
              "required": false
            },
            {
              "id": "info",
              "name": "Context Info",
              "dataType": "bytes",
              "required": false
            }
          ],
          "outputs": [
            {
              "id": "okm",
              "name": "Output Key",
              "spec": "OKM",
              "dataType": "bytes",
              "description": "Output Keying Material derived via HKDF-Expand."
            }
          ],
          "properties": {
            "keyLength": 42,
            "hashAlgorithm": "SHA-256"
          },
          "note": "# HKDF-SHA-256, 42 bytes\n- Test vector: RFC 5869 appendix A.1 (test case 1)\n- Extract with `salt`, then expand with `info`; `keyLength` 42 matches L=42."
        }
      },
      {
        "id": "out",
        "type": "cryptoNode",
        "position": {
          "x": 864,
          "y": 64
        },
        "width": 208,
        "data": {
          "id": "out",
          "type": "cryptoNode",
          "nodeType": "workflow-output",
          "label": "Workflow Output",
          "category": "input",
          "description": "Workflow egress interface. Gathers final pipeline results for API response or caller return.",
          "inputs": [
            {
              "id": "okm",
              "name": "OKM",
              "dataType": "bytes",
              "required": true
            }
          ],
          "outputs": [],
          "size": "small",
          "dynamicInputs": {
            "min": 0,
            "defaultNamePrefix": "Return",
            "defaultDataType": "bytes"
          },
          "properties": {}
        }
      }
    ],
    "edges": [
      {
        "id": "edge-in-ikm-hkdf-ikm",
        "source": "in",
        "sourceHandle": "ikm",
        "target": "hkdf",
        "targetHandle": "ikm",
        "type": "custom",
        "data": {
          "dataType": "bytes"
        }
      },
      {
        "id": "edge-in-salt-hkdf-salt",
        "source": "in",
        "sourceHandle": "salt",
        "target": "hkdf",
        "targetHandle": "salt",
        "type": "custom",
        "data": {
          "dataType": "bytes"
        }
      },
      {
        "id": "edge-in-info-hkdf-info",
        "source": "in",
        "sourceHandle": "info",
        "target": "hkdf",
        "targetHandle": "info",
        "type": "custom",
        "data": {
          "dataType": "bytes"
        }
      },
      {
        "id": "edge-hkdf-okm-out-okm",
        "source": "hkdf",
        "sourceHandle": "okm",
        "target": "out",
        "targetHandle": "okm",
        "type": "custom",
        "data": {
          "dataType": "bytes"
        }
      }
    ],
    "metadata": {}
  },
  "definitions": {}
}
