pub enum DigestCode {
Blake3_256,
Blake2b_256,
Blake2s_256,
SHA3_256,
SHA2_256,
Blake3_512,
Blake2b_512,
SHA3_512,
SHA2_512,
}Available on crate feature
core only.Expand description
CESR codes for supported cryptographic digest algorithms.
Variants§
Blake3_256
BLAKE3 with 256-bit (32-byte) output.
Blake2b_256
BLAKE2b with 256-bit (32-byte) output.
Blake2s_256
BLAKE2s with 256-bit (32-byte) output.
SHA3_256
SHA-3 with 256-bit (32-byte) output.
SHA2_256
SHA-2 (SHA-256) with 256-bit (32-byte) output.
Blake3_512
BLAKE3 with 512-bit (64-byte) output.
Blake2b_512
BLAKE2b with 512-bit (64-byte) output.
SHA3_512
SHA-3 with 512-bit (64-byte) output.
SHA2_512
SHA-2 (SHA-512) with 512-bit (64-byte) output.
Trait Implementations§
Source§impl CesrCode for DigestCode
impl CesrCode for DigestCode
Source§fn to_matter_code(&self) -> MatterCode
fn to_matter_code(&self) -> MatterCode
Converts this typed code to the untyped
MatterCode.Source§fn as_str(&self) -> &'static str
fn as_str(&self) -> &'static str
Returns the canonical Base64 string representation of this code.
Source§fn get_sizage(&self) -> Sizage
fn get_sizage(&self) -> Sizage
Returns the
Sizage descriptor for this code.Source§fn raw_size(&self) -> Result<usize, ValidationError>
fn raw_size(&self) -> Result<usize, ValidationError>
Returns the expected raw byte size for this code. Read more
Source§fn placeholder(&self) -> Result<String, ValidationError>
fn placeholder(&self) -> Result<String, ValidationError>
Available on crate feature
alloc only.Returns a placeholder qb64 string of this code’s full character width,
filled with
DUMMY_CHAR. Read moreSource§impl Clone for DigestCode
impl Clone for DigestCode
Source§fn clone(&self) -> DigestCode
fn clone(&self) -> DigestCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DigestCode
Source§impl Debug for DigestCode
impl Debug for DigestCode
impl Eq for DigestCode
Source§impl From<DigestCode> for MatterCode
impl From<DigestCode> for MatterCode
Source§fn from(code: DigestCode) -> Self
fn from(code: DigestCode) -> Self
Converts to this type from the input type.
Source§impl Hash for DigestCode
impl Hash for DigestCode
Source§impl PartialEq for DigestCode
impl PartialEq for DigestCode
impl StructuralPartialEq for DigestCode
Source§impl TryFrom<MatterCode> for DigestCode
impl TryFrom<MatterCode> for DigestCode
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for DigestCode
impl RefUnwindSafe for DigestCode
impl Send for DigestCode
impl Sync for DigestCode
impl Unpin for DigestCode
impl UnsafeUnpin for DigestCode
impl UnwindSafe for DigestCode
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