Skip to content

pkey/dsa: let PKey::DSA.generate choose appropriate q size#539

Merged
rhenium merged 1 commit intoruby:maint-3.0from
rhenium:ky/pkey-dsa-generate-fix-q
Sep 2, 2022
Merged

pkey/dsa: let PKey::DSA.generate choose appropriate q size#539
rhenium merged 1 commit intoruby:maint-3.0from
rhenium:ky/pkey-dsa-generate-fix-q

Conversation

@rhenium
Copy link
Member

@rhenium rhenium commented Sep 2, 2022

DSA parameters generation via EVP_PKEY_paramgen() will not automatically
adjust the size of q value but uses 224 bits by default unless specified
explicitly. This behavior is different from the now-deprecated
DSA_generate_parameters_ex(), which PKey::DSA.generate used to call.

Fixes #483

Fixes: 1800a8d ("pkey/dsa: use high level EVP interface to generate parameters and keys", 2020-05-17)

DSA parameters generation via EVP_PKEY_paramgen() will not automatically
adjust the size of q value but uses 224 bits by default unless specified
explicitly. This behavior is different from the now-deprecated
DSA_generate_parameters_ex(), which PKey::DSA.generate used to call.

Fixes ruby#483

Fixes: 1800a8d ("pkey/dsa: use high level EVP interface to generate parameters and keys", 2020-05-17)
@rhenium rhenium merged commit 9247cf8 into ruby:maint-3.0 Sep 2, 2022
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.

1 participant