From 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期二, 21 四月 2026 11:46:41 +0800
Subject: [PATCH] 推送
---
node_modules/@types/node/crypto.d.ts | 26 ++++----------------------
1 files changed, 4 insertions(+), 22 deletions(-)
diff --git a/node_modules/@types/node/crypto.d.ts b/node_modules/@types/node/crypto.d.ts
index 0ae42e4..3ebfec6 100644
--- a/node_modules/@types/node/crypto.d.ts
+++ b/node_modules/@types/node/crypto.d.ts
@@ -1,21 +1,3 @@
-/**
- * The `node:crypto` module provides cryptographic functionality that includes a
- * set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify
- * functions.
- *
- * ```js
- * const { createHmac } = await import('node:crypto');
- *
- * const secret = 'abcdefg';
- * const hash = createHmac('sha256', secret)
- * .update('I love cupcakes')
- * .digest('hex');
- * console.log(hash);
- * // Prints:
- * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e
- * ```
- * @see [source](https://github.com/nodejs/node/blob/v25.x/lib/crypto.js)
- */
declare module "node:crypto" {
import { NonSharedBuffer } from "node:buffer";
import * as stream from "node:stream";
@@ -2582,8 +2564,8 @@
interface X25519KeyPairOptions extends KeyPairExportOptions<"spki", "pkcs8"> {}
interface X448KeyPairOptions extends KeyPairExportOptions<"spki", "pkcs8"> {}
/**
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
- * Ed25519, Ed448, X25519, X448, DH, and ML-DSA are currently supported.
+ * Generates a new asymmetric key pair of the given `type`. See the
+ * supported [asymmetric key types](https://nodejs.org/docs/latest-v25.x/api/crypto.html#asymmetric-key-types).
*
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
@@ -2672,8 +2654,8 @@
options?: T,
): KeyPairExportResult<T>;
/**
- * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC,
- * Ed25519, Ed448, X25519, X448, and DH are currently supported.
+ * Generates a new asymmetric key pair of the given `type`. See the
+ * supported [asymmetric key types](https://nodejs.org/docs/latest-v25.x/api/crypto.html#asymmetric-key-types).
*
* If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function
* behaves as if `keyObject.export()` had been called on its result. Otherwise,
--
Gitblit v1.9.3