aboutsummaryrefslogtreecommitdiff
path: root/test/js/node/crypto (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-10-07feat(KeyObject) (#5940)Gravatar Ciro Spaciari 27-0/+2344
* oops * createSecretKey but weird error * use the right prototype, do not add a function called export lol * HMAC JWT export + base64 fix * Fix Equals, Fix Get KeySize, add complete export RSA * fix RSA export * add EC exports * X25519 and ED25519 export + fixes * fix default exports * better asymmetricKeyType * fix private exports * fix symmetricKeySize * createPublicKey validations + refactor * jwt + der fixes * oopsies * add PEM into createPublicKey * cleanup * WIP * bunch of fixes * public from private + private OKP * encrypted keys fixes * oops * fix clear tls error, add some support to jwk and other formats on publicEncrypt/publicDecrypt * more fixes and tests working * more fixes more tests * more clear hmac errors * more tests and fixes * add generateKeyPair * more tests passing, some skips * fix EC key from private * fix OKP JWK * nodejs ignores ext and key_ops on KeyObject.exports * add EC sign verify test * some fixes * add crypto.generateKeyPairSync(type, options) * more fixes and more tests * fix hmac tests * jsonwebtoken tests * oops * oops2 * generated files * revert package.json * vm tests * todos instead of failues * toBunString -> toString * undo simdutf * improvements * unlikely * cleanup * cleanup 2 * oops * move _generateKeyPairSync checks to native
2023-07-19fix createDecipheriv (#3680)Gravatar Ciro Spaciari 1-0/+18
* fix createDecipheriv * fix createDecipheriv iv and password validations
2023-07-16Fixes base64url encoding for crypto (#3654)Gravatar Jarred Sumner 1-0/+4
* Fixes base64url encoding for crypto * :green_apple: * Update nodejs-apis.md --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-07-10feat(crypto) add getCurves (#3598)Gravatar Ciro Spaciari 1-1/+8
* add getCurves * add nodefallbacks * update docs * oops
2023-07-09Fixes #3530 (#3587)Gravatar Jarred Sumner 1-0/+44
* Fixes #3530 * Handle OOM * Add test --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
2023-06-26`.randomInt()` support (#3357)Gravatar Silas Rech 1-0/+21
* 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-20Clone SourceOrigin stringGravatar Jarred Sumner 1-0/+9
2023-06-13Add testGravatar Jarred Sumner 1-0/+6
2023-06-01Fix streams breaking on reverted EventEmitter / Make Discord.js work (#2913)Gravatar dave caruso 2-1/+13
* Revert "Revert "use a lazyily initialized stream for `node:crypto` `createHash` (#2652)"" This reverts commit 613bb4822ee8f4fbfd78aef391e2db8f07659a6f. * Revert "Revert "implement `node:events` in javascript (#2604)"" This reverts commit a4d0a1961abe0c6073e15cc6f7c0601b74f2e3f7. * oops * fix entrypoints stuff * fix hash copy * use native events for node streams and crypto * requested changes * oops * make discord.js work * fix webkit hash * headers tojson
2023-04-27:nail_care:Gravatar Jarred Sumner 2-15/+4
2023-04-27fix: make node:crypto Hash.copy work correctly (#2761)Gravatar Silver 2-0/+98
This commit will also: - add a CryptoHasher.copy function - make CryptoHasher.digest reset the hasher so it can be reused Resolves #2651
2023-04-21Keep the node crypt otestGravatar Jarred Sumner 1-6/+67
2023-04-21Revert "use a lazyily initialized stream for `node:crypto` `createHash` (#2652)"Gravatar Jarred Sumner 3-80/+7
This reverts commit 3a2fd65f20d3b4e99c89f789acec5e5e40615008.
2023-04-13use a lazyily initialized stream for `node:crypto` `createHash` (#2652)Gravatar dave caruso 3-7/+80
* lazy hash * finish up crypto stuff * remove lockfiles * ok * add pipe test * update this lockfile * remove unrelated crypto benchmark from this file
2023-03-22Fix types (#2453)Gravatar Colin McDonnell 2-1/+1
* WIP * WIP * WIP * WIP * Improve typechecking in type files * Fix typechecking * Update * Update submodule * CI for typechecking * Add ci * Update commands * Format after build * Dont use bunx * Rename job * Use nodemodules prettier * Update workflow * Use symlink * Debug * Debug * Clean up and rename jobs
2023-03-07"binary" is an alias of "latin1"Gravatar Jarred Sumner 1-0/+6
Fixes https://github.com/oven-sh/bun/issues/2110
2023-03-07Reorganize tests (#2332)Gravatar Ashcon Partovi 3-0/+367