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

Function isKeyObject

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

Source from the content-addressed store, hash-verified

968}
969
970function isKeyObject(obj) {
971 if (obj == null || typeof obj !== 'object')
972 return false;
973
974 try {
975 getKeyObjectSlots(obj);
976 return true;
977 } catch {
978 return false;
979 }
980}
981
982// CryptoKey is a plain JS class whose prototype's [[Prototype]] is
983// Object.prototype, as Web Crypto requires. Instance storage (type enum,

Callers 12

equalsMethod · 0.85
prepareAsymmetricKeyFunction · 0.85
prepareSecretKeyFunction · 0.85
checkPrivateKeyMethod · 0.85
verifyMethod · 0.85
diffieHellmanFunction · 0.85
prepareKeyFunction · 0.85
processIdentityOptionsFunction · 0.85
objectComparisonStartFunction · 0.85
valueFunction · 0.85
assertSameKeyObjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…