Trait coins_bip32::ecdsa::signature::digest::crypto_common::InnerIvInit
source · pub trait InnerIvInit:
Sized
+ InnerUser
+ IvSizeUser {
// Required method
fn inner_iv_init(
inner: Self::Inner,
iv: &GenericArray<u8, Self::IvSize>,
) -> Self;
// Provided method
fn inner_iv_slice_init(
inner: Self::Inner,
iv: &[u8],
) -> Result<Self, InvalidLength> { ... }
}
Expand description
Types which can be initialized from another type and additional initialization vector/nonce.
Usually used for initializing types from block ciphers.
Required Methods§
sourcefn inner_iv_init(
inner: Self::Inner,
iv: &GenericArray<u8, Self::IvSize>,
) -> Self
fn inner_iv_init( inner: Self::Inner, iv: &GenericArray<u8, Self::IvSize>, ) -> Self
Initialize value using inner
and iv
array.
Provided Methods§
sourcefn inner_iv_slice_init(
inner: Self::Inner,
iv: &[u8],
) -> Result<Self, InvalidLength>
fn inner_iv_slice_init( inner: Self::Inner, iv: &[u8], ) -> Result<Self, InvalidLength>
Initialize value using inner
and iv
slice.
Object Safety§
This trait is not object safe.