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

Pss ex saltlen #2236

Closed
wants to merge 3 commits into from
Closed

Pss ex saltlen #2236

wants to merge 3 commits into from

Conversation

snhenson
Copy link
Contributor

Checklist
  • documentation is added or updated
  • tests are added or updated
  • CLA is signed
Description of change

This adds support for the special -1, -2 salt lengths for PSS only keys, apart from auto detect of salt length on verify.

RSAerr(RSA_F_PKEY_RSA_CTRL, RSA_R_PSS_SALTLEN_TOO_SMALL);
return 0;
if (rsa_pss_restricted(rctx)) {
if (p1 == -2 && ctx->operation == EVP_PKEY_OP_VERIFY) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the -2 and -1 be define's? or comented? or is this very-well-known to everyone who knows PSS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we could do with some added defines for this and tidy up the ambiguity (-2 does different things on sign and verify).

levitte pushed a commit that referenced this pull request Jan 18, 2017
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #2236)
levitte pushed a commit that referenced this pull request Jan 18, 2017
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #2236)
levitte pushed a commit that referenced this pull request Jan 18, 2017
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from #2236)
@snhenson snhenson closed this Jan 18, 2017
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

Successfully merging this pull request may close these issues.

None yet

2 participants