GeezerVison is showing github.com — doc,crypto: clarify oaepHash option's impact · nodejs/node@394f8ca
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/crypto.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2474,7 +2474,7 @@ changes: |
2474 | 2474 | --> |
2475 | 2475 |
|
2476 | 2476 | * `privateKey` {Object | string | Buffer | KeyObject} |
2477 | | - * `oaepHash` {string} The hash function to use for OAEP padding. |
| 2477 | + * `oaepHash` {string} The hash function to use for OAEP padding and MGF1. |
2478 | 2478 | **Default:** `'sha1'` |
2479 | 2479 | * `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP |
2480 | 2480 | padding. If not specified, no label is used. |
@@ -2564,7 +2564,7 @@ changes: |
2564 | 2564 |
|
2565 | 2565 | * `key` {Object | string | Buffer | KeyObject} |
2566 | 2566 | * `key` {string | Buffer | KeyObject} A PEM encoded public or private key. |
2567 | | - * `oaepHash` {string} The hash function to use for OAEP padding. |
| 2567 | + * `oaepHash` {string} The hash function to use for OAEP padding and MGF1. |
2568 | 2568 | **Default:** `'sha1'` |
2569 | 2569 | * `oaepLabel` {Buffer | TypedArray | DataView} The label to use for OAEP |
2570 | 2570 | padding. If not specified, no label is used. |
|