Skip to content
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

[v6] Use WebCrypto for AES-KW, drop AES_ECB dependency #1724

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

larabr
Copy link
Collaborator

@larabr larabr commented Feb 8, 2024

AES_CBC is now used instead of AES_ECB for single-block encryption. AES_CBC is implemented by WebCrypto, which can be used when encrypting (but not when decrypting, due to mandatory PKCS7 padding).

TODO:

src/crypto/mode/ocb.js Outdated Show resolved Hide resolved
@larabr larabr marked this pull request as ready for review February 9, 2024 12:35
Fallback needed for AES192, due to missing Chromium support.
The module was barely used, and its presence confusing, since
WebCrypto or asmcrypto are often directly used and usable instead.
Also, use AES_CBC instead of AES_ECB for single-block encryption,
so that we can drop support for the latter in the asmcrypto lib.
@larabr larabr merged commit a6283e6 into openpgpjs:v6 Feb 27, 2024
10 of 12 checks passed
@larabr larabr mentioned this pull request Feb 27, 2024
19 tasks
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.

None yet

2 participants