diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-04-29 19:16:38 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 19:16:38 +0530 |
commit | b02ffec37c73be8a73b95b33b32efa693e84e01b (patch) | |
tree | 6bdcda1ee6e6e7d1b63d05320fe2236dfa86999b /ext/node/lib.rs | |
parent | 7d937045910968fbb2c050e803d79bc1c1e5984b (diff) |
fix(ext/node): exporting rsa public keys (#23596)
Initial support for exporting rsa public KeyObject.
Current assumption is that RSA keys are stored in pkcs1 der format in
key storage.
Ref https://github.com/denoland/deno/issues/23471
Ref https://github.com/denoland/deno/issues/18928
Ref https://github.com/denoland/deno/issues/21124
Diffstat (limited to 'ext/node/lib.rs')
-rw-r--r-- | ext/node/lib.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/node/lib.rs b/ext/node/lib.rs index c99467d23..43a5b158e 100644 --- a/ext/node/lib.rs +++ b/ext/node/lib.rs @@ -241,6 +241,8 @@ deno_core::extension!(deno_node, ops::crypto::op_node_ecdh_compute_secret, ops::crypto::op_node_ecdh_compute_public_key, ops::crypto::op_node_ecdh_encode_pubkey, + ops::crypto::op_node_export_rsa_public_pem, + ops::crypto::op_node_export_rsa_spki_der, ops::crypto::x509::op_node_x509_parse, ops::crypto::x509::op_node_x509_ca, ops::crypto::x509::op_node_x509_check_email, |