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

Should empty DST values be rejected? #352

Open
davidben opened this issue Feb 9, 2023 · 4 comments
Open

Should empty DST values be rejected? #352

davidben opened this issue Feb 9, 2023 · 4 comments

Comments

@davidben
Copy link

davidben commented Feb 9, 2023

#264 added some text to 3.1:

Tags MUST have nonzero length. A minimum length of 16 bytes is RECOMMENDED to reduce the chance of collisions with other applications.

However, it did not update any of the actual procedures, notably expand_message_xmd, leaving the text inconsistent. Was the intention that implementations reject empty DST values, or not? If yes, the actual procedures should be updated. If no, I'm not sure what that text is meant to prescribe... just instructions for callers but the underlying function tolerates zero length?

@chris-wood
Copy link
Collaborator

This is an oversight. I suppose one could assume the pseudocode implicitly rejects zero-length tags, but it doesn't hurt to add that to be explicit. We should do this.

@kwantam
Copy link
Collaborator

kwantam commented Feb 10, 2023

Agreed! Thanks @davidben for spotting this.

@davidben
Copy link
Author

Whoops, looks like this might have slipped through.

@kwantam
Copy link
Collaborator

kwantam commented Aug 15, 2023

Argh. I'm very sorry about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants