Clean up the DSA struct parameter types.

This commit is contained in:
2019-04-04 16:32:15 -07:00
parent 54c5244bc5
commit 68ddc7096b
6 changed files with 36 additions and 36 deletions

View File

@@ -14,10 +14,10 @@ use cryptonum::unsigned::*;
use rand::Rng;
use rand::distributions::Standard;
pub struct DSAKeyPair<P,L,N>
pub struct DSAKeyPair<P: DSAParameters>
{
pub private: DSAPrivKey<P,N>,
pub public: DSAPubKey<P,L>
pub private: DSAPrivKey<P>,
pub public: DSAPubKey<P>
}
pub trait DSAKeyGeneration
@@ -29,7 +29,7 @@ pub trait DSAKeyGeneration
macro_rules! generate_dsa_pair {
($ptype: ident, $ltype: ident, $ntype: ident, $nbig: ident) => {
impl DSAKeyGeneration for DSAKeyPair<$ptype,$ltype,$ntype>
impl DSAKeyGeneration for DSAKeyPair<$ptype>
{
type Params = $ptype;