pub unsafe fn attributes(&self) -> Result<KeyAttributes> {
        let mut key_attrs = get_empty_key_attributes();
        let get_attrs_status = psa_crypto_binding::psa_get_key_attributes(self.0, &mut key_attrs);

        if get_attrs_status != PSA_SUCCESS {
            error!("Get key attributes status: {}", get_attrs_status);
            Err(convert_status(get_attrs_status))
        } else {
            Ok(KeyAttributes(key_attrs))
        }
    }
/// Get the attributes associated with the key stored in this handle.
///
/// # Safety
///
/// Calling this function is only safe if:
/// * the Mbed Crypto library has already been initialized
Get the attributes associated with the key stored in this handle.
Get the attributes associated with the key stored in this handle .
pub unsafe fn attributes(&self) -> Result<KeyAttributes> {
        let mut key_attrs = get_empty_key_attributes();
        let get_attrs_status = psa_crypto_binding::psa_get_key_attributes(self.0, &mut key_attrs);
        if get_attrs_status != PSA_SUCCESS {
            error!("Get key attributes status: {}", get_attrs_status);
            Err(convert_status(get_attrs_status))
        } else {
            Ok(KeyAttributes(key_attrs))
        }
    }
pub unsafe fn attributes ( & self ) -> Result < KeyAttributes > { let mut key_attrs = get_empty_key_attributes ( ) ; let get_attrs_status = psa_crypto_binding :: psa_get_key_attributes ( self . 0 , & mut key_attrs ) ; if get_attrs_status != PSA_SUCCESS { error ! ( " " get_attrs_status ) ; Err ( convert_status ( get_attrs_status ) ) } else { Ok ( KeyAttributes ( key_attrs ) ) } }
Get the attributes associated with the key stored in this handle.
Get the attributes associated with the key stored in this handle .
&self
&self
safety
Calling this function is only safe if:
the Mbed Crypto library has already been initialized
Calling this function is only safe if : the Mbed Crypto library has already been initialized