[][src]Trait odoh_rs::protocol::ObliviousDoHMessagePlaintext

pub trait ObliviousDoHMessagePlaintext {
    fn padding(&self) -> &[u8];

    fn validate_padding(&self) -> Result<()> { ... }
}

Interface for raw queries and responses

Required methods

fn padding(&self) -> &[u8]

Loading content...

Provided methods

fn validate_padding(&self) -> Result<()>

According to the ODoH draft, the padding is required to be all zeros. This function ensures that is the case.

Note that this is NOT constant time.

Loading content...

Implementors

impl ObliviousDoHMessagePlaintext for ObliviousDoHQueryBody[src]

impl ObliviousDoHMessagePlaintext for ObliviousDoHResponseBody[src]

Loading content...