Fix yubikey pin lengths other than 6

Closes #883