Take a look at this example for how to initialize a RawMasterKey with access to the public key and a RawMasterKey with access to the private key:
The RawMasterKey with access to the public key can be used for encryption, and the RawMasterKey with access to the private key can be used for decryption.
(Note that this links to example on one of our features branches. For future readers of this post, if this link is dead, look for this example on the master branch.)
Thanks. Works perfectly.
Curiously, I thought I had tried a pattern similar to that, but in all honesty I am no longer sure :)
Regardless, this is the tonic. I have also tried it with aws_encryption_sdk.stream(), as I will be dealing with bigger files and as expected, it worked perfectly.
I appreciate you taking the time to answer. Thanks!
- Accepted Answerasked a year ago
- How can I verify that authenticated encryption with associated data encryption is used when calling AWS KMS APIs?AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 6 months ago
- EXPERTpublished a month ago
- EXPERTpublished a year ago