{
  "format": "nodecrypto",
  "formatVersion": 1,
  "protection": "public",
  "manifest": {
    "label": "hmac-sha256",
    "version": "",
    "description": "HMAC-SHA-256 of a message under a key.",
    "category": "",
    "inputs": [
      {
        "id": "key",
        "name": "Key",
        "dataType": "bytes",
        "required": true
      },
      {
        "id": "data",
        "name": "Data",
        "dataType": "bytes",
        "required": true
      }
    ],
    "outputs": [
      {
        "id": "mac",
        "name": "MAC",
        "dataType": "bytes"
      }
    ]
  },
  "requires": [],
  "workflow": {
    "id": "wf-fe09002e",
    "name": "hmac-sha256",
    "description": "HMAC-SHA-256 of a message under a key.",
    "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": "key",
              "name": "Key",
              "dataType": "bytes"
            },
            {
              "id": "data",
              "name": "Data",
              "dataType": "bytes"
            }
          ],
          "size": "small",
          "dynamicOutputs": {
            "min": 0,
            "defaultNamePrefix": "Arg",
            "defaultDataType": "bytes"
          },
          "properties": {}
        }
      },
      {
        "id": "hmac",
        "type": "cryptoNode",
        "position": {
          "x": 464,
          "y": 64
        },
        "width": 304,
        "data": {
          "id": "hmac",
          "type": "cryptoNode",
          "nodeType": "mac-hmac",
          "label": "HMAC Generator",
          "category": "hash",
          "description": "Hash-based Message Authentication Code (RFC 2104)",
          "inputs": [
            {
              "id": "key",
              "name": "Secret Key",
              "dataType": "bytes",
              "required": true
            },
            {
              "id": "data",
              "name": "Message",
              "dataType": "bytes",
              "required": true
            }
          ],
          "outputs": [
            {
              "id": "mac",
              "name": "MAC Digest",
              "dataType": "bytes"
            }
          ],
          "properties": {
            "algorithm": "SHA-256"
          },
          "note": "# HMAC-SHA-256\n- Test vector: RFC 4231 section 4.3 (test case 2)\n- The vector uses the 4-byte key \"Jefe\" and the message \"what do ya want for nothing?\"."
        }
      },
      {
        "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": "mac",
              "name": "MAC",
              "dataType": "bytes",
              "required": true
            }
          ],
          "outputs": [],
          "size": "small",
          "dynamicInputs": {
            "min": 0,
            "defaultNamePrefix": "Return",
            "defaultDataType": "bytes"
          },
          "properties": {}
        }
      }
    ],
    "edges": [
      {
        "id": "edge-in-key-hmac-key",
        "source": "in",
        "sourceHandle": "key",
        "target": "hmac",
        "targetHandle": "key",
        "type": "custom",
        "data": {
          "dataType": "bytes"
        }
      },
      {
        "id": "edge-in-data-hmac-data",
        "source": "in",
        "sourceHandle": "data",
        "target": "hmac",
        "targetHandle": "data",
        "type": "custom",
        "data": {
          "dataType": "bytes"
        }
      },
      {
        "id": "edge-hmac-mac-out-mac",
        "source": "hmac",
        "sourceHandle": "mac",
        "target": "out",
        "targetHandle": "mac",
        "type": "custom",
        "data": {
          "dataType": "bytes"
        }
      }
    ],
    "metadata": {}
  },
  "definitions": {}
}
