/// Adds all KDFs and ciphers from the specified `Suite`.
///
/// # Panics
///
/// This method panics if any KDF or cipher in the suite (or its name)
/// have been registered previously. A panic is also raised if the suite
/// has not registered its recommended cipher or KDF.
Adds all KDFs and ciphers from the specified `Suite`.
Adds all KDFs and ciphers from the specified ` Suite ` .
pub fn add_suite<S: Suite>(&mut self) -> &mut Self {
        S::add_ciphers_and_kdfs(self);
        assert!(
            self.lookup_kdf::<S::DeriveKey>().is_some(),
            "recommended KDF from suite not added"
        );
        assert!(
            self.lookup_cipher::<S::Cipher>().is_some(),
            "recommended cipher from suite not added"
        );
        self
    }
pub fn add_suite < S : Suite > ( & mut self ) -> & mut Self { S :: add_ciphers_and_kdfs ( self ) ; assert ! ( self lookup_kdf S DeriveKey ( ) is_some ( ) " " ) ; assert ! ( self lookup_cipher S Cipher ( ) is_some ( ) " " ) ; self }
Adds all KDFs and ciphers from the specified `Suite`.
Adds all KDFs and ciphers from the specified ` Suite ` .
&mut self
panics
This method panics if any KDF or cipher in the suite (or its name)
have been registered previously. A panic is also raised if the suite
has not registered its recommended cipher or KDF.
This method panics if any KDF or cipher in the suite ( or its name ) have been registered previously . A panic is also raised if the suite has not registered its recommended cipher or KDF .