1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/tests/unit_node/crypto/testdata/asymmetric
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
..
rsa-pss_2048_32_nohash.pkcs8.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_2048_32_nohash.pkcs8.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_2048_32_nohash.spki.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_2048_32_nohash.spki.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_2048_nosalt_nohash.pkcs8.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_2048_nosalt_nohash.pkcs8.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_2048_nosalt_nohash.spki.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_2048_nosalt_nohash.spki.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_3072_nosalt_nohash.pkcs8.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_3072_nosalt_nohash.pkcs8.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_3072_nosalt_nohash.spki.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa-pss_3072_nosalt_nohash.spki.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_2048.pkcs1.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_2048.pkcs1.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_2048.pkcs8.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_2048.pkcs8.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_2048.spki.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_2048.spki.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_3072.pkcs1.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_3072.pkcs1.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_3072.pkcs8.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_3072.pkcs8.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_3072.spki.der feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00
rsa_3072.spki.pem feat(ext/node): rewrite crypto keys (#24463) 2024-08-07 08:43:58 +02:00