Skip to content

Towards crypto & method agility: API updates, new buffer, new credential struct#284

Merged
geonnave merged 31 commits intolake-rs:mainfrom
geonnave:crypto-method-agility
Aug 2, 2024
Merged

Towards crypto & method agility: API updates, new buffer, new credential struct#284
geonnave merged 31 commits intolake-rs:mainfrom
geonnave:crypto-method-agility

Conversation

@geonnave
Copy link
Copy Markdown
Collaborator

@geonnave geonnave commented Jun 4, 2024

Still very early stage.

@geonnave
Copy link
Copy Markdown
Collaborator Author

So far this PR includes:

  • updates in the API
    • support for setting different methods and crypto suites (even though only one is supported for now)
    • a separate function for setting identity (private key + credential)
  • a new buffer struct that is parameterizeable via const generics
  • a new credential struct that supports CCS's that hold asymmetric and symmetric keys
  • improved handling of ID_CRED_x, including support for kids longer than 1 byte

Next steps are to update the examples and C/Python wrappers, then merge on main and continue the agility work on a new PR.

@geonnave geonnave marked this pull request as ready for review July 31, 2024 09:19
@geonnave geonnave force-pushed the crypto-method-agility branch from 6373799 to aa6eca5 Compare July 31, 2024 13:17
@geonnave geonnave force-pushed the crypto-method-agility branch from 9fb5f57 to 754a866 Compare August 2, 2024 08:47
@geonnave geonnave changed the title Add crypto & method agility Towards crypto & method agility: API updates, new buffer, new credential strucr Aug 2, 2024
@geonnave geonnave changed the title Towards crypto & method agility: API updates, new buffer, new credential strucr Towards crypto & method agility: API updates, new buffer, new credential struct Aug 2, 2024
@geonnave geonnave requested a review from malishav August 2, 2024 08:52
@geonnave
Copy link
Copy Markdown
Collaborator Author

geonnave commented Aug 2, 2024

@malishav just asked for a review, mostly interested in an ack about the changeset (in comment above).

One point I have is that the Symmetric key type would not need to live in main, but not keeping it in main means having to keep another version of the code just for that, which in my opinion is not worth it.

@geonnave
Copy link
Copy Markdown
Collaborator Author

geonnave commented Aug 2, 2024

Also, regarding actual crypto agility, I will leave for another PR since this one is already big enough...

Copy link
Copy Markdown
Member

@malishav malishav left a comment

Choose a reason for hiding this comment

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

I went briefly over the PR, it is massive, congrats on pulling this off! I am happy if you merge this!

@geonnave geonnave merged commit b82451d into lake-rs:main Aug 2, 2024
@geonnave geonnave deleted the crypto-method-agility branch August 2, 2024 11:36
geonnave added a commit to geonnave/lakers that referenced this pull request Oct 4, 2024
includes breaking changes from PRs lake-rs#284 and lake-rs#294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants