-
Notifications
You must be signed in to change notification settings - Fork 3
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
[#21] Implement Document Encryption that returns EDEKs #27
Conversation
Android 64 build is failing as it is cross compiled and doesn't allow writing to the cross-rs/cross#145 (comment) may contain some helpful information if we decide to continue generating proto -> rs at ironoxide build time. Deferring this until we decide on a general way to handle .proto files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Responding to some responses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just comments on comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pending a bit more cleanup of TODO style comments into issues or actual changes, I think it looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the structure and creation of DocumentEncryptUnmanagedResult
, I think we're close.
tests/document_ops.rs
Outdated
@@ -211,32 +212,209 @@ fn doc_create_with_policy_grants() -> Result<(), IronOxideErr> { | |||
} | |||
|
|||
#[test] | |||
fn doc_create_with_explicit_grants() { | |||
let sdk = init_sdk(); | |||
fn doc_edek_encrypt_with_policy_grants() -> Result<(), IronOxideErr> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test name should reflect the name changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
responses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd still like to see that one test case with the policy simplified, but thanks for fixing up the creation of the Unmanaged result to make the java and scala bindings better.
see #21
Changelog
DocumentAdvancedOps::document_encrypt_unmanaged
function added for advanced use cases where the calling application wants to manage both the encrypted data and the associated edeks instead of using the IronCore service for EDEK management.TODO
fix android-64 build(disabled for now)