Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should return undefined if signature not valid', function* () {
var key = ssh_utils.parseKey(fs.readFileSync('./ssh/server.pri'));
var algo = 'RSA-SHA1';
var data = new Buffer('test');
var sign = crypto.createSign(algo);
sign.update(data);
var sig = sign.sign(key.privateOrig, 'binary');
var result = yield authenticator.checkSSHAuthorization(null, null, algo, data, sig);
should.not.exist(result);
});