pub struct OhttpKeys(pub KeyConfig);Available on crate feature
v2 only.Tuple Fields§
§0: KeyConfigImplementations§
Methods from Deref<Target = KeyConfig>§
Sourcepub fn encode(&self) -> Result<Vec<u8>, Error>
pub fn encode(&self) -> Result<Vec<u8>, Error>
Encode into a wire format. This shares a format with the core of ECH:
opaque HpkePublicKey[Npk];
uint16 HpkeKemId; // Defined in I-D.irtf-cfrg-hpke
uint16 HpkeKdfId; // Defined in I-D.irtf-cfrg-hpke
uint16 HpkeAeadId; // Defined in I-D.irtf-cfrg-hpke
struct {
HpkeKdfId kdf_id;
HpkeAeadId aead_id;
} ECHCipherSuite;
struct {
uint8 key_id;
HpkeKemId kem_id;
HpkePublicKey public_key;
ECHCipherSuite cipher_suites<4..2^16-4>;
} ECHKeyConfig;§Panics
Not as a result of this function.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OhttpKeys
Available on crate feature _core only.
impl<'de> Deserialize<'de> for OhttpKeys
Available on crate feature
_core only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OhttpKeys
Available on crate feature
_core only.Auto Trait Implementations§
impl Freeze for OhttpKeys
impl RefUnwindSafe for OhttpKeys
impl Send for OhttpKeys
impl Sync for OhttpKeys
impl Unpin for OhttpKeys
impl UnwindSafe for OhttpKeys
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.