Skip to content

Commit 2a4ae09

Browse files
panvaMylesBorins
authored andcommitted
doc: update crypto.createSecretKey accepted types
PR-URL: #35246 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent c09f3dc commit 2a4ae09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/crypto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2060,7 +2060,7 @@ and it will be impossible to extract the private key from the returned object.
20602060
added: v11.6.0
20612061
-->
20622062

2063-
* `key` {Buffer}
2063+
* `key` {Buffer | TypedArray | DataView}
20642064
* Returns: {KeyObject}
20652065

20662066
Creates and returns a new key object containing a secret key for symmetric

0 commit comments

Comments
 (0)