{
  "schemaVersion": 1,
  "generatedAt": "2026-10-21T12:07:37.785874+00:00",
  "measurement": "Native credential checks with explicit slot controls on disposable files",
  "environment": {
    "cryptsetup": "cryptsetup 2.7.0 flags: UDEV BLKID KEYRING FIPS KERNEL_CAPI HW_OPAL",
    "binarySha256": "5400fa036759e260dfefff9e1ce3281cf03f694003a6aed8b3a9cbb45f449fca",
    "python": "3.12.3",
    "kernel": "6.8.0-146-generic"
  },
  "repetitions": 2,
  "parameters": {
    "formats": [
      "luks1",
      "luks2"
    ],
    "states": [
      "initial",
      "duplicate",
      "changed-slot-0",
      "removed-slot-1"
    ],
    "scopes": [
      "any",
      "0",
      "1"
    ],
    "credentials": [
      "old",
      "new",
      "wrong"
    ],
    "cipher": "aes-xts-plain64",
    "keyBits": 256,
    "sectorBytes": 512,
    "pbkdf": "pbkdf2",
    "pbkdfIterations": 1000,
    "security": "Public synthetic credentials; NOT production settings"
  },
  "limitations": [
    "No device mapping, payload decryption, reencryption or media sanitization.",
    "Key recovery uses the accepted credential without a slot restriction.",
    "Explicit-slot acceptance is observed separately by native test-passphrase.",
    "Selected transitions are not a random sample or a failure-rate estimate."
  ],
  "observations": [
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "initial",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "duplicate",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "87183c3ed64c44324a19519e9de0fbdaaa703eef3461b0d674a11867e08f46a9"
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "initial",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "duplicate",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "40ab9fba464148b181ce70c80b097cdba9d4d3e6f5cc57c105b3f8b0ee324284"
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks1",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "initial",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "duplicate",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "2d2ce82df8947a4c01f241cd25deda0661ef2bc555775fcca7514d36e85dc076"
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 1,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "initial",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "any",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "0",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "0",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "duplicate",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "old",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "new",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "changed-slot-0",
      "scope": "1",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "any",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "old",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "new",
      "returncode": 0,
      "accepted": true,
      "recoveredKeySha256": "0c84e5e739b883c2700dd01406b58377ea254790401b1562025c8e5647b19cf6"
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "0",
      "credential": "wrong",
      "returncode": 2,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "old",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "new",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    },
    {
      "format": "luks2",
      "repetition": 2,
      "state": "removed-slot-1",
      "scope": "1",
      "credential": "wrong",
      "returncode": 1,
      "accepted": false,
      "recoveredKeySha256": null
    }
  ],
  "commands": [
    {
      "argv": [
        "luksFormat",
        "--batch-mode",
        "--type",
        "luks1",
        "--cipher",
        "aes-xts-plain64",
        "--key-size",
        "256",
        "--sector-size",
        "512",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "luksAddKey",
        "--batch-mode",
        "--key-slot",
        "1",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img",
        "<fixture>/old.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksChangeKey",
        "--batch-mode",
        "--key-slot",
        "0",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img",
        "<fixture>/new.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksKillSlot",
        "--batch-mode",
        "<fixture>/luks1-1.img",
        "1"
      ],
      "returncode": 0,
      "stderr": "Nothing to read on input.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "luksFormat",
        "--batch-mode",
        "--type",
        "luks1",
        "--cipher",
        "aes-xts-plain64",
        "--key-size",
        "256",
        "--sector-size",
        "512",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "luksAddKey",
        "--batch-mode",
        "--key-slot",
        "1",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img",
        "<fixture>/old.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksChangeKey",
        "--batch-mode",
        "--key-slot",
        "0",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img",
        "<fixture>/new.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksKillSlot",
        "--batch-mode",
        "<fixture>/luks1-2.img",
        "1"
      ],
      "returncode": 0,
      "stderr": "Nothing to read on input.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks1",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks1-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "luksFormat",
        "--batch-mode",
        "--type",
        "luks2",
        "--cipher",
        "aes-xts-plain64",
        "--key-size",
        "256",
        "--sector-size",
        "512",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "luksAddKey",
        "--batch-mode",
        "--key-slot",
        "1",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img",
        "<fixture>/old.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksChangeKey",
        "--batch-mode",
        "--key-slot",
        "0",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img",
        "<fixture>/new.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksKillSlot",
        "--batch-mode",
        "<fixture>/luks2-1.img",
        "1"
      ],
      "returncode": 0,
      "stderr": "Nothing to read on input.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-1.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "luksFormat",
        "--batch-mode",
        "--type",
        "luks2",
        "--cipher",
        "aes-xts-plain64",
        "--key-size",
        "256",
        "--sector-size",
        "512",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "luksAddKey",
        "--batch-mode",
        "--key-slot",
        "1",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img",
        "<fixture>/old.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksChangeKey",
        "--batch-mode",
        "--key-slot",
        "0",
        "--pbkdf",
        "pbkdf2",
        "--pbkdf-force-iterations",
        "1000",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img",
        "<fixture>/new.key"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/old.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "luksKillSlot",
        "--batch-mode",
        "<fixture>/luks2-2.img",
        "1"
      ],
      "returncode": 0,
      "stderr": "Nothing to read on input.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "luksDump",
        "--batch-mode",
        "--dump-volume-key",
        "--key-file",
        "<fixture>/new.key",
        "--volume-key-file",
        "<fixture>/recovered-key.bin",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 0,
      "stderr": ""
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "0",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 2,
      "stderr": "No key available with this passphrase.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/old.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/new.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    },
    {
      "argv": [
        "open",
        "--type",
        "luks2",
        "--test-passphrase",
        "--key-slot",
        "1",
        "--key-file",
        "<fixture>/wrong.key",
        "<fixture>/luks2-2.img"
      ],
      "returncode": 1,
      "stderr": "No usable keyslot is available.\n"
    }
  ]
}
