| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2647,8 +2647,10 @@ Calculates the signature on all the data passed through using either | |||
| 2647 | 2647 | [`sign.update()`][] or [`sign.write()`][stream-writable-write]. | |
| 2648 | 2648 | ||
| 2649 | 2649 | If `privateKey` is not a [`KeyObject`][], this function behaves as if | |
| 2650 | - `privateKey` had been passed to [`crypto.createPrivateKey()`][]. If it is an | ||
| 2651 | - object, the following additional properties can be passed: | ||
| 2650 | + `privateKey` had been passed to [`crypto.createPrivateKey()`][]. When | ||
| 2651 | + `privateKey` is a string, `ArrayBuffer`, [`Buffer`][], `TypedArray`, or | ||
| 2652 | + `DataView`, it must contain PEM-encoded key material. If it is an object, the | ||
| 2653 | + following additional properties can be passed: | ||
| 2652 | 2654 | ||
| 2653 | 2655 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 2654 | 2656 | format of the generated signature. It can be one of the following: | |
@@ -2778,8 +2780,10 @@ changes: | |||
| 2778 | 2780 | Verifies the provided data using the given `key` and `signature`. | |
| 2779 | 2781 | ||
| 2780 | 2782 | If `key` is not a [`KeyObject`][], this function behaves as if | |
| 2781 | - `key` had been passed to [`crypto.createPublicKey()`][]. If it is an | ||
| 2782 | - object, the following additional properties can be passed: | ||
| 2783 | + `key` had been passed to [`crypto.createPublicKey()`][]. When `key` is a string, | ||
| 2784 | + `ArrayBuffer`, [`Buffer`][], `TypedArray`, or `DataView`, it must contain | ||
| 2785 | + PEM-encoded key material. If it is an object, the following additional | ||
| 2786 | + properties can be passed: | ||
| 2783 | 2787 | ||
| 2784 | 2788 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 2785 | 2789 | format of the signature. It can be one of the following: | |
@@ -6120,8 +6124,10 @@ dependent upon the key type. | |||
| 6120 | 6124 | ML-DSA. | |
| 6121 | 6125 | ||
| 6122 | 6126 | If `key` is not a [`KeyObject`][], this function behaves as if `key` had been | |
| 6123 | - passed to [`crypto.createPrivateKey()`][]. If it is an object, the following | ||
| 6124 | - additional properties can be passed: | ||
| 6127 | + passed to [`crypto.createPrivateKey()`][]. When `key` is a string, `ArrayBuffer`, | ||
| 6128 | + [`Buffer`][], `TypedArray`, or `DataView`, it must contain PEM-encoded key | ||
| 6129 | + material. If it is an object, the following additional properties can be | ||
| 6130 | + passed: | ||
| 6125 | 6131 | ||
| 6126 | 6132 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 6127 | 6133 | format of the generated signature. It can be one of the following: | |
@@ -6255,8 +6261,10 @@ key type. | |||
| 6255 | 6261 | ML-DSA. | |
| 6256 | 6262 | ||
| 6257 | 6263 | If `key` is not a [`KeyObject`][], this function behaves as if `key` had been | |
| 6258 | - passed to [`crypto.createPublicKey()`][]. If it is an object, the following | ||
| 6259 | - additional properties can be passed: | ||
| 6264 | + passed to [`crypto.createPublicKey()`][]. When `key` is a string, `ArrayBuffer`, | ||
| 6265 | + [`Buffer`][], `TypedArray`, or `DataView`, it must contain PEM-encoded key | ||
| 6266 | + material. If it is an object, the following additional properties can be | ||
| 6267 | + passed: | ||
| 6260 | 6268 | ||
| 6261 | 6269 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 6262 | 6270 | format of the signature. It can be one of the following: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments