Commit fbfe7c16 authored by Steven Fackler's avatar Steven Fackler
Browse files

add HasParams bound

parent 134a9de0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -155,7 +155,10 @@ impl Dh<Params> {
    }
}

impl<T> Dh<T> {
impl<T> Dh<T>
where
    T: HasParams,
{
    /// Returns the prime `p` from the DH instance.
    ///
    /// This corresponds to [`DH_get0_pqg`].