| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2656,8 +2656,10 @@ Calculates the signature on all the data passed through using either | |||
| 2656 | 2656 | [`sign.update()`][] or [`sign.write()`][stream-writable-write]. | |
| 2657 | 2657 | ||
| 2658 | 2658 | If `privateKey` is not a [`KeyObject`][], this function behaves as if | |
| 2659 | - `privateKey` had been passed to [`crypto.createPrivateKey()`][]. If it is an | ||
| 2660 | - object, the following additional properties can be passed: | ||
| 2659 | + `privateKey` had been passed to [`crypto.createPrivateKey()`][]. When | ||
| 2660 | + `privateKey` is a string, `ArrayBuffer`, [`Buffer`][], `TypedArray`, or | ||
| 2661 | + `DataView`, it must contain PEM-encoded key material. If it is an object, the | ||
| 2662 | + following additional properties can be passed: | ||
| 2661 | 2663 | ||
| 2662 | 2664 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 2663 | 2665 | format of the generated signature. It can be one of the following: | |
@@ -2787,8 +2789,10 @@ changes: | |||
| 2787 | 2789 | Verifies the provided data using the given `key` and `signature`. | |
| 2788 | 2790 | ||
| 2789 | 2791 | If `key` is not a [`KeyObject`][], this function behaves as if | |
| 2790 | - `key` had been passed to [`crypto.createPublicKey()`][]. If it is an | ||
| 2791 | - object, the following additional properties can be passed: | ||
| 2792 | + `key` had been passed to [`crypto.createPublicKey()`][]. When `key` is a string, | ||
| 2793 | + `ArrayBuffer`, [`Buffer`][], `TypedArray`, or `DataView`, it must contain | ||
| 2794 | + PEM-encoded key material. If it is an object, the following additional | ||
| 2795 | + properties can be passed: | ||
| 2792 | 2796 | ||
| 2793 | 2797 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 2794 | 2798 | format of the signature. It can be one of the following: | |
@@ -6141,8 +6145,10 @@ dependent upon the key type. | |||
| 6141 | 6145 | ML-DSA. | |
| 6142 | 6146 | ||
| 6143 | 6147 | If `key` is not a [`KeyObject`][], this function behaves as if `key` had been | |
| 6144 | - passed to [`crypto.createPrivateKey()`][]. If it is an object, the following | ||
| 6145 | - additional properties can be passed: | ||
| 6148 | + passed to [`crypto.createPrivateKey()`][]. When `key` is a string, `ArrayBuffer`, | ||
| 6149 | + [`Buffer`][], `TypedArray`, or `DataView`, it must contain PEM-encoded key | ||
| 6150 | + material. If it is an object, the following additional properties can be | ||
| 6151 | + passed: | ||
| 6146 | 6152 | ||
| 6147 | 6153 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 6148 | 6154 | format of the generated signature. It can be one of the following: | |
@@ -6276,8 +6282,10 @@ key type. | |||
| 6276 | 6282 | ML-DSA. | |
| 6277 | 6283 | ||
| 6278 | 6284 | If `key` is not a [`KeyObject`][], this function behaves as if `key` had been | |
| 6279 | - passed to [`crypto.createPublicKey()`][]. If it is an object, the following | ||
| 6280 | - additional properties can be passed: | ||
| 6285 | + passed to [`crypto.createPublicKey()`][]. When `key` is a string, `ArrayBuffer`, | ||
| 6286 | + [`Buffer`][], `TypedArray`, or `DataView`, it must contain PEM-encoded key | ||
| 6287 | + material. If it is an object, the following additional properties can be | ||
| 6288 | + passed: | ||
| 6281 | 6289 | ||
| 6282 | 6290 | * `dsaEncoding` {string} For DSA and ECDSA, this option specifies the | |
| 6283 | 6291 | format of the signature. It can be one of the following: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments