diff options
author | lloyd <[email protected]> | 2010-01-07 23:40:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-01-07 23:40:24 +0000 |
commit | 9900914a225c97aca575df268f73f7c6c366e697 (patch) | |
tree | 4f5525cc27e8473379f4965bb9b1dd7e1df109a3 /src/pubkey/dl_group/dl_group.cpp | |
parent | 667738924ba1fde5bf219d963b433594d53d63b9 (diff) | |
parent | 2837e915d82e439730624f15bfc8c820475c9d65 (diff) |
merge of 'bf0e5684d8ba5fb0a21cdcd11d26995cbb250c4a'
and 'e30a741f6014987e9683842ede22c44b2db03c56'
Diffstat (limited to 'src/pubkey/dl_group/dl_group.cpp')
-rw-r--r-- | src/pubkey/dl_group/dl_group.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pubkey/dl_group/dl_group.cpp b/src/pubkey/dl_group/dl_group.cpp index a2e239783..7940e69b2 100644 --- a/src/pubkey/dl_group/dl_group.cpp +++ b/src/pubkey/dl_group/dl_group.cpp @@ -193,7 +193,7 @@ const BigInt& DL_Group::get_q() const { init_check(); if(q == 0) - throw Format_Error("DLP group has no q prime specified"); + throw Invalid_State("DLP group has no q prime specified"); return q; } @@ -325,7 +325,7 @@ BigInt DL_Group::make_dsa_generator(const BigInt& p, const BigInt& q) } if(g == 1) - throw Exception("DL_Group: Couldn't create a suitable generator"); + throw Internal_Error("DL_Group: Couldn't create a suitable generator"); return g; } |