Skip to content

Document that multipart operation setup can return BAD_STATE #11

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

A setup function for a multipart operation should return PSA_ERROR_BAD_STATE if the operation structure is already in use. Before #6 this was impossible because the operation structure was not initialized, but now this is possible and strongly desirable so mandate it.

This PR only updates the implementation documentation, which currently also serves as a specification document. A future PR will need to implement the checks and add corresponding tests (tracked in #10).

hash_setup and mac_setup used to be called hash_start and mac_start,
but we've now converged on _setup as names. Finish making the
terminology in the documentation consistent.
Future commits will implement this and add tests.
@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. labels Jan 10, 2019
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.

The driver API still uses the old terminology ("start" instead of "set up"). Looks good to me assuming that this issue is out of scope for this PR.

@Patater Patater merged commit 7e2cda1 into ARMmbed:development Feb 19, 2019
@Patater Patater removed the needs: review The pull request is ready for review. This generally means that it has no known issues. label Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants