Skip to content

Commit

Permalink
Move DSAKeyParams constructor to header for better clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed Nov 10, 2024
1 parent b3ddf7f commit 9051257
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/lib/key_material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ KeyParams::create(pgp_pubkey_alg_t alg)
}
}

DSAKeyParams::DSAKeyParams() : BitsKeyParams(DSA_DEFAULT_P_BITLEN), qbits_(0)
{
}

void
DSAKeyParams::check_defaults() noexcept
{
Expand Down
2 changes: 1 addition & 1 deletion src/lib/key_material.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DSAKeyParams : public BitsKeyParams {
size_t qbits_;

public:
DSAKeyParams();
DSAKeyParams() : BitsKeyParams(DSA_DEFAULT_P_BITLEN), qbits_(0){};

size_t
qbits() const noexcept
Expand Down

0 comments on commit 9051257

Please sign in to comment.