internal/age: add x25519KeySize constant to replace repeated integer literals#1
Closed
mdlayher wants to merge 1 commit into
Closed
internal/age: add x25519KeySize constant to replace repeated integer literals#1mdlayher wants to merge 1 commit into
mdlayher wants to merge 1 commit into
Conversation
…literals Signed-off-by: Matt Layher <mdlayher@gmail.com>
depado
approved these changes
Oct 7, 2019
|
Maybe I have this wrong, but didn't he specifically leave those values to the fixed 32? |
Owner
|
Yeah, I went back and forth a couple times on this but I really don't like To solve the impasse, I am just switching us to a prototype of golang/go#32670. |
This is the very definition of a magic number. See this for reference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Matt Layher mdlayher@gmail.com
A quick tidy up to replace some "magic numbers" that appear in various places in the X25519 code.