-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc/crypto: include options and correct return type for setAAD() #21420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
doc/api/crypto.md
Outdated
@@ -407,12 +407,17 @@ changes: | |||
description: This method now returns a reference to `decipher`. | |||
--> | |||
- `buffer` {Buffer | TypedArray | DataView} | |||
- Returns: {Cipher} for method chaining. | |||
- `options` {Object} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems plaintextLength
should be documented here as well, as a property of options
, in a nested level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah; I had originally planned on writing an AADOptions
block but it was so short I didn't feel the need to.
Also I added CipherGCMOptions and CipherCCMOptions in @types/node; though not sure how I should go about that in @nodejs/node.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you check other documentations, you'll see how options are handled there. Normally it just get's a short description what it stands for right after the type.
cc @nodejs/crypto |
Hi @ZaneHannanAU! Welcome and thanks for the pull request! Note for whoever lands this change: The commit message should probably not use
Something like that. |
So should we land or should we wait for |
@vsemozhetbyt added for now sorry |
doc/api/crypto.md
Outdated
@@ -245,7 +245,8 @@ once will result in an error being thrown. | |||
added: v1.0.0 | |||
--> | |||
- `buffer` {Buffer} | |||
- `options` {Object} | |||
- `options` {Object} [`stream.transform` options][] | |||
- `plaintextLength`: {nunmber} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: delete colon and {nunmber}
-> {number}
so we can run the last CI)
doc/api/crypto.md
Outdated
@@ -407,7 +408,8 @@ changes: | |||
description: This method now returns a reference to `decipher`. | |||
--> | |||
- `buffer` {Buffer | TypedArray | DataView} | |||
- `options` {Object} | |||
- `options` {Object} [`stream.transform` options][] | |||
- `plaintextLength`: {nunmber} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :
PR-URL: #21420 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in c041fd2 |
PR-URL: #21420 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
Ensure consistency within documentation.