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

Create the Rust representation of PSA Crypto operations #3

Closed
hug-dev opened this issue Apr 23, 2020 · 0 comments
Closed

Create the Rust representation of PSA Crypto operations #3

hug-dev opened this issue Apr 23, 2020 · 0 comments

Comments

@hug-dev
Copy link
Member

hug-dev commented Apr 23, 2020

The PSA methods, written in Rust, can very largely be inspired by the ones created in the Parsec Rust Client replacing the key_name as a String with the key ID.

The following principle was adopted:

  • use Vec<u8> whenever a buffer is needed
  • use a Rust abstraction instead of the bindgen type
  • restrict the algorithm argument to the only possible values for the specific operation. For example psa_sign_hash and psa_verify_hash directly take an AsymmetricSignature type and not the high-level Algorithm
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

No branches or pull requests

1 participant