Skip to content

aes-keyring-browser #27

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
merged 6 commits into from
Apr 9, 2019
Merged

aes-keyring-browser #27

merged 6 commits into from
Apr 9, 2019

Conversation

seebees
Copy link
Contributor

@seebees seebees commented Apr 2, 2019

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@seebees seebees requested a review from a team April 2, 2019 23:59
wrappingSuite: WrappingSuiteIdentifier
}

export class AesKeyringWebCrypto extends KeyringWebCrypto {

Choose a reason for hiding this comment

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

We need to add notes explaining exactly which AES modes we're using/supporting. The problem is that "AESWrap" or "AESKeyWrap" has a very specific meaning, which I'm almost positive we don't want. I think we only support GCM? If so, I recommend changing the leading "Aes" from all methods/objects to "AesGcm" to make this clear and avoid confusion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated from -node

keyName: string,
material: WebCryptoEncryptionMaterial,
aad: Uint8Array,
wrappingMaterial: WebCryptoDecryptionMaterial

Choose a reason for hiding this comment

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

Shouldn't this be WebCryptoEncryptionMaterial?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated from -node

keyName: string,
material: WebCryptoDecryptionMaterial,
wrappingMaterial: WebCryptoDecryptionMaterial,
edk: EncryptedDataKey,

Choose a reason for hiding this comment

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

It feels really weird taking in both the material and the edk. Are both actually required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated from -node

@mattsb42-aws mattsb42-aws self-assigned this Apr 5, 2019
Copy link
Member

@mattsb42-aws mattsb42-aws left a comment

Choose a reason for hiding this comment

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

LGTM

@seebees seebees merged commit 9ac24f8 into aws:master Apr 9, 2019
@seebees seebees deleted the add-aes-keyring-browser branch April 9, 2019 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants