MCPcopy Index your code
hub / github.com/nodejs/node / importJwkSecretKey

Function importJwkSecretKey

lib/internal/crypto/webcrypto_util.js:238–247  ·  view source on GitHub ↗
(keyData)

Source from the content-addressed store, hash-verified

236}
237
238function importJwkSecretKey(keyData) {
239 const handle = new KeyObjectHandle();
240 try {
241 handle.init(kKeyTypeSecret, keyData, kKeyFormatJWK, null, null);
242 } catch (err) {
243 throw lazyDOMException(
244 'Invalid keyData', { name: 'DataError', cause: err });
245 }
246 return handle;
247}
248
249module.exports = {
250 createKeyUsages,

Callers 3

c20pImportKeyFunction · 0.85
macImportKeyFunction · 0.85
aesImportKeyFunction · 0.85

Calls 2

lazyDOMExceptionFunction · 0.85
initMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…