pub fn generate_ec_key_pair(&self, curve: EcCurve) -> Result<EcKeyPair, JoseError> {
        let mut key_pair = EcKeyPair::generate(curve)?;
        key_pair.set_algorithm(Some(self.name()));
        Ok(key_pair)
    }
/// Generate EC key pair for ECDH.
Generate EC key pair for ECDH.
Generate EC key pair for ECDH .
pub fn generate_ec_key_pair(&self, curve: EcCurve) -> Result<EcKeyPair, JoseError> {
        let mut key_pair = EcKeyPair::generate(curve)?;
        key_pair.set_algorithm(Some(self.name()));
        Ok(key_pair)
    }
pub fn generate_ec_key_pair ( & self , curve : EcCurve ) -> Result < EcKeyPair , JoseError > { let mut key_pair = EcKeyPair :: generate ( curve ) ? ; key_pair . set_algorithm ( Some ( self . name ( ) ) ) ; Ok ( key_pair ) }
Generate EC key pair for ECDH.
Generate EC key pair for ECDH .
&self
curve
EcCurve
&self
curve
EcCurve