Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MLSMessage framework #262

Merged
merged 44 commits into from
Jul 25, 2022
Merged

Add MLSMessage framework #262

merged 44 commits into from
Jul 25, 2022

Conversation

bifurcation
Copy link
Contributor

Corresponds to mlswg/mls-protocol#523

This required a bit of conceptual realignment in the API, since it had been oriented around the idea that you could convert between MLSPlaintext and MLSCiphertext. Now you have to declare your intent earlier, thus the MessageOpts structure.

As a side benefit, because this is a clean-slate reimplementation of MLSCiphertext, we now have the ability to add message padding.

Add MLSMessage

Add tests of MLSMessage framework functionality

Begin adding support for MLSMessage-formatted proposals

Add MLSMessage-based Commit

Migrate State tests to new MLSMessage methods

Move Session over to MLSMessage framework

Convert application data protect/unprotect to MLSMessage

Move external join to MLSMessage framework

Remove MLSPlaintext/MLSCiphertext from state.h/.cpp

Remove MLSPlaintext/MLSCiphertext from the remainder of src/*

Remove old MLSPlaintext and MLSCiphertext

Remove namespace mls2

Update test vectors to use MLSMessage

Dead code removal

Remove rvalue reference silliness

clang-format
Copy link
Contributor Author

@bifurcation bifurcation left a comment

Choose a reason for hiding this comment

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

Covers all but state.cpp.

include/mls/key_schedule.h Show resolved Hide resolved
include/mls/messages.h Show resolved Hide resolved
include/mls/messages.h Outdated Show resolved Hide resolved
include/mls/messages.h Outdated Show resolved Hide resolved
include/mls/state.h Outdated Show resolved Hide resolved
src/messages.cpp Outdated Show resolved Hide resolved
src/messages.cpp Show resolved Hide resolved
src/messages.cpp Outdated Show resolved Hide resolved
src/messages.cpp Outdated Show resolved Hide resolved
include/mls/state.h Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
src/state.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@suhasHere suhasHere 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 overall , have few nits.

include/mls/messages.h Show resolved Hide resolved
include/mls/messages.h Show resolved Hide resolved
include/mls/state.h Show resolved Hide resolved
src/messages.cpp Outdated Show resolved Hide resolved
@bifurcation bifurcation mentioned this pull request Jul 25, 2022
@bifurcation bifurcation merged commit b21adfa into main Jul 25, 2022
@bifurcation bifurcation deleted the mlsmessage branch February 17, 2023 17:22
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