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

Constant time base64 #559

Open
DemiMarie opened this issue Jul 20, 2017 · 3 comments
Open

Constant time base64 #559

DemiMarie opened this issue Jul 20, 2017 · 3 comments

Comments

@DemiMarie
Copy link

This is needed to avoid a timing leak when reading and writing PEM encoded structures.

@briansmith
Copy link
Owner

I agree, but the problems can be avoided much more simply by not using base64 at all. ring intentionally doesn't support any base64 functionality as of now. OTOH it wouldn't be hard to add constant-time base64 to ring using its internal constant-time primitives, but it might be problematic to export enough of the private constant-time primitives so that others can implement base64 themselves on top of ring, so I'd at least review a PR that adds this.

@DemiMarie
Copy link
Author

DemiMarie commented Jul 20, 2017 via email

@briansmith
Copy link
Owner

I don't think there's any need for a SIMD implementation for secrets, as secrets are small.

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

2 participants