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

Approve Poly1305 #2562

Open
randomstuff opened this issue Feb 1, 2025 · 4 comments
Open

Approve Poly1305 #2562

randomstuff opened this issue Feb 1, 2025 · 4 comments
Labels
1) Discussion ongoing Issue is opened and assigned but no clear proposal yet AppendixV Appendix with crypto details _5.0 - Not blocker This issue does not block 5.0 so if it gets addressed then great, if not then fine.

Comments

@randomstuff
Copy link
Contributor

randomstuff commented Feb 1, 2025

Poly1305 (as used in Chaha20-Poly1305) is currently not listed as "approved" in the crypto appendix. It should probably be listed somewhere but it does not really fit anywhere in the current sections.

Alernative: approve Chacha20-Poly1305 but we don't currently have a section for this either.

@tghosth
Copy link
Collaborator

tghosth commented Feb 2, 2025

@unprovable do you agree with the additions in #2563

@randomstuff
Copy link
Contributor Author

randomstuff commented Feb 2, 2025

Note that #2563, includes Poly1305-AES but not Poly1305 alone as used in Chacha20-Poly1305 (as far as I understand). I am nor sure we should include "Poly1305" under "Approved MAC Algorithms" (without some BIG warning) as it is not really a "normal" MAC algorithm but a universal hash family which can be used as a one-time MAC.

@tghosth tghosth added 1) Discussion ongoing Issue is opened and assigned but no clear proposal yet _5.0 - Not blocker This issue does not block 5.0 so if it gets addressed then great, if not then fine. AppendixV Appendix with crypto details labels Feb 2, 2025
@unprovable
Copy link
Contributor

Poly1305 is designed to function as a 'tag' creator for AEAD in much the same way that GCM mode for AES produces a similar 16-byte tag (though through very dissimilar means). It's less a 'MAC' in the sense you might be thinking for 'Approved MAC Algorithms'.

I would personally err on caution and not include it in the 'Approved MAC list' alongside other algorithms like HMAC or GMAC (though the latter is technically similar). But having ChaCha20-Poly1305 alongside AES-128/256-GCM modes on an AEAD list might be the answer?

@randomstuff
Copy link
Contributor Author

randomstuff commented Feb 3, 2025

But having ChaCha20-Poly1305 alongside AES-128/256-GCM modes on an AEAD list might be the answer?

Yes, I agree but there is currently no list of approved AEAD but only lists of approved AES cipher modes.

But I think, the list of approved mechanisms should be reworked anyway for approved/disaproved/legacy #2398.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1) Discussion ongoing Issue is opened and assigned but no clear proposal yet AppendixV Appendix with crypto details _5.0 - Not blocker This issue does not block 5.0 so if it gets addressed then great, if not then fine.
Projects
None yet
Development

No branches or pull requests

3 participants