diff --git a/doc/api/crypto.md b/doc/api/crypto.md index cafb38391b7..d3aee5afdf8 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1488,6 +1488,7 @@ added: v0.5.0 * `privateKey` {string|ArrayBuffer|Buffer|TypedArray|DataView} * `encoding` {string} The [encoding][] of the `privateKey` string. +* Returns: {DiffieHellman} The `DiffieHellman` object itself. Sets the Diffie-Hellman private key. If the `encoding` argument is provided, `privateKey` is expected @@ -1506,6 +1507,7 @@ added: v0.5.0 * `publicKey` {string|ArrayBuffer|Buffer|TypedArray|DataView} * `encoding` {string} The [encoding][] of the `publicKey` string. +* Returns: {DiffieHellman} The `DiffieHellman` object itself. Sets the Diffie-Hellman public key. If the `encoding` argument is provided, `publicKey` is expected @@ -1791,6 +1793,7 @@ added: v0.11.14 * `privateKey` {string|ArrayBuffer|Buffer|TypedArray|DataView} * `encoding` {string} The [encoding][] of the `privateKey` string. +* Returns: {ECDH} The `ECDH` object itself. Sets the EC Diffie-Hellman private key. If `encoding` is provided, `privateKey` is expected @@ -2085,6 +2088,7 @@ changes: * `data` {string|Buffer|TypedArray|DataView} * `inputEncoding` {string} The [encoding][] of the `data` string. +* Returns: {Hash} The `Hash` object itself. Updates the hash content with the given `data`, the encoding of which is given in `inputEncoding`. @@ -2245,6 +2249,7 @@ changes: * `data` {string|Buffer|TypedArray|DataView} * `inputEncoding` {string} The [encoding][] of the `data` string. +* Returns: {Hmac} The `Hmac` object itself. Updates the `Hmac` content with the given `data`, the encoding of which is given in `inputEncoding`. @@ -2828,6 +2833,7 @@ changes: * `data` {string|Buffer|TypedArray|DataView} * `inputEncoding` {string} The [encoding][] of the `data` string. +* Returns: {Sign} The `Sign` object itself. Updates the `Sign` content with the given `data`, the encoding of which is given in `inputEncoding`. @@ -2870,6 +2876,7 @@ changes: * `data` {string|Buffer|TypedArray|DataView} * `inputEncoding` {string} The [encoding][] of the `data` string. +* Returns: {Verify} The `Verify` object itself. Updates the `Verify` content with the given `data`, the encoding of which is given in `inputEncoding`.