MCPcopy Create free account
hub / github.com/nodejs/node / verify

Method verify

lib/internal/crypto/x509.js:384–390  ·  view source on GitHub ↗
(pkey)

Source from the content-addressed store, hash-verified

382 }
383
384 verify(pkey) {
385 if (!isKeyObject(pkey))
386 throw new ERR_INVALID_ARG_TYPE('pkey', 'KeyObject', pkey);
387 if (getKeyObjectType(pkey) !== 'public')
388 throw new ERR_INVALID_ARG_VALUE('pkey', pkey);
389 return this[kHandle].verify(getKeyObjectHandle(pkey));
390 }
391
392 toLegacyObject() {
393 // TODO(tniessen): do not depend on translatePeerCertificate here, return

Callers 1

sig.jsFile · 0.45

Calls 3

isKeyObjectFunction · 0.85
getKeyObjectTypeFunction · 0.85
getKeyObjectHandleFunction · 0.85

Tested by

no test coverage detected