This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Description
In CTAP2.1 the max pin length is 63 bytes and is padded out to 64 bytes.
In CTAP2.0 "The decrypted padded newPin should be of at least 64 bytes length"
So 64 bytes is what should be tested for.
Just for fun CTAP2.0 doesn't define errors.
For CTAP2.1 the error for too short is CTAP1_ERR_INVALID_PARAMETER someone needs to speak up if they want that changed.
For paddedNewPin being longer than 64 bytes nether spec mentions an error.
I will see about fixing that in CTAP2.1