pub struct Context<'k, 'v, K> {
pub(crate) key: &'k K,
pub(crate) value: &'v [u8],
}Expand description
Ed448 contexts as used by Ed448ph.
Contexts are domain separator strings that can be used to isolate uses of the algorithm between different protocols (which is very hard to reliably do otherwise) and between different uses within the same protocol.
To create a context, call either of the following:
Fields§
§key: &'k K§value: &'v [u8]Implementations§
Trait Implementations§
Source§impl<D> DigestSigner<D, Signature> for Context<'_, '_, SigningKey>
impl<D> DigestSigner<D, Signature> for Context<'_, '_, SigningKey>
Source§impl<D> DigestVerifier<D, Signature> for Context<'_, '_, VerifyingKey>
impl<D> DigestVerifier<D, Signature> for Context<'_, '_, VerifyingKey>
Source§impl PrehashSigner<Signature> for Context<'_, '_, SigningKey>
impl PrehashSigner<Signature> for Context<'_, '_, SigningKey>
impl<'k, 'v, K: Copy> Copy for Context<'k, 'v, K>
Auto Trait Implementations§
impl<'k, 'v, K> Freeze for Context<'k, 'v, K>
impl<'k, 'v, K> RefUnwindSafe for Context<'k, 'v, K>where
K: RefUnwindSafe,
impl<'k, 'v, K> Send for Context<'k, 'v, K>where
K: Sync,
impl<'k, 'v, K> Sync for Context<'k, 'v, K>where
K: Sync,
impl<'k, 'v, K> Unpin for Context<'k, 'v, K>
impl<'k, 'v, K> UnsafeUnpin for Context<'k, 'v, K>
impl<'k, 'v, K> UnwindSafe for Context<'k, 'v, K>where
K: RefUnwindSafe,
Blanket Implementations§
Source§impl<S, T> AsyncSigner<S> for Twhere
T: Signer<S>,
impl<S, T> AsyncSigner<S> for Twhere
T: Signer<S>,
Source§impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
impl<S, T> AsyncVerifier<S> for Twhere
T: Verifier<S>,
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