diff --git a/src/dsa/rfc6979.rs b/src/dsa/rfc6979.rs index c81ef20..365c647 100644 --- a/src/dsa/rfc6979.rs +++ b/src/dsa/rfc6979.rs @@ -1,4 +1,4 @@ -use cryptonum::unsigned::{CryptoNum,Decoder,Encoder,U512}; +use cryptonum::unsigned::{CryptoNum,Decoder,Encoder}; use digest::{BlockInput,Digest,FixedOutput,Input,Reset}; use digest::generic_array::ArrayLength; use hmac::{Hmac,Mac}; @@ -27,7 +27,7 @@ impl DSASignature pub struct KIterator where H: BlockInput + Clone + Default + Digest + FixedOutput + Input + Reset, - N: Clone + Decoder + Encoder + From + PartialOrd + Shr, + N: Clone + Decoder + Encoder + PartialOrd + Shr, Hmac: Mac { hmac_k: Hmac, @@ -39,7 +39,7 @@ pub struct KIterator impl KIterator where H: BlockInput + Clone + Default + Digest + FixedOutput + Input + Reset, - N: Clone + Decoder + Encoder + From + PartialOrd + Shr + Sub, + N: Clone + Decoder + Encoder + PartialOrd + Shr + Sub, Hmac: Mac { pub fn new(h1: &[u8], qlen: usize, q: &N, x: &N) -> KIterator @@ -128,7 +128,7 @@ impl KIterator impl Iterator for KIterator where H: BlockInput + Clone + Default + Digest + FixedOutput + Input + Reset, - N: Clone + CryptoNum + Decoder + Encoder + From + PartialOrd + Shr, + N: Clone + CryptoNum + Decoder + Encoder + PartialOrd + Shr, Hmac: Mac { type Item = N;