1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00
denoland-deno/ext/node/polyfills/internal/crypto
Divy Srivastava 9496dfc685
fix(ext/node): implement asymmetric keygen (#18651)
Towards #18455 

This commit implements the keypair generation for asymmetric keys for
the `generateKeyPair` API.

See how key material is managed in this implementation:
https://www.notion.so/denolandinc/node-crypto-design-99fc33f568d24e47a5e4b36002c5325d?pvs=4

Private and public key encoding depend on `KeyObject#export` which is
not implemented. I've also skipped ED448 and X448 since we need a crate
for that in WebCrypto too.
2023-04-19 22:27:34 +05:30
..
_keys.ts refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) 2023-03-08 12:44:54 +01:00
_randomBytes.ts refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) 2023-03-08 12:44:54 +01:00
_randomFill.ts refactor(node/crypto): port polyfill to Rust for randomInt, randomFill, randomFillSync (#18658) 2023-04-12 02:57:57 +02:00
_randomInt.ts refactor(node/crypto): port polyfill to Rust for randomInt, randomFill, randomFillSync (#18658) 2023-04-12 02:57:57 +02:00
certificate.ts refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) 2023-03-08 12:44:54 +01:00
cipher.ts fix(ext/node): add aes-128-ecb algorithm support (#18412) 2023-03-25 15:42:07 +09:00
constants.ts feat(ext/node): embed std/node into the snapshot (#17724) 2023-02-14 17:38:45 +01:00
diffiehellman.ts refactor: rename InternalModuleLoader to ExtModuleLoader, use ext: scheme for snapshotted modules (#18041) 2023-03-08 12:44:54 +01:00
hash.ts fix(ext/node): implement crypto.Sign (RSA/PEM/SHA{224,256,384,512}) (#18471) 2023-03-28 21:46:48 +09:00
hkdf.ts fix(ext/node): implement hkdf-expand (#18612) 2023-04-06 16:56:56 +00:00
keygen.ts fix(ext/node): implement asymmetric keygen (#18651) 2023-04-19 22:27:34 +05:30
keys.ts fix(ext/node): add symmetric keygen (#18609) 2023-04-06 18:39:25 +05:30
pbkdf2.ts chore(ext/node): port pbkdf2 to Rust (#18470) 2023-03-28 09:40:56 +00:00
random.ts perf(ext/websocket): use opAsync2 to avoid spread deopt (#18525) 2023-03-31 21:28:21 +05:30
scrypt.ts refactor(node/crypto): scrypt polyfill to rust (#18746) 2023-04-18 14:29:10 +02:00
sig.ts fix(ext/node): add crypto.sign|verify methods (#18765) 2023-04-19 23:24:26 +09:00
types.ts chore(ext/node): copy internal/crypto/types.ts from std (#18156) 2023-03-14 00:18:07 +09:00
util.ts fix(ext/node): add symmetric keygen (#18609) 2023-04-06 18:39:25 +05:30
x509.ts fix(ext/node): add X509Certificate (#18625) 2023-04-07 22:54:16 +05:30