1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests/unit_node
Luca Casonato 4fa8869f24
feat(ext/node): rewrite crypto keys (#24463)
This completely rewrites how we handle key material in ext/node. Changes
in this
PR:

- **Signing**
  - RSA
  - RSA-PSS 🆕
  - DSA 🆕
  - EC
  - ED25519 🆕
- **Verifying**
  - RSA
  - RSA-PSS 🆕
  - DSA 🆕
  - EC 🆕
  - ED25519 🆕
- **Private key import**
  - Passphrase encrypted private keys 🆕
  - RSA
    - PEM
    - DER (PKCS#1) 🆕
    - DER (PKCS#8) 🆕
  - RSA-PSS
    - PEM
    - DER (PKCS#1) 🆕
    - DER (PKCS#8) 🆕
  - DSA 🆕
  - EC
    - PEM
    - DER (SEC1) 🆕
    - DER (PKCS#8) 🆕
  - X25519 🆕
  - ED25519 🆕
  - DH
- **Public key import**
  - RSA
    - PEM
    - DER (PKCS#1) 🆕
    - DER (PKCS#8) 🆕
  - RSA-PSS 🆕
  - DSA 🆕
  - EC 🆕
  - X25519 🆕
  - ED25519 🆕
  - DH 🆕
- **Private key export**
  - RSA 🆕
  - DSA 🆕
  - EC 🆕
  - X25519 🆕
  - ED25519 🆕
  - DH 🆕
- **Public key export**
  - RSA
  - DSA 🆕
  - EC 🆕
  - X25519 🆕
  - ED25519 🆕
  - DH 🆕
- **Key pair generation**
  - Overhauled, but supported APIs unchanged

This PR adds a lot of new individual functionality. But most importantly
because
of the new key material representation, it is now trivial to add new
algorithms
(as shown by this PR).

Now, when adding a new algorithm, it is also widely supported - for
example
previously we supported ED25519 key pair generation, but we could not
import,
export, sign or verify with ED25519. We can now do all of those things.
2024-08-07 08:43:58 +02:00
..
_fs fix(node/fs/promises): watch should be async iterable (#24805) 2024-07-31 13:07:49 +02:00
crypto feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
internal chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
testdata fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
_test_utils.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
assert_test.ts fix(node/assert): throws not checking error instance (#24466) 2024-07-08 21:28:39 +02:00
assertion_error_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
async_hooks_test.ts Revert "feat: async context" (#24856) 2024-08-02 18:16:59 +00:00
buffer_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
child_process_test.ts fix(node): Rework node:child_process IPC (#24763) 2024-07-30 16:13:24 -07:00
console_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
dgram_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
domain_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
events_test.ts fix(ext/node): implement EventEmitterAsyncResource (#22994) 2024-03-20 11:20:18 +05:30
fetch_test.ts feat(fetch): accept async iterables for body (#24623) 2024-08-06 00:13:02 -07:00
fs_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
http2_test.ts fix(ext/node): prevent panic in http2.connect with uppercase header names (#24780) 2024-07-29 13:33:55 +02:00
http_test.ts test(ext/node): reduce http_test flakiness (#24742) 2024-07-27 22:47:47 +09:00
module_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
net_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
os_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
path_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
perf_hooks_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
process_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
punycode_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
querystring_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
readline_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
repl_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
stream_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
string_decoder_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
timers_test.ts fix(node/timers/promises): add scheduler APIs (#24802) 2024-07-31 12:00:01 +02:00
tls_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
tty_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
util_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
v8_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
vm_test.ts feat: vm rewrite (#24596) 2024-08-06 12:52:53 +00:00
worker_threads_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
zlib_test.ts fix(ext/node): node:zlib coerces quality 10 to 9.5 (#24850) 2024-08-02 16:44:32 +02:00