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

Swap out hpke-spec for hpke-rs #17

Merged
merged 7 commits into from
Aug 8, 2022
Merged

Swap out hpke-spec for hpke-rs #17

merged 7 commits into from
Aug 8, 2022

Conversation

jvmncs
Copy link
Contributor

@jvmncs jvmncs commented Aug 8, 2022

CAPE-820

  • rewrites all of the existing functionality to use hpke-rs as our rust backend.
  • breaking change: rename the python library to hybrid_pke
  • breaking change: renames hpke_open -> open and hpke_seal -> seal
  • breaking change: hpke-rs puts the functions generate_key_pair, open, and seal directly on the Hpke configuration struct, so in Python-land these are no longer pure functions but rather instance methods on the python class binding to Hpke
  • breaking change: expands the signatures of open/seal to include info, aad, and optional psk, psk_id, and pk_s/sk_r
  • exposes the underlying hpke_rs::HpkeError enum as a set of custom python Exceptions through PyO3, which significantly improves the experience of handling Rust errors from Python

@jvmncs jvmncs changed the title Hpke rs swap Swap out hpke-spec for hpke-rs Aug 8, 2022
@jvmncs jvmncs merged commit 7adf4c1 into main Aug 8, 2022
@jvmncs jvmncs deleted the hpke-rs-swap branch August 8, 2022 19:51
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