Skip to content

Bound maximum size of random_get buffer. #284

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 8 commits into from
Apr 18, 2022

Conversation

bryanmcquade
Copy link
Contributor

With this change, random_get will return an error for buffers larger than 64kB.
This is consistent with the JavaScript Crypto.getRandomValues() maximum buffer size.

@bryanmcquade bryanmcquade changed the title Bound maximum size of random_git buffer. Bound maximum size of random_get buffer. Apr 15, 2022
@mathetake
Copy link
Contributor

Bryan McQuade added 3 commits April 14, 2022 21:11
Signed-off-by: Bryan McQuade <[email protected]>
Updates Crypto.getRandomValues() link to point to the spec (canonical source).

Signed-off-by: Bryan McQuade <[email protected]>
Bryan McQuade and others added 2 commits April 14, 2022 21:20
Signed-off-by: Bryan McQuade <[email protected]>
Signed-off-by: Piotr Sikora <[email protected]>
@PiotrSikora
Copy link
Member

@PiotrSikora PiotrSikora requested a review from mathetake April 15, 2022 20:44
@PiotrSikora PiotrSikora merged commit 3c703dc into proxy-wasm:master Apr 18, 2022
knm3000 pushed a commit to knm3000/proxy-wasm-cpp-host that referenced this pull request Aug 17, 2022
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