MCPcopy Create free account
hub / github.com/mscdex/ssh2 / isSupportedKeyType

Function isSupportedKeyType

lib/protocol/keyParser.js:1393–1408  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

1391}
1392
1393function isSupportedKeyType(type) {
1394 switch (type) {
1395 case 'ssh-rsa':
1396 case 'ssh-dss':
1397 case 'ecdsa-sha2-nistp256':
1398 case 'ecdsa-sha2-nistp384':
1399 case 'ecdsa-sha2-nistp521':
1400 return true;
1401 case 'ssh-ed25519':
1402 if (eddsaSupported)
1403 return true;
1404 // FALLTHROUGH
1405 default:
1406 return false;
1407 }
1408}
1409
1410function isParsedKey(val) {
1411 if (!val)

Callers 1

parseDERFunction · 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…