pub fn generate_key(&mut self, key_name: String, attributes: Attributes) -> Result<()> {
        self.basic_client
            .psa_generate_key(key_name.clone(), attributes)
            .map_err(convert_error)?;

        let provider = self.provider().unwrap();
        let auth = self.auth();

        if let Some(ref mut created_keys) = self.created_keys {
            let _ = created_keys.insert((key_name, auth, provider));
        }

        Ok(())
    }
/// Creates a key with specific attributes.
Creates a key with specific attributes.
Creates a key with specific attributes .
pub fn generate_key(&mut self, key_name: String, attributes: Attributes) -> Result<()> {
        self.basic_client
            .psa_generate_key(key_name.clone(), attributes)
            .map_err(convert_error)?;
        let provider = self.provider().unwrap();
        let auth = self.auth();
        if let Some(ref mut created_keys) = self.created_keys {
            let _ = created_keys.insert((key_name, auth, provider));
        }
        Ok(())
    }
pub fn generate_key ( & mut self , key_name : String , attributes : Attributes ) -> Result < ( ) > { self . basic_client . psa_generate_key ( key_name . clone ( ) , attributes ) . map_err ( convert_error ) ? ; let provider = self . provider ( ) . unwrap ( ) ; let auth = self . auth ( ) ; if let Some ( ref mut created_keys ) = self . created_keys { let _ = created_keys . insert ( ( key_name , auth , provider ) ) ; } Ok ( ( ) ) }
Creates a key with specific attributes.
Creates a key with specific attributes .
&mut self
key_name
String
attributes
Attributes
&mut self
key_name
String
attributes
Attributes