anchor.diff:          [ "$opened" == false ] && die "Maximum authentication errors reached"
   
           echo -n "Gathering entropy for new salt (please enter random keys to generate entropy if this blocks for long)..."
  -        for i in $(seq ${toString yubikey.saltLength}); do
  +        for i in $(seq ${toString dev.yubikey.saltLength}); do
               byte="$(dd if=/dev/random bs=1 count=1 2>/dev/null | rbtohex)";
               new_salt="$new_salt$byte";
               echo -n .
  
positive.code:         ''}
      }
  
      ${optionalString (luks.yubikeySupport && (yubikey != null)) ''
      # YubiKey
      rbtohex() {
          ( od -An -vtx1 | tr -d ' \n' )
  
negative.code:     }
  
      open_with_hardware() {
          if wait_yubikey ${toString dev.yubikey.gracePeriod}; then
              do_open_yubikey
          else
              echo "No YubiKey found, falling back to non-YubiKey open procedure"
  