pub struct Key<'a> { /* private fields */ }
Available on crate features
sign
and ring
only.Implementations
sourceimpl<'a> Key<'a>
impl<'a> Key<'a>
pub fn throwaway_13(
flags: u16,
rng: &'a dyn SecureRandom
) -> Result<Self, Unspecified>
Trait Implementations
sourceimpl<'a> SigningKey for Key<'a>
impl<'a> SigningKey for Key<'a>
type Octets = Vec<u8, Global>
type Signature = Signature
type Error = Unspecified
fn dnskey(&self) -> Result<Dnskey<Self::Octets>, Self::Error>
fn ds<N: ToDname>(&self, owner: N) -> Result<Ds<Self::Octets>, Self::Error>
fn sign(&self, msg: &[u8]) -> Result<Self::Signature, Self::Error>
fn algorithm(&self) -> Result<SecAlg, Self::Error>
fn key_tag(&self) -> Result<u16, Self::Error>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Key<'a>
impl<'a> !Send for Key<'a>
impl<'a> !Sync for Key<'a>
impl<'a> Unpin for Key<'a>
impl<'a> !UnwindSafe for Key<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
sourcefn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.