From 27e041cfa73a7be1e0464a548e41b59080ae8597 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Tue, 3 Jan 2023 16:31:39 +0100 Subject: [PATCH] doc,crypto: fix WebCryptoAPI import keyData and export return --- 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}