Meghan Denny
c6187e3e3a
correct node:crypto.randomInt behavior and accept a callback ( #11505 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2024-06-06 18:24:26 -07:00
Meghan Denny
1c99cfebeb
crypto: fix digestToBytes and add tests ( #11234 )
2024-05-21 13:51:00 -07:00
Jarred Sumner
47e7e004b1
Remove @known-failing-on-windows for tests which are no longer failing on windows
2024-01-24 21:03:32 -08:00
dave caruso
072f2f15ea
ci: run windows tests and also run them concurrently ( #7758 )
2024-01-12 17:02:20 -08:00
Ciro Spaciari
2fbf73535c
fix createDecipheriv ( #3680 )
...
* fix createDecipheriv
* fix createDecipheriv iv and password validations
2023-07-19 16:01:36 -07:00
Jarred Sumner
7917ebd58f
Fixes base64url encoding for crypto ( #3654 )
...
* Fixes base64url encoding for crypto
* 🍏
* Update nodejs-apis.md
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-16 22:42:19 -07:00
Jarred Sumner
963d4311e6
Fixes #3530 ( #3587 )
...
* Fixes #3530
* Handle OOM
* Add test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-07-09 22:36:24 -07:00
Silas Rech
16598555f1
.randomInt() support (#3357 )
...
* Add initial .randomInt() fallback
* Add basic .randomInt() test
* Attempt creating a native implementation
* Switch to JSC.wrapWithHasContainer
* Switch to .jsNumberFromUint64(), it seems like using just .jsNumber() causes the number to overflow in some cases
* Regenerate out folder after rebasing
2023-06-26 15:35:48 -07:00
Jarred Sumner
b93bdbb124
Add test
2023-06-13 07:29:02 -07:00
Jarred Sumner
3ee22065f0
💅
2023-04-27 07:51:30 -07:00
Silver
0060e49923
fix: make node:crypto Hash.copy work correctly ( #2761 )
...
This commit will also:
- add a CryptoHasher.copy function
- make CryptoHasher.digest reset the hasher so it can be reused
Resolves #2651
2023-04-27 07:45:32 -07:00
Jarred Sumner
dc55e11714
Keep the node crypt otest
2023-04-21 07:25:51 -07:00
Jarred Sumner
613bb4822e
Revert "use a lazyily initialized stream for node:crypto createHash ( #2652 )"
...
This reverts commit 3a2fd65f20 .
2023-04-21 07:18:32 -07:00
dave caruso
3a2fd65f20
use a lazyily initialized stream for node:crypto createHash ( #2652 )
...
* lazy hash
* finish up crypto stuff
* remove lockfiles
* ok
* add pipe test
* update this lockfile
* remove unrelated crypto benchmark from this file
2023-04-13 21:55:01 -07:00
Jarred Sumner
e16053c39e
"binary" is an alias of "latin1"
...
Fixes https://github.com/oven-sh/bun/issues/2110
2023-03-07 22:59:29 -08:00
Ashcon Partovi
f7e4eb8369
Reorganize tests ( #2332 )
2023-03-07 12:22:34 -08:00