Repository navigation
crypto: crypto.create* - argument "options" is undocumented #14804
Description
Activity
- addeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.
on Aug 13, 2017 To clarify @refack, these options are the OpenSSL options?
These are strings, correct?Edit: If so, will submit a PR with these changes.
AFAICT from looking at the code, they are also
streamoptions, as these methods wrap the underlining OpenSSL mechanism with a node transform stream.
For example:
Lines 75 to 81 in 0d22858
exports.createHash = exports.Hash = Hash; function Hash(algorithm, options) { if (!(this instanceof Hash)) return new Hash(algorithm, options); this._handle = new binding.Hash(algorithm); LazyTransform.call(this, options); }
where LazyTransform is
node/lib/internal/streams/lazy_transform.js
Lines 12 to 17 in 0d22858
function LazyTransform(options) { this._options = options; this.writable = true; this.readable = true; } util.inherits(LazyTransform, stream.Transform); @ashanhol thanks for taking this on 🥇
There's an extra credit exercise to follow this up, but it requires somegitspelunking, so it could wait for a future PR.- addedwipIssues and PRs that are still a work in progress.Issues and PRs that are still a work in progress.
on Aug 15, 2017 Thanks @refack for your comments, they really helped. It's sometimes difficult to determine types.
I updated the branch and will submit a PR. I'm definitely down for the extra credit.Reacted by Refael Ackermann- added a commit that references this issue
on Aug 16, 2017 @refack with the PR in works and waiting on the second round of approval, I'm available to jump into the next issue you had in mind.
- added 3 commits that reference this issue
on Sep 10, 2017 - added a commit that references this issue
on Sep 13, 2017 - added a commit that references this issue
on Jul 27, 2026
crypto.createCiphercreateCipherivcreateDeciphercreateDecipherivcreateHashcreateHmaccreateSigncreateVerifyhave a last optional argument
optionsto control theirstreambehaviour/cc @nodejs/documentation @nodejs/crypto @nodejs/streams