1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/tests/unit_node/crypto
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
..
testdata feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
crypto_cipher_gcm_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
crypto_cipher_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
crypto_hash_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
crypto_hkdf_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
crypto_import_export.ts feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
crypto_key_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
crypto_misc_test.ts fix(ext/crypto): respect offsets when writing into ab views in randomFillSync (#24816) 2024-08-01 09:38:46 +02:00
crypto_pbkdf2_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
crypto_scrypt_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
crypto_sign_test.ts chore: update to std@2024.07.19 (#24715) 2024-07-25 15:30:28 +10:00
ec_private_secp256r1.pem chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
gcmEncryptExtIV128.json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
gcmEncryptExtIV256.json chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
generate_fixture.mjs fix(ext/node): rewrite digest handling (#24392) 2024-07-05 10:10:22 +02:00
generate_keys.mjs feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00