[−][src]Enum tiny_multihash::Multihash
Default (cryptographically secure) Multihash implementation.
This is a default set of hashing algorithms. Usually applications would use their own subset of
algorithms. See the Multihash
derive for more information.
Variants
Sha2_256(Sha2Digest<U32>)
Multihash array for hash function.
Sha2_512(Sha2Digest<U64>)
Multihash array for hash function.
Sha3_224(Sha3Digest<U28>)
Multihash array for hash function.
Sha3_256(Sha3Digest<U32>)
Multihash array for hash function.
Sha3_384(Sha3Digest<U48>)
Multihash array for hash function.
Sha3_512(Sha3Digest<U64>)
Multihash array for hash function.
Keccak224(KeccakDigest<U28>)
Multihash array for hash function.
Keccak256(KeccakDigest<U32>)
Multihash array for hash function.
Keccak384(KeccakDigest<U48>)
Multihash array for hash function.
Keccak512(KeccakDigest<U64>)
Multihash array for hash function.
Blake2b256(Blake2bDigest<U32>)
Multihash array for hash function.
Blake2b512(Blake2bDigest<U64>)
Multihash array for hash function.
Blake2s128(Blake2sDigest<U16>)
Multihash array for hash function.
Blake2s256(Blake2sDigest<U32>)
Multihash array for hash function.
Strobe256(StrobeDigest<U32>)
Multihash array for hash function.
Strobe512(StrobeDigest<U64>)
Multihash array for hash function.
Trait Implementations
impl Clone for Multihash
[src]
impl Debug for Multihash
[src]
impl Eq for Multihash
[src]
impl From<Blake2bDigest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Blake2bDigest<U64>) -> Self
[src]
impl From<Blake2bDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Blake2bDigest<U32>) -> Self
[src]
impl From<Blake2sDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Blake2sDigest<U32>) -> Self
[src]
impl From<Blake2sDigest<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Blake2sDigest<U16>) -> Self
[src]
impl From<KeccakDigest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: KeccakDigest<U64>) -> Self
[src]
impl From<KeccakDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: KeccakDigest<U32>) -> Self
[src]
impl From<KeccakDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: KeccakDigest<U48>) -> Self
[src]
impl From<KeccakDigest<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>> for Multihash
[src]
fn from(digest: KeccakDigest<U28>) -> Self
[src]
impl From<Multihash> for u64
[src]
impl From<Sha2Digest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Sha2Digest<U64>) -> Self
[src]
impl From<Sha2Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Sha2Digest<U32>) -> Self
[src]
impl From<Sha3Digest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Sha3Digest<U64>) -> Self
[src]
impl From<Sha3Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Sha3Digest<U32>) -> Self
[src]
impl From<Sha3Digest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: Sha3Digest<U48>) -> Self
[src]
impl From<Sha3Digest<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>> for Multihash
[src]
fn from(digest: Sha3Digest<U28>) -> Self
[src]
impl From<StrobeDigest<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: StrobeDigest<U64>) -> Self
[src]
impl From<StrobeDigest<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for Multihash
[src]
fn from(digest: StrobeDigest<U32>) -> Self
[src]
impl MultihashDigest for Multihash
[src]
fn new(code: u64, input: &[u8]) -> Result<Self, Error>
[src]
fn wrap(code: u64, digest: &[u8]) -> Result<Self, Error>
[src]
fn code(&self) -> u64
[src]
fn size(&self) -> u8
[src]
fn digest(&self) -> &[u8]
[src]
fn read<R: Read>(r: R) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
fn from_bytes(bytes: &[u8]) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
fn write<W: Write>(&self, w: W) -> Result<(), Error>
[src]
fn to_bytes(&self) -> Vec<u8>
[src]
fn to_raw(&self) -> Result<RawMultihash, Error>
[src]
impl PartialEq<Multihash> for Multihash
[src]
impl StructuralEq for Multihash
[src]
impl StructuralPartialEq for Multihash
[src]
Auto Trait Implementations
impl RefUnwindSafe for Multihash
impl Send for Multihash
impl Sync for Multihash
impl Unpin for Multihash
impl UnwindSafe for Multihash
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,