@@ -3839,14 +3839,14 @@ const {
3839
3839
console .log (getHashes ()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...]
3840
3840
```
3841
3841
3842
- ### ` crypto.hkdf(digest, key , salt, info, keylen, callback) `
3842
+ ### ` crypto.hkdf(digest, ikm , salt, info, keylen, callback) `
3843
3843
<!-- YAML
3844
3844
added: v15.0.0
3845
3845
-->
3846
3846
3847
3847
* ` digest ` {string} The digest algorithm to use.
3848
- * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} The secret
3849
- key . It must be at least one byte in length.
3848
+ * ` ikm ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} The input
3849
+ keying material . It must be at least one byte in length.
3850
3850
* ` salt ` {string|ArrayBuffer|Buffer|TypedArray|DataView} The salt value. Must
3851
3851
be provided but can be zero-length.
3852
3852
* ` info ` {string|ArrayBuffer|Buffer|TypedArray|DataView} Additional info value.
@@ -3859,7 +3859,7 @@ added: v15.0.0
3859
3859
* ` err ` {Error}
3860
3860
* ` derivedKey ` {Buffer}
3861
3861
3862
- HKDF is a simple key derivation function defined in RFC 5869. The given ` key ` ,
3862
+ HKDF is a simple key derivation function defined in RFC 5869. The given ` ikm ` ,
3863
3863
` salt ` and ` info ` are used with the ` digest ` to derive a key of ` keylen ` bytes.
3864
3864
3865
3865
The supplied ` callback ` function is called with two arguments: ` err ` and
@@ -3892,14 +3892,14 @@ hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => {
3892
3892
});
3893
3893
```
3894
3894
3895
- ### ` crypto.hkdfSync(digest, key , salt, info, keylen) `
3895
+ ### ` crypto.hkdfSync(digest, ikm , salt, info, keylen) `
3896
3896
<!-- YAML
3897
3897
added: v15.0.0
3898
3898
-->
3899
3899
3900
3900
* ` digest ` {string} The digest algorithm to use.
3901
- * ` key ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} The secret
3902
- key . It must be at least one byte in length.
3901
+ * ` ikm ` {string|ArrayBuffer|Buffer|TypedArray|DataView|KeyObject} The input
3902
+ keying material . It must be at least one byte in length.
3903
3903
* ` salt ` {string|ArrayBuffer|Buffer|TypedArray|DataView} The salt value. Must
3904
3904
be provided but can be zero-length.
3905
3905
* ` info ` {string|ArrayBuffer|Buffer|TypedArray|DataView} Additional info value.
@@ -3911,7 +3911,7 @@ added: v15.0.0
3911
3911
* Returns: {ArrayBuffer}
3912
3912
3913
3913
Provides a synchronous HKDF key derivation function as defined in RFC 5869. The
3914
- given ` key ` , ` salt ` and ` info ` are used with the ` digest ` to derive a key of
3914
+ given ` ikm ` , ` salt ` and ` info ` are used with the ` digest ` to derive a key of
3915
3915
` keylen ` bytes.
3916
3916
3917
3917
The successfully generated ` derivedKey ` will be returned as an {ArrayBuffer}.
0 commit comments