-
Notifications
You must be signed in to change notification settings - Fork 484
Minor cleanup #335
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
Minor cleanup #335
Conversation
db5500d to
a422869
Compare
|
Ad
|
it's used for libraries added in the makefile
make compare_testvector() a bit more verbose in debug build
I factored this out as I use it in my SIV PR as well, but I thought it doesn't really belong there, so I created this PR with other changes that belong to the features introduced there
I'll make it private for now
I think the name is okay'ish... probably one of the following would be better, not sure though:
|
|
If you make it private then no need to care about the name. |
well I prefer to have a proper name now so we don't have to think about it in case we want to make it public ;) Edit: I think the current name is fine and represents what the function does. Therefore we could even make it public. |
|
IIUC we are doing: "copy src to dest or zero dest (all that in constant time)" which sounds to me more like Another thing (UPDATED): - coz &= 0x1;
+ if (coz != 0) coz = 1;so that unexpected/accidental |
83b5780 to
35c4d15
Compare
karel-m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Minor cleanup&lil'feature PR
The only thing really worth a review is the newly introduced
copy_or_zeromem()The rest is just cosmetics.
Reviews are as always very welcome!