pub struct ObliviousDoHKeyPair { /* private fields */ }Expand description
ObliviousDoHKeyPair supplies relevant encryption/decryption information
required by the target resolver to process DNS queries.
Implementations§
Source§impl ObliviousDoHKeyPair
impl ObliviousDoHKeyPair
Sourcepub fn from_parameters(
kem_id: u16,
kdf_id: u16,
aead_id: u16,
ikm: &[u8],
) -> Self
pub fn from_parameters( kem_id: u16, kdf_id: u16, aead_id: u16, ikm: &[u8], ) -> Self
Create a key pair from provided parameters.
Sourcepub fn private(&self) -> &<X25519HkdfSha256 as KemTrait>::PrivateKey
pub fn private(&self) -> &<X25519HkdfSha256 as KemTrait>::PrivateKey
Return a reference of the private key.
Sourcepub fn public(&self) -> &ObliviousDoHConfigContents
pub fn public(&self) -> &ObliviousDoHConfigContents
Return a reference of the public key.
Trait Implementations§
Source§impl Clone for ObliviousDoHKeyPair
impl Clone for ObliviousDoHKeyPair
Source§fn clone(&self) -> ObliviousDoHKeyPair
fn clone(&self) -> ObliviousDoHKeyPair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ObliviousDoHKeyPair
impl RefUnwindSafe for ObliviousDoHKeyPair
impl Send for ObliviousDoHKeyPair
impl Sync for ObliviousDoHKeyPair
impl Unpin for ObliviousDoHKeyPair
impl UnwindSafe for ObliviousDoHKeyPair
Blanket Implementations§
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