Skip to content

Test that Request Creation can use cloned OhttpKeys to remove &mut #1084

@DanGould

Description

@DanGould

Request creation using ohttp_encapsulate require a &mut OhttpKeys. I believe HpkeS that's created in ohttp::ClientRequest::from_config(ohttp_keys)?, where ohttp_keys is &mut, incorporates randomness so that this mutation does not need to be saved each time a request is created. If it does need to be saved, we need to make sure we're saving it.

Write a test to confirm that distinct calls to ClientRequest::from_config are different (indistinguishable, really) so that subsequent requests, especially requests between persisted resumption, are not able to be correlated.

Document the result, and potentially allow those state machine create request methods to take an immutable self or &self that clones OhttpKeys to make this design obvious.

Metadata

Metadata

Assignees

Labels

apidocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions