Trait TakeTheHint
pub trait TakeTheHint<K: KeyPair> {
// Required method
fn take_the<A: Aead + KeyInit, L: ArraySize>(
&self,
hint: &Hint<K, A, L>,
context: &[u8],
) -> Result<Array<u8, L>, Error>
where Hint<K, A, L>: HintSized<K, A, L>;
// Provided method
fn take_all_the<A: Aead + KeyInit, L: ArraySize, const S: usize>(
&self,
hints: &Hints<Hint<K, A, L>, S>,
context: &[u8],
) -> Vec<Array<u8, L>>
where Hint<K, A, L>: HintSized<K, A, L> + Hinting<K, L> { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
§impl TakeTheHint<DalekX25519> for StaticSecret
impl TakeTheHint<DalekX25519> for StaticSecret
§impl<C> TakeTheHint<EllipticCurve<C>> for SecretKey<C>where
C: CurveArithmetic + PointCompression,
<C as Curve>::FieldBytesSize: ModulusSize,
<C as CurveArithmetic>::AffinePoint: ToSec1Point<C> + FromSec1Point<C>,
Available on crate feature rustcrypto-ec only.
impl<C> TakeTheHint<EllipticCurve<C>> for SecretKey<C>where
C: CurveArithmetic + PointCompression,
<C as Curve>::FieldBytesSize: ModulusSize,
<C as CurveArithmetic>::AffinePoint: ToSec1Point<C> + FromSec1Point<C>,
Available on crate feature
rustcrypto-ec only.