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

x509_write_cert_req() fails #24

Closed
pjbakker opened this issue Jun 25, 2013 · 1 comment
Closed

x509_write_cert_req() fails #24

pjbakker opened this issue Jun 25, 2013 · 1 comment

Comments

@pjbakker
Copy link
Contributor

x509_write_cert_req() calls rsa_pkcs1_sign() without a random number generator. Then rsa_pkcs1_sign() calls rsa_rsassa_pss_sign() which rejects a call without a RNG with an error. Finally, the error is not checked in x509_write_cert_req(), leaving old buffer contents in the signature buffer.

@ghost ghost assigned pjbakker Jun 25, 2013
@pjbakker
Copy link
Contributor Author

Caused by not correctly initialized rsa_context. Works fine if rsa_context is initialized with RSA_PKCS_V15 as it should.

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

No branches or pull requests

1 participant