From ebe292113ab0756f897c1d3669f47a95b31bc7a9 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sat, 7 Jan 2023 09:32:47 +0100 Subject: [PATCH] doc,crypto: fix WebCryptoAPI import keyData and export return MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/46076 Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen --- doc/api/webcrypto.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/webcrypto.md b/doc/api/webcrypto.md index 0604f0164d422a..8cf4bad3f823d5 100644 --- a/doc/api/webcrypto.md +++ b/doc/api/webcrypto.md @@ -689,7 +689,7 @@ changes: * `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. * `key`: {CryptoKey} -* Returns: {Promise} containing {ArrayBuffer}. +* Returns: {Promise} containing {ArrayBuffer|Object}. Exports the given key into the specified format, if supported. @@ -776,7 +776,7 @@ changes: --> * `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, or `'jwk'`. -* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|KeyObject} +* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|Object}