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

Function isCryptoKey

lib/internal/crypto/keys.js:1239–1249  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

1237}
1238
1239function isCryptoKey(obj) {
1240 if (obj == null || typeof obj !== 'object')
1241 return false;
1242
1243 try {
1244 getSlots(obj);
1245 return true;
1246 } catch {
1247 return false;
1248 }
1249}
1250
1251function importGenericSecretKey(
1252 algorithm,

Callers 10

fromMethod · 0.85
prepareAsymmetricKeyFunction · 0.85
prepareSecretKeyFunction · 0.85
objectComparisonStartFunction · 0.85
valueFunction · 0.85
testFunction · 0.85
testFunction · 0.85

Calls

no outgoing calls

Tested by 2

testFunction · 0.68
testFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…