Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ambiguous specification of the Verification Data field in Authentication Messages #18

Open
ts5746 opened this issue Nov 11, 2021 · 0 comments
Assignees
Labels
documentation Additional information or clarification required interoperability Impacts interoperability and backwards compatibility

Comments

@ts5746
Copy link
Contributor

ts5746 commented Nov 11, 2021

Authentication Method 2 uses a verification token to proof possession of a shared secret. The verification token is derived using HKDF resulting in binary data (or a hexadecimal representation thereof) to be sent with an A2 message.

However, the VerificationData field of an A message uses UTF-8 character encoding. The specification is not clear on how binary Authentication Method 2 verification data should be encoded in such a field. Furthermore, putting a hexadecimal representation in a UTF-8 character encoded field makes the message too long.

Therefore, either the field should use the hexadecimal x encoding (requiring text URLs in A1 messages to be encoded into binary), or keep the character c encoding (requiring the verification data in A2 to be binary-to-text encoded).

@ts5746 ts5746 added interoperability Impacts interoperability and backwards compatibility documentation Additional information or clarification required labels Nov 11, 2021
@ts5746 ts5746 self-assigned this Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Additional information or clarification required interoperability Impacts interoperability and backwards compatibility
Projects
None yet
Development

No branches or pull requests

1 participant