-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
wrappingSuite: WrappingSuiteIdentifier | ||
} | ||
|
||
export class AesKeyringWebCrypto extends KeyringWebCrypto { |
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.
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.
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.
updated from -node
keyName: string, | ||
material: WebCryptoEncryptionMaterial, | ||
aad: Uint8Array, | ||
wrappingMaterial: WebCryptoDecryptionMaterial |
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.
Shouldn't this be WebCryptoEncryptionMaterial
?
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.
updated from -node
keyName: string, | ||
material: WebCryptoDecryptionMaterial, | ||
wrappingMaterial: WebCryptoDecryptionMaterial, | ||
edk: EncryptedDataKey, |
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.
It feels really weird taking in both the material and the edk. Are both actually required?
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.
updated from -node
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.
LGTM
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.