Skip to content

Pass handle parameter last on key creation #111

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

Merged

Conversation

gilles-peskine-arm
Copy link
Collaborator

Change the order of parameters for psa_import_key and psa_generate_derived_key to pass the handle output parameter last. This makes the order consistent with the general convention in the library to put inputs before outputs. Other key handle creation functions (psa_open_key, psa_generate_random_key, psa_copy_key) already had the handle output parameter last.

In psa_generate_derived_key, change the order of parameters to pass
the pointer where the newly created handle will be stored last.
This is consistent with most other library functions that put inputs
before outputs.
@gilles-peskine-arm gilles-peskine-arm added enhancement New feature or request needs: review The pull request is ready for review. This generally means that it has no known issues. api-spec Issue or PR about the PSA specifications labels May 15, 2019
@gilles-peskine-arm gilles-peskine-arm added this to the api-1.0-beta-3 milestone May 15, 2019
psa_import_key now takes an attribute structure, not a type.
In psa_import_key, change the order of parameters to pass
the pointer where the newly created handle will be stored last.
This is consistent with most other library functions that put inputs
before outputs.
Copy link
Collaborator

@yanesca yanesca left a comment

Choose a reason for hiding this comment

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

  • Minor: There is one more occurance of psa_generate_derived_key in
    ./docs/getting_started.md that needs updating.
  • Minor: There are more occurances of psa_imprt_key in
    ./docs/getting_started.md that needs updating.

@yanesca yanesca removed the needs: review The pull request is ready for review. This generally means that it has no known issues. label May 16, 2019
@gilles-peskine-arm
Copy link
Collaborator Author

getting_started.md is out of scope of the API document release. We'll update it in a batch later.

@yanesca yanesca added the needs: ci Needs a passing full CI run label May 16, 2019
@Patater
Copy link
Contributor

Patater commented May 16, 2019

CI failures on API branch are to do with building with crypto as a submodule and also TLS using PSA, both of which we don't care about at this point in development.

@Patater Patater merged commit beb0cc2 into ARMmbed:psa-api-1.0-beta May 16, 2019
@Patater Patater removed the needs: ci Needs a passing full CI run label May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-spec Issue or PR about the PSA specifications enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants