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

Function getKeyObjectType

lib/internal/crypto/keys.js:879–881  ·  view source on GitHub ↗

* Returns the KeyObject's native type slot as a string. * @param {KeyObject} key * @returns {'secret' | 'public' | 'private'}

(key)

Source from the content-addressed store, hash-verified

877 * @returns {'secret' | 'public' | 'private'}
878 */
879function getKeyObjectType(key) {
880 return keyObjectTypeToString(getKeyObjectSlots(key)[kKeyObjectSlotType]);
881}
882
883/**
884 * Returns the KeyObjectHandle wrapping the KeyObject's underlying key

Callers 9

typeMethod · 0.85
toCryptoKeyMethod · 0.85
prepareAsymmetricKeyFunction · 0.85
prepareSecretKeyFunction · 0.85
checkPrivateKeyMethod · 0.85
verifyMethod · 0.85
diffieHellmanFunction · 0.85
processIdentityOptionsFunction · 0.85
objectComparisonStartFunction · 0.85

Calls 1

keyObjectTypeToStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…