Skip to content

WIP: Tell the EVP_PKEY_CTX which DRBG to use - #5510

Closed
kroeckx wants to merge 1 commit into
openssl:masterfrom
kroeckx:evp_pkey_use_drbg
Closed

kroeckx wants to merge 1 commit into
openssl:masterfrom
kroeckx:evp_pkey_use_drbg

Conversation

@kroeckx

@kroeckx kroeckx commented Mar 4, 2018

Copy link
Copy Markdown
Member
Checklist
  • documentation is added or updated

@kroeckx
kroeckx force-pushed the evp_pkey_use_drbg branch 5 times, most recently from 7d4a858 to e82fd39 Compare March 4, 2018 20:12
@kroeckx

kroeckx commented Mar 4, 2018

Copy link
Copy Markdown
Member Author

Does anybody have a suggestion on how to get the DRBG to rsa_ossl_private_encrypt()? As far as I know, all calls to it are actually with padding already added and then called with RSA_PADDING_NONE. But it's also setting up blinding.

(If following the rest of #4665, it might actually want to use a private DRBG for that, while a public for the padding.)

@kroeckx

kroeckx commented Mar 4, 2018

Copy link
Copy Markdown
Member Author

I guess about the only option I see is sticking the drbg in the RSA struct too

@kroeckx

kroeckx commented Mar 4, 2018

Copy link
Copy Markdown
Member Author

I don't think putting it in the RSA structure isn't going to work because of threading issues.

@kroeckx

kroeckx commented Mar 4, 2018

Copy link
Copy Markdown
Member Author

The only good option I see currently is to change rsa_priv_enc in rsa_meth_st (which is private) to add an additional parameter. Does anybody see a problem with that, for instance for an engine?

@kroeckx

kroeckx commented Mar 4, 2018

Copy link
Copy Markdown
Member Author

An other alternative is adding a new function to rsa_meth_st that takes that new parameter

@richsalz

richsalz commented Mar 4, 2018

Copy link
Copy Markdown
Contributor

Will existing engine binaries work? If not, then you can't add the field.

@mspncp

mspncp commented Mar 4, 2018

Copy link
Copy Markdown
Contributor

There's a typo in the commit message subject line and pull request title : with -> which

Tell the EVP_PKEY_CTX with DRBG to use

@kroeckx
kroeckx force-pushed the evp_pkey_use_drbg branch from e82fd39 to cf39770 Compare March 4, 2018 23:26
@kroeckx kroeckx changed the title WIP: Tell the EVP_PKEY_CTX with DRBG to use WIP: Tell the EVP_PKEY_CTX which DRBG to use Mar 4, 2018
@kroeckx

kroeckx commented Mar 4, 2018

Copy link
Copy Markdown
Member Author

I've pushed my current working version.

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.

4 participants