pub fn import_key(
        &mut self,
        key_name: String,
        attributes: Attributes,
        data: Vec<u8>,
    ) -> Result<()> {
        self.basic_client
            .psa_import_key(key_name.clone(), &data, 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(())
    }
/// Imports and creates a key with specific attributes.
Imports and creates a key with specific attributes.
Imports and creates a key with specific attributes .
pub fn import_key(
        &mut self,
        key_name: String,
        attributes: Attributes,
        data: Vec<u8>,
    ) -> Result<()> {
        self.basic_client
            .psa_import_key(key_name.clone(), &data, 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 import_key ( & mut self , key_name : String , attributes : Attributes , data : Vec < u8 > , ) -> Result < ( ) > { self . basic_client . psa_import_key ( key_name . clone ( ) , & data , 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 ( ( ) ) }
Imports and creates a key with specific attributes.
Imports and creates a key with specific attributes .
&mut self
key_name
String
attributes
Attributes
data
Vec<u8>
&mut self
key_name
String
attributes
Attributes
data
Vec<u8>