Skip to content

Should cbor_encode_cred_ext() encode the minPinLength value? #677

Answered by LDVG
ntwerdochlib asked this question in Q&A
Discussion options

You must be logged in to vote

The implementation follows the CTAP2.1 specification, see §12.4. Minimum PIN Length Extension (minPinLength):

Authenticator extension input

Boolean asking for minimum PIN length value in Unicode code points. The platform sends the authenticatorMakeCredential request with the following CBOR map entry in the "extensions" field to the authenticator:

"minPinLength": true

and

Authenticator extension output

If the RP is

  • authorized, the authenticator sets the minPinLength return value to the current minimum PIN length value.
  • not authorized, the authenticator ignores the extension and does not return any authenticator extension output.
CDDL:
"minPinLength": uint

i.e. cbor_encode_cred_ext()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ntwerdochlib
Comment options

Answer selected by LDVG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants