From b0023302160e9db66cb51a0d09723586409e7991 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 035d8de3e30996..e48fafa8e1700d 100644 --- a/doc/api/webcrypto.md +++ b/doc/api/webcrypto.md @@ -710,7 +710,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. @@ -799,7 +799,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}