Skip to content

Conversation

@Meterel
Copy link
Contributor

@Meterel Meterel commented Dec 30, 2025

Description

Removed an incorrect extra example for AES-CTR encryption

Motivation

It is likely a leftover draft that doesn't have an equivalent in https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt and that doesn't follow the rest by not being based upon the full example code and that uses in window.crypto.subtle.encrypt's algorithm parameter a length of 128 instead of the recommended 64 according to https://developer.mozilla.org/en-US/docs/Web/API/AesCtrParams, it also uses window.crypto.getRandomValues and window.crypto.subtle.importKey to generate the key instead of just window.crypto.subtle.generateKey

Removed an extra example of AES-CTR encryption that is likely a leftover draft that doesn't have an equivalent in https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt and that doesn't follow the rest by not being based upon the full example code and that uses in window.crypto.subtle.encrypt's algorithm parameter a length of 128 instead of the recommended 64 according to https://developer.mozilla.org/en-US/docs/Web/API/AesCtrParams, it also uses window.crypto.getRandomValues and window.crypto.subtle.importKey to generate the key instead of just window.crypto.subtle.generateKey.
@Meterel Meterel requested a review from a team as a code owner December 30, 2025 22:00
@Meterel Meterel requested review from sideshowbarker and removed request for a team December 30, 2025 22:00
@github-actions github-actions bot added Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed labels Dec 30, 2025
@sideshowbarker sideshowbarker merged commit 373b648 into mdn:main Dec 31, 2025
6 checks passed
@sideshowbarker
Copy link
Member

@Meterel, congrats on landing your first docs change here — welcome aboard 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

2 participants