Struct uefi::proto::tcg::AlgorithmId
source · #[repr(transparent)]pub struct AlgorithmId(pub u16);
Expand description
Algorithm identifiers.
These values are defined in the TCG Algorithm Registry.
Tuple Fields§
§0: u16
Implementations§
source§impl AlgorithmId
impl AlgorithmId
pub const ERROR: AlgorithmId = _
pub const RSA: AlgorithmId = _
pub const TDES: AlgorithmId = _
pub const SHA1: AlgorithmId = _
pub const HMAC: AlgorithmId = _
pub const AES: AlgorithmId = _
pub const MGF1: AlgorithmId = _
pub const KEYED_HASH: AlgorithmId = _
pub const XOR: AlgorithmId = _
pub const SHA256: AlgorithmId = _
pub const SHA384: AlgorithmId = _
pub const SHA512: AlgorithmId = _
pub const NULL: AlgorithmId = _
pub const SM3_256: AlgorithmId = _
pub const SM4: AlgorithmId = _
Trait Implementations§
source§impl Clone for AlgorithmId
impl Clone for AlgorithmId
source§fn clone(&self) -> AlgorithmId
fn clone(&self) -> AlgorithmId
Returns a copy 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 AlgorithmId
impl Debug for AlgorithmId
source§impl Hash for AlgorithmId
impl Hash for AlgorithmId
source§impl Ord for AlgorithmId
impl Ord for AlgorithmId
source§fn cmp(&self, other: &AlgorithmId) -> Ordering
fn cmp(&self, other: &AlgorithmId) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AlgorithmId
impl PartialEq for AlgorithmId
source§fn eq(&self, other: &AlgorithmId) -> bool
fn eq(&self, other: &AlgorithmId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AlgorithmId
impl PartialOrd for AlgorithmId
source§fn partial_cmp(&self, other: &AlgorithmId) -> Option<Ordering>
fn partial_cmp(&self, other: &AlgorithmId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AlgorithmId
impl Eq for AlgorithmId
impl StructuralPartialEq for AlgorithmId
Auto Trait Implementations§
impl Freeze for AlgorithmId
impl RefUnwindSafe for AlgorithmId
impl Send for AlgorithmId
impl Sync for AlgorithmId
impl Unpin for AlgorithmId
impl UnwindSafe for AlgorithmId
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