-
Notifications
You must be signed in to change notification settings - Fork 450
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
some lintings #85
some lintings #85
Conversation
src/encauth/ccm/ccm_add_aad.c
Outdated
@@ -37,7 +36,7 @@ int ccm_add_aad(ccm_state *ccm, | |||
for (y = 0; y < adatalen; y++) { | |||
if (ccm->x == 16) { | |||
/* full block so let's encrypt it */ | |||
if ((err = cipher_descriptor[ccm->cipher].ecb_encrypt(ccm->PAD, ccm->PAD, &ccm->K)) != CRYPT_OK) { |
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.
is there a reason why we shouldn't return err
and instead return a generic CRYPT_ERROR?
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.
No reason, and it is the usual way of doing in others files.
I'll refactor this patch and rename it "use the variable 'err'".
Is there a way for us to reproduce these changes? especially all the formatting stuff... |
I went through changes in this PR and do not see anything I would object. Considering the huge number of changes I propose in the first step to cherrypick to I mean:
|
I'd add into the list of no-brainers:
and these into the list of important fixes:
|
the first part of the changes merged to develop
@fperrad could you please rebase the remaining commits on current develop? |
The remaining part:
|
The next group I propose to accept without changes is:
@sjaeckel agree? |
@fperrad could you please split 1/ part changing pointers to a functions (vast majority) 2/ part changing other pointers While 1/ is IMO just a question of personal taste the 2/ might be bug(s) |
@karel-m done |
So the second set merged to develop. @fperrad please do rebase once again There should remain the following:
|
@fperrad could you please also move |
Here are my objections: Ad
Ad
Ad
|
Ad @fperrad what's the rational behind this patch? In general I also think that it's less clear and I would also tend to reject the patch, but probably there's an objective reason that I'm not aware of yet. Ad I've no opinion on these patches, would also tend to not apply but I've no problem applying them if there's a real reasoning behind. |
|
@fperrad please move |
for a rational of I also found some discussions in https://stackoverflow.com/questions/9552663/function-pointers-and-address-of-a-function |
I have check the links above but not changed my mind. As there are no other supporters I propose to close this PR and not to merge the remaining "Suspicious use of .." commits. |
Closing as suggested 2 weeks ago. |
No description provided.