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

Add rust bindings for SGX crypto library #8

Merged
merged 3 commits into from
Jul 21, 2022
Merged

Conversation

nick-mobilecoin
Copy link
Collaborator

Initial rust wrapper to show usage of bindings for SGX crypto library.

This provides the basic bindings to show that the sgx_tcrypto library is linked in and can be executed against. Only one sgx function was provided with an explicit rust wrapper.

The tests currently rely on std

Follow on work will bring in rust wrappers for the rest of the crypto functionality.

@nick-mobilecoin nick-mobilecoin requested review from a team and jcape May 18, 2022 17:42
@nick-mobilecoin
Copy link
Collaborator Author

@jcape let me know if this is the directory layout you were thinking of.

trusted/crypto/src/lib.rs Outdated Show resolved Hide resolved
trusted/crypto/sys/src/lib.rs Show resolved Hide resolved
trusted/crypto/Cargo.toml Outdated Show resolved Hide resolved
trusted/crypto/src/lib.rs Outdated Show resolved Hide resolved
trusted/crypto/sys/types/Cargo.toml Outdated Show resolved Hide resolved
trusted/crypto/sys/Cargo.toml Outdated Show resolved Hide resolved
trusted/crypto/sys/src/lib.rs Outdated Show resolved Hide resolved
@nick-mobilecoin nick-mobilecoin self-assigned this May 19, 2022
Copy link
Contributor

@remoun remoun left a comment

Choose a reason for hiding this comment

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

LGTM

trusted/crypto/src/lib.rs Outdated Show resolved Hide resolved
trusted/crypto/src/lib.rs Outdated Show resolved Hide resolved
trusted/crypto/sys/src/lib.rs Show resolved Hide resolved
trusted/crypto/src/lib.rs Outdated Show resolved Hide resolved
remoun
remoun previously approved these changes May 19, 2022
@nick-mobilecoin nick-mobilecoin force-pushed the feature/move_panic_into_trusted_dir branch from e52ed44 to 853f044 Compare May 20, 2022 21:28
Base automatically changed from feature/move_panic_into_trusted_dir to develop May 20, 2022 21:35
@nick-mobilecoin nick-mobilecoin requested a review from a team June 3, 2022 16:35
@nick-mobilecoin nick-mobilecoin marked this pull request as draft July 14, 2022 13:56
@nick-mobilecoin nick-mobilecoin changed the base branch from develop to feature/common_build_crate July 14, 2022 21:57
@nick-mobilecoin
Copy link
Collaborator Author

The generated bindings files

@nick-mobilecoin nick-mobilecoin marked this pull request as ready for review July 14, 2022 22:21
@nick-mobilecoin nick-mobilecoin dismissed remoun’s stale review July 15, 2022 14:20

The rebase and refactor doesn't accuratly represent the code that was originally reviewed.

trusted/crypto/sys/types/src/lib.rs Show resolved Hide resolved
trusted/trts/sys/Cargo.toml Outdated Show resolved Hide resolved
trusted/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@awygle awygle left a comment

Choose a reason for hiding this comment

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

LGTM. Not totally sure why we have a separate crate just for types but the pattern is applied broadly in @mobilecoinfoundation/mobilecoin so it makes sense to be consistent.

@nick-mobilecoin
Copy link
Collaborator Author

nick-mobilecoin commented Jul 21, 2022

Graphite Merge Job

Current status: ✅ Merged

This pull request was successfully merged as part of a stack.

This comment was auto-generated by Graphite.

Job Reference: QB8STOU63qtQFHJyhfrd

Base automatically changed from feature/common_build_crate to develop July 21, 2022 18:25
@nick-mobilecoin nick-mobilecoin merged commit e70db7f into develop Jul 21, 2022
@nick-mobilecoin nick-mobilecoin deleted the feature/crypto branch July 21, 2022 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants