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

Update cryptoki and cryptoki-sys crates #697

Conversation

tgonzalezorlandoarm
Copy link
Member

  • Update the cryptoki and cryptoki-sys crates.
  • Remove the psa-crypto-conversions feature from the cryptoki dependency in the Cargo.toml file. The psa-crypto crate is already being brought up in the Cargo.toml file and this would lead to a crate conflict when upgrading.

@tgonzalezorlandoarm tgonzalezorlandoarm force-pushed the tg/update-cryptoki branch 3 times, most recently from 36682ea to 6c13f83 Compare September 12, 2023 14:17
@tgonzalezorlandoarm tgonzalezorlandoarm self-assigned this Sep 20, 2023
@tgonzalezorlandoarm tgonzalezorlandoarm added the dependencies Pull requests that update a dependency file label Sep 20, 2023
@tgonzalezorlandoarm tgonzalezorlandoarm linked an issue Sep 20, 2023 that may be closed by this pull request
@tgonzalezorlandoarm tgonzalezorlandoarm force-pushed the tg/update-cryptoki branch 16 times, most recently from bf9aa38 to 2bfc25a Compare September 22, 2023 09:15
@tgonzalezorlandoarm
Copy link
Member Author

The last commit of the PR is breaking the tests (the tests pass for the previous commit) . What I'm thinking is causing the issue is the introduction of PkcsOaepSource::new and maybe how I'm using it?
This is hypothesis is based on the particular test that is failing.
@ionut-arm do you have any suggestions by any chance?

@tgonzalezorlandoarm
Copy link
Member Author

This PR depends on parallaxsecond/rust-cryptoki#165 being merged

tgonzalezorlandoarm added a commit to tgonzalezorlandoarm/rust-cryptoki that referenced this pull request Sep 27, 2023
Cryptoki should be using cryptoki-sys latest version, so that when
it's pulled by other projects there is no version misalignment.

Otherwise, a 'cargo update --package cryptoki-sys' is needed after
updating cryptoki.

This issue was discovered when trying to update to cryptoki 0.5.0
in parallaxsecond/parsec#697

Signed-off-by: Tomás González <[email protected]>
 * Remove the psa-crypto-conversions feature from the cryptoki
   dependency in the Cargo.toml file. The psa-crypto crate is
   already being brought up in the Cargo.toml file and this would
   have lead to a crate conflict when upgrading.
 * Remove parsec's dependency on cryptoki's psa-crypto by creating
   helping functions to perform type conversions.

Signed-off-by: Tomás González <[email protected]>
 * Update the cryptoki and cryptoki-sys crates.
 * Minor changes to the code to update according to the updates
   version of cryptoki.

Signed-off-by: Tomás González <[email protected]>
Signed-off-by: Tomás González <[email protected]>
@tgonzalezorlandoarm tgonzalezorlandoarm merged commit 0231671 into parallaxsecond:main Oct 9, 2023
13 checks passed
@tgonzalezorlandoarm tgonzalezorlandoarm deleted the tg/update-cryptoki branch October 26, 2023 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update cryptoki version to 0.4.1
2 participants