-
Notifications
You must be signed in to change notification settings - Fork 63
What is the difference between generatorKeyId
and keyIds
?
#951
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
Comments
Hi @MrsBookik, thanks for reaching out. When encrypting, the AWS Encryption SDK first generates a data key The "generator key" is the AWS KMS key that is used to generate the data key, See the Developer Guide for details: https://docs.aws.amazon.com/encryption-sdk/latest/developer-guide/how-it-works.html Keyrings used for encryption have different constraints than those used for decryption.
In summary, if you want to use a single keyring for both encryption and decryption,
|
I'm going to go ahead and close this out, but please feel free to re-open it or open a new issue if you have any further questions or concerns. |
Security issue notifications
no.
Problem:
Given official example code there are two different key concepts given that I am confused about:
In order to make
encrypt
and evendecrypt
work using KMS, I had to provide a generatorKeyId and second key that I have put intokeyIds
.Without the second Key, no decryption will happen and it will raise exception stating
Solution:
What is the purpose of each on both keys and why do we need both together?
Out of scope:
.
The text was updated successfully, but these errors were encountered: