Skip to content

Further factoring of the crypto interface#351

Merged
djc merged 16 commits intomasterfrom
crypto
Jun 4, 2019
Merged

Further factoring of the crypto interface#351
djc merged 16 commits intomasterfrom
crypto

Conversation

@djc
Copy link
Member

@djc djc commented May 24, 2019

No description provided.

@djc djc changed the title [WIP] Further factoring of the crypto interface Further factoring of the crypto interface May 25, 2019
@djc
Copy link
Member Author

djc commented May 25, 2019

@Ralith I think this is ready for a first round of review!

Copy link
Collaborator

@Ralith Ralith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good! I'm pleasantly surprised at how graceful this ended up being; hopefully Quinn will provide an excellent foundation for future experiments with e.g. a lightweight noise protocol based crypto layer.

It would be nice to validate the abstractions here with some non-TLS implementation, but unless someone's waiting in the wings to do that I don't think it makes sense as a blocker. We're more likely to hear from a prospective user if we have a 90% usable extension API than none at all.

Could we also make the quinn builders generic? The rustls-specific methods could be guarded with e.g. impl EndpointBuilder<rustls::TlsSession> and we'd open up potential for future conditionally-compiled methods for other cryptographic protocol implementations.

@djc
Copy link
Member Author

djc commented May 30, 2019

Could we also make the quinn builders generic?

I tried some things, but if we want the high-level API to remain ergonomic, I think this gets pretty complex. Might dive into it as a follow-up, though? Seems to make sense that propagating the abstraction further out can be layered on top of this.

@djc
Copy link
Member Author

djc commented May 30, 2019

Have another look?

Ralith
Ralith previously approved these changes Jun 3, 2019
Copy link
Collaborator

@Ralith Ralith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good; awesome generalization!

@djc djc merged commit 33ea564 into master Jun 4, 2019
@delete-merged-branch delete-merged-branch bot deleted the crypto branch June 4, 2019 17:51
djc added a commit that referenced this pull request Feb 26, 2020
This is the second time we flip-flop on this. Previously in
4fd4868 (#351) we moved these types from
quinn into quinn-proto so that they could be used as part of the low-level
configuration API.

Then in 9522b44 (#511) we moved them back
into quinn after some discussion, making the point that the configuration
API at the quinn-proto was not in a great place.

Here, we keep the existing quinn-proto configuration API and merely offer
an abstracted API relying on the wrapper types for use in quinn internals.
djc added a commit that referenced this pull request Feb 26, 2020
This is the second time we flip-flop on this. Previously in
4fd4868 (#351) we moved these types from
quinn into quinn-proto so that they could be used as part of the low-level
configuration API.

Then in 9522b44 (#511) we moved them back
into quinn after some discussion, making the point that the configuration
API at the quinn-proto was not in a great place.

Here, we keep the existing quinn-proto configuration API and merely offer
an abstracted API relying on the wrapper types for use in quinn internals.
djc added a commit that referenced this pull request Mar 6, 2020
This is the second time we flip-flop on this. Previously in
4fd4868 (#351) we moved these types from
quinn into quinn-proto so that they could be used as part of the low-level
configuration API.

Then in 9522b44 (#511) we moved them back
into quinn after some discussion, making the point that the configuration
API at the quinn-proto was not in a great place.

Here, we keep the existing quinn-proto configuration API and merely offer
an abstracted API relying on the wrapper types for use in quinn internals.
djc added a commit that referenced this pull request Mar 6, 2020
This is the second time we flip-flop on this. Previously in
4fd4868 (#351) we moved these types from
quinn into quinn-proto so that they could be used as part of the low-level
configuration API.

Then in 9522b44 (#511) we moved them back
into quinn after some discussion, making the point that the configuration
API at the quinn-proto was not in a great place.

Here, we keep the existing quinn-proto configuration API and merely offer
an abstracted API relying on the wrapper types for use in quinn internals.
Ralith pushed a commit that referenced this pull request Mar 7, 2020
This is the second time we flip-flop on this. Previously in
4fd4868 (#351) we moved these types from
quinn into quinn-proto so that they could be used as part of the low-level
configuration API.

Then in 9522b44 (#511) we moved them back
into quinn after some discussion, making the point that the configuration
API at the quinn-proto was not in a great place.

Here, we keep the existing quinn-proto configuration API and merely offer
an abstracted API relying on the wrapper types for use in quinn internals.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants