Skip to content

Expose C_I to responders#261

Merged
geonnave merged 2 commits intolake-rs:mainfrom
chrysn-pull-requests:expose-c_i
May 3, 2024
Merged

Expose C_I to responders#261
geonnave merged 2 commits intolake-rs:mainfrom
chrysn-pull-requests:expose-c_i

Conversation

@chrysn
Copy link
Copy Markdown
Member

@chrysn chrysn commented May 3, 2024

Depends-On: #260 (therefore, just check the top commit)

Closes: #258

On the Python side, this follows the convention established in #260 to represent ConnId as bytes instead of an integer (so we won't need an API change there once ConnId can get larger)

@chrysn chrysn changed the title Expose c i Expose C_I to responders May 3, 2024
This makes the APIs clearer and paves the way for adding support for
longer C_x.

This alters the Python API to consistently use bytes for connection
identifiers. Once lake-rs#258 is done, it will automatically allow the Python
API to support more values.

Contributes-To: lake-rs#258
This is an API change, and allows responders to build full OSCORE
contexts through knowledge of the initiator's chosen C_I.

Closes: lake-rs#259
@chrysn chrysn marked this pull request as ready for review May 3, 2024 10:18
@chrysn
Copy link
Copy Markdown
Member Author

chrysn commented May 3, 2024

All green, squashed and ready for review!

@geonnave
Copy link
Copy Markdown
Collaborator

geonnave commented May 3, 2024

Good! Thanks.

@geonnave geonnave merged commit c0d74ac into lake-rs:main May 3, 2024
@chrysn chrysn deleted the expose-c_i branch May 3, 2024 11:09
chrysn added a commit to chrysn-pull-requests/ariel-os that referenced this pull request May 13, 2024
The updated Lakers exposes C_I to responders[261], so we don't need
hard-coded knowledge of the peer's chosen C_I any more.

[261]: lake-rs/lakers#261
chrysn added a commit to chrysn-pull-requests/ariel-os that referenced this pull request May 14, 2024
The updated Lakers exposes C_I to responders[261], so we don't need
hard-coded knowledge of the peer's chosen C_I any more.

[261]: lake-rs/lakers#261
chrysn added a commit to chrysn-pull-requests/ariel-os that referenced this pull request May 15, 2024
The updated Lakers exposes C_I to responders[261], so we don't need
hard-coded knowledge of the peer's chosen C_I any more.

[261]: lake-rs/lakers#261
chrysn added a commit to chrysn-pull-requests/ariel-os that referenced this pull request May 17, 2024
The updated Lakers exposes C_I to responders[261], so we don't need
hard-coded knowledge of the peer's chosen C_I any more.

[261]: lake-rs/lakers#261
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.

C_x only support u8

2 participants