-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Xpout and Xqout checked in wrong fashion #23253
Conversation
In the starting of the module ossl_rsa_fips186_4_gen_prob_primes, local variables are assigned as NULL i.e. BIGNUM *Xpout = NULL, *Xqout = NULL; while assigning to Xpo and Xqo they have been checked if they are NULL or not which is of no USE as they are already assigned with NULL. Removed that check. CLA: trivial
It looks like Xpout and Xqout are unused and can be removed completely. They're somehow documented as being returned. @slontis: Is this some leftover? |
It looks like the intention of these was only for ACVP TESTING, if we needed to get access to Xpo and Xqo whilst testing. |
@sharad3001 Can you please change this to remove these variables? |
As suggested removed the instances of Xpout and Xqout instances from code and comments
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.
LGTM
@t8m I have done the required changes, please check |
Not sure why the approval labels were removed prior to approvals - I've put them back (and will now remove one again) |
I am okay with trivial on this (not really any other way to remove the two variables, and that change was suggested by a team member), but do we not need |
The checking script apparently does not detect that - it would be detected when merging. But we should squash the commits on merge anyway. |
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.
OK with CLA: trivial as this is just removing things.
This pull request is ready to merge |
Merged to the master branch after squashing and rewording the commit message. Thank you for your contribution. |
CLA: trivial Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #23253)
In the starting of the module ossl_rsa_fips186_4_gen_prob_primes, local variables are assigned as NULL i.e.
BIGNUM *Xpout = NULL, *Xqout = NULL;
while assigning to Xpo and Xqo they have been checked if they are NULL or not which is of no USE as they are already assigned with NULL.
Removed that check.
CLA: trivial
Checklist