mdn/content

Precise max length for encoding algorithm

Open

#18,045 opened on Jul 6, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Markdown (22,427 forks)batch import
Content:WebAPIarea: Web Cryptohelp wanted

Repository metrics

Stars
 (8,900 stars)
PR merge metrics
 (Avg merge 7d 3h) (147 merged PRs in 30d)

Description

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt

What specific section or headline is this issue about?

Supported Algorithm

What information was incorrect, unhelpful, or incomplete?

This page is missing information about the algorithm we can use. For example, for the RSA-OAEP there is a limit in the number of bytes you can encrypt. I did not check for the others algorithm but theses limitation are missing in the doc. Just a warning that says "The algorithm can have some limitation such as the size of the data to encode. Check the RFC for more information" would be really helpfull since the error message are basically inexistent at this point in time.

What did you expect to see?

An array with what an algorithm can encode and the limitation

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Contributor guide