pub struct Security2Arch(/* private fields */);
Expand description
Security2 Arch Protocol.
When Secure Boot is enabled, the Security Arch protocols are responsible for ensuring that files are authenticated according to platform security policy.
Its main purpose is to authenticate files according to the security policy of the firmware.
Implementations§
Source§impl Security2Arch
impl Security2Arch
Sourcepub fn authentication(
&self,
device_path: Option<&DevicePath>,
file_buffer: &mut [u8],
boot_policy: bool,
) -> Status
pub fn authentication( &self, device_path: Option<&DevicePath>, file_buffer: &mut [u8], boot_policy: bool, ) -> Status
Check the authentication status of a file from either a reference to a DevicePath
, or a mutable slice
of a file buffer.
You should never need to use this, LoadImage
will call it automatically whenever UEFI Secure Boot is enabled.
Trait Implementations§
Source§impl Clone for Security2Arch
impl Clone for Security2Arch
Source§fn clone(&self) -> Security2Arch
fn clone(&self) -> Security2Arch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Security2Arch
impl Debug for Security2Arch
Source§impl Identify for Security2Arch
impl Identify for Security2Arch
impl Copy for Security2Arch
impl Protocol for Security2Arch
Auto Trait Implementations§
impl Freeze for Security2Arch
impl RefUnwindSafe for Security2Arch
impl Send for Security2Arch
impl Sync for Security2Arch
impl Unpin for Security2Arch
impl UnwindSafe for Security2Arch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more