[−][src]Module odoh_rs::protocol
API for protocol functionality such as creating and parsing ODoH queries and responses.
Structs
ObliviousDoHConfig | Contains version and encryption information. Based on the version specified, the contents can differ. |
ObliviousDoHConfigContents | Contains the HPKE suite parameters and the resolver (target's) public key. |
ObliviousDoHConfigs | Supplies config information to the client. |
ObliviousDoHKeyPair |
|
ObliviousDoHMessage | Main structure used to transfer queries and responses. |
ObliviousDoHQueryBody | Contains the raw dns query from client and associated padding |
ObliviousDoHResponseBody | Contains the raw dns response from resolver and associated padding |
Enums
ObliviousDoHMessageType |
|
Constants
ODOH_HTTP_HEADER | HTTP header required for sending queries and responses |
ODOH_VERSION | ODoH version supported by this library |
Traits
Deserialize | Deserialize from IETF wireformat that is similar to XDR |
ObliviousDoHMessagePlaintext | Interface for raw queries and responses |
Serialize | Serialize to IETF wireformat that is similar to XDR |
Functions
create_query_msg | Create a query to send to the server, and a client secret from exporting the client context. |
create_response_msg | This function creates an |
get_supported_config | Returns the config supported by the library from a buffer containing |
parse_received_query | Deserializes, validates and decrypts the query sent by the client to generate
an |
parse_received_response | Parse bytes into a valid |
Type Definitions
Aead | |
Kdf | |
Kem | |
Kex |