Socket
Socket
Sign inDemoInstall

sshpk

Package Overview
Dependencies
8
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.1 to 1.6.2

10

lib/key.js

@@ -14,4 +14,10 @@ // Copyright 2015 Joyent, Inc.

var PrivateKey = require('./private-key');
var edCompat = require('./ed-compat');
var edCompat;
try {
edCompat = require('./ed-compat');
} catch (e) {
/* Just continue through, and bail out if we try to use it. */
}
var InvalidAlgorithmError = errs.InvalidAlgorithmError;

@@ -148,3 +154,3 @@ var KeyParseError = errs.KeyParseError;

/* ED25519 is not supported by OpenSSL, use a javascript impl. */
if (this.type === 'ed25519')
if (this.type === 'ed25519' && edCompat !== undefined)
return (new edCompat.Verifier(this, hashAlgo));

@@ -151,0 +157,0 @@ if (this.type === 'curve25519')

@@ -13,5 +13,11 @@ // Copyright 2015 Joyent, Inc.

var utils = require('./utils');
var edCompat = require('./ed-compat');
var edCompat;
var ed;
try {
edCompat = require('./ed-compat');
} catch (e) {
/* Just continue through, and bail out if we try to use it. */
}
var Key = require('./key');

@@ -136,3 +142,3 @@

/* ED25519 is not supported by OpenSSL, use a javascript impl. */
if (this.type === 'ed25519')
if (this.type === 'ed25519' && edCompat !== undefined)
return (new edCompat.Signer(this, hashAlgo));

@@ -139,0 +145,0 @@ if (this.type === 'curve25519')

4

package.json
{
"name": "sshpk",
"version": "1.6.1",
"version": "1.6.2",
"description": "A library for finding and using SSH public keys",

@@ -33,3 +33,3 @@ "main": "lib/index.js",

"engines": {
"node": ">=0.10.0"
"node": ">=0.8.0"
},

@@ -36,0 +36,0 @@ "directories": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc